/* age-calculator: centered form + readable typography */
.age-calculator-center {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0.75rem 0 1.5rem;
}

.tool-form-age-calculator .row {
    margin-left: 0;
    margin-right: 0;
}

.tool-form-age-calculator .col60 {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.tool-form-age-calculator .form-field {
    margin-bottom: 1.25rem;
}

.tool-form-age-calculator .form-field > label,
.tool-form-age-calculator .form-field > label.form-block {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    line-height: 1.4;
}

.tool-form-age-calculator .wd-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.tool-form-age-calculator .wd-row .col-4 {
    float: none;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 0;
}

.tool-form-age-calculator .wd-row .col-4:not(.age-calculator-btn-col) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 0;
    min-width: 5.5rem;
}

.tool-form-age-calculator .wd-row .col-4:not(.age-calculator-btn-col) .middle-form-input {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.tool-form-age-calculator .middle-form-input,
.tool-form-age-calculator select.middle-form-input {
    height: 2rem;
    padding: 0.3rem 0.45rem;
    font-size: 0.875rem;
    color: #555;
    border-color: #d9d9d9;
}

.tool-form-age-calculator .variable-font-size-1rem {
    font-size: 0.875rem !important;
}

.tool-form-age-calculator .wd-col-suffix {
    position: static;
    right: auto;
    top: auto;
    width: auto;
    min-width: 1.5rem;
    height: auto;
    line-height: 1.4;
    margin: 0;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #888;
    text-align: center;
}

.tool-form-age-calculator .wd-row .col-4.age-calculator-btn-col {
    flex: 0 0 5.75rem;
    text-align: center;
}

.tool-form-age-calculator .age-calculator-btn-col .btn-info {
    width: 100%;
    max-width: 100%;
}

.tool-form-age-calculator #result-ele {
    margin-top: 0.5rem;
}

.tool-form-age-calculator #result-ele .table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.tool-form-age-calculator #result-ele .table td {
    padding: 0.55rem 0.75rem;
    color: #555;
    vertical-align: middle;
}

.tool-form-age-calculator #result-ele .table td.width-rem-6 {
    width: 7rem;
    color: #666;
    background: #fafafa;
}

.tool-form-age-calculator #result-ele .table td span {
    font-size: 0.875rem;
}

.tool-form-age-calculator #result-ele #zhou_sui,
.tool-form-age-calculator #result-ele #xu_sui {
    color: #0958d9 !important;
    font-size: 0.9375rem;
}

@media only screen and (max-width: 640px) {
    .age-calculator-center {
        max-width: 100%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .tool-form-age-calculator .wd-row .col-4 {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .tool-form-age-calculator .wd-row .col-4.age-calculator-btn-col {
        flex: 1 1 100%;
    }
}
