/* The plugin styles only its own widgets. Elementor Containers control layout and placement. */
.atcd-calculator-field,
.atcd-calculator-result {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.atcd-calculator-field * ,
.atcd-calculator-result * {
    box-sizing: border-box;
}

.atcd-calculator-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.atcd-calculator-field__label {
    display: block;
    margin: 0;
    color: #172b3b;
    font-weight: 600;
    line-height: 1.4;
}

.atcd-calculator-field__input {
    display: block;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b7cbd9;
    border-radius: 6px;
    background: #ffffff;
    color: #172b3b;
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
}

.atcd-calculator-field__input:focus {
    outline: 2px solid rgba(22, 78, 120, 0.24);
    outline-offset: 1px;
}

.atcd-calculator-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    background: #164e78;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition: background-color 0.15s ease-in-out;
}

.atcd-calculator-button:hover {
    background: #103b5b;
}

.atcd-calculator-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.atcd-calculator-result {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding: 14px;
    border-left: 4px solid #164e78;
    border-radius: 4px;
    background: #f5f9fc;
    color: #172b3b;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.atcd-calculator-result__label {
    font-weight: 700;
}

.atcd-calculator-result__value {
    min-width: 0;
    font-weight: 500;
    overflow-wrap: anywhere;
}
