/* For Every Fashion Tools — shared styles.
   Neutral, theme-inheriting styling: no external fonts or images.
   Works inside any WordPress theme (built for Astra on foreveryfashion.com). */
.fef-tool {
    font-family: inherit;
    max-width: 680px;
    margin: 0 auto;
    color: inherit;
    box-sizing: border-box;
}
.fef-tool *, .fef-tool *::before, .fef-tool *::after { box-sizing: border-box; }

.fef-tool .fef-intro { margin: 0 0 16px; }

.fef-tool .fef-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fef-tool .fef-row > .fef-field { flex: 1 1 160px; }

.fef-tool .fef-field { margin-bottom: 14px; }
.fef-tool .fef-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.fef-tool .fef-field .fef-hint {
    display: block;
    font-size: .88em;
    font-weight: 400;
    color: #666;
    margin-top: 3px;
}
.fef-tool .fef-field input[type="number"],
.fef-tool .fef-field input[type="text"],
.fef-tool .fef-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    font: inherit;
    background: #fff;
    color: inherit;
}
.fef-tool .fef-field input:focus,
.fef-tool .fef-field select:focus {
    outline: 2px solid #222;
    outline-offset: 1px;
    border-color: #222;
}

.fef-tool .fef-toggle {
    display: inline-flex;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}
.fef-tool .fef-toggle button {
    font: inherit;
    padding: 8px 16px;
    border: 0;
    background: #fff;
    color: inherit;
    cursor: pointer;
}
.fef-tool .fef-toggle button + button { border-left: 1px solid #c9c9c9; }
.fef-tool .fef-toggle button.fef-active { background: #222; color: #fff; }
.fef-tool .fef-toggle-label {
    font-weight: 600;
    margin-right: 10px;
    align-self: center;
}
.fef-tool .fef-toggle-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.fef-tool .fef-seg {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.fef-tool .fef-seg button {
    font: inherit;
    padding: 9px 14px;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    cursor: pointer;
}
.fef-tool .fef-seg button.fef-active { background: #222; color: #fff; border-color: #222; }

.fef-tool .fef-btn {
    font: inherit;
    font-weight: 600;
    background: #222;
    color: #fff;
    border: 0;
    padding: 12px 26px;
    border-radius: 6px;
    cursor: pointer;
}
.fef-tool .fef-btn:hover { background: #444; }
.fef-tool .fef-btn-secondary {
    background: #fff;
    color: #222;
    border: 1px solid #c9c9c9;
    margin-left: 8px;
}
.fef-tool .fef-btn-secondary:hover { background: #f2f2f2; }

.fef-tool .fef-error {
    display: none;
    color: #9b1c1c;
    background: #fdf0f0;
    border: 1px solid #f3c2c2;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 0 0 14px;
}
.fef-tool .fef-error.fef-show { display: block; }

.fef-tool .fef-result {
    display: none;
    margin-top: 20px;
    padding: 18px 20px;
    background: #f7f5f2;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
}
.fef-tool .fef-result.fef-show { display: block; }
.fef-tool .fef-result h3 { margin: 0 0 6px; font-size: 1.15em; }
.fef-tool .fef-result .fef-big {
    font-size: 1.5em;
    font-weight: 700;
    margin: 4px 0 10px;
}
.fef-tool .fef-result p { margin: 0 0 10px; }
.fef-tool .fef-result p:last-child { margin-bottom: 0; }
.fef-tool .fef-result ul { margin: 0 0 10px; padding-left: 20px; }
.fef-tool .fef-result li { margin-bottom: 4px; }

.fef-tool .fef-flag {
    display: inline-block;
    font-size: .85em;
    font-weight: 600;
    background: #fff3cd;
    border: 1px solid #e6c87a;
    color: #6b4e00;
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
}
.fef-tool .fef-flag-ok {
    background: #e6f4ea;
    border-color: #9fd0a8;
    color: #1e5c2a;
}

.fef-tool table.fef-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: .95em;
}
.fef-tool table.fef-table th,
.fef-tool table.fef-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e0d8;
    text-align: left;
}
.fef-tool table.fef-table th { background: #efebe6; font-weight: 700; }
.fef-tool table.fef-table tr.fef-highlight td { background: #fff8e1; font-weight: 700; }

.fef-tool .fef-note { font-size: .92em; color: #555; }
.fef-tool .fef-section-title { margin: 22px 0 8px; font-size: 1.05em; font-weight: 700; }
.fef-tool hr.fef-divider { border: 0; border-top: 1px solid #e5e0d8; margin: 20px 0; }

/* Ring on-screen sizer */
.fef-tool .fef-sizer-card {
    border: 2px dashed #999;
    border-radius: 8px;
    height: 53.98mm;
    margin: 10px auto;
    position: relative;
    background: #fff;
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85em;
    color: #666;
}
.fef-tool .fef-sizer-circles {
    position: relative;
    min-height: 120px;
    margin: 14px 0;
    text-align: center;
}
.fef-tool .fef-sizer-circle {
    display: inline-block;
    border: 2px solid #222;
    border-radius: 50%;
    margin: 6px;
    position: relative;
    vertical-align: middle;
    background: #fff;
}
.fef-tool .fef-sizer-circle span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: .8em;
    font-weight: 700;
    background: #fff;
    padding: 0 3px;
    white-space: nowrap;
}
.fef-tool input[type="range"].fef-range { width: 100%; }

/* Printable ring sizer (only the sizer prints) */
.fef-print-area { display: none; }
@media print {
    body * { visibility: hidden !important; }
    .fef-print-area, .fef-print-area * { visibility: visible !important; }
    .fef-print-area {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff;
        color: #000;
        padding: 10mm;
    }
    .fef-print-area .fef-print-circle {
        border: 1.5pt solid #000;
        border-radius: 50%;
        display: inline-block;
        margin: 4mm;
        position: relative;
        vertical-align: middle;
        text-align: center;
    }
    .fef-print-area .fef-print-circle span {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 9pt;
        font-weight: bold;
    }
    .fef-print-area .fef-print-card {
        width: 85.60mm;
        height: 53.98mm;
        border: 1.5pt solid #000;
        border-radius: 3mm;
        margin: 6mm 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10pt;
    }
    .fef-print-area .fef-print-strip {
        border-top: 1pt solid #000;
        border-bottom: 1pt solid #000;
        height: 12mm;
        position: relative;
        margin: 8mm 0;
        width: 170mm;
    }
    .fef-print-area .fef-print-strip .fef-tick {
        position: absolute;
        bottom: 0;
        width: 1pt;
        height: 4mm;
        background: #000;
    }
    .fef-print-area .fef-print-strip .fef-tick-label {
        position: absolute;
        bottom: 5mm;
        font-size: 8pt;
        transform: translateX(-50%);
    }
}
