/* assets/imone.css — v1.9.0 */

#wc-imone-wrapper {
    margin: 4px 0 16px;
    clear: both;
    width: 100%;
}

/* ── Toggle ── */
.wc-imone-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    cursor: pointer;
}

.wc-imone-text {
    font-size: 1em;
    color: #111827;
    font-weight: 500;
    cursor: pointer;
}

.wc-imone-optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.9em;
    margin-left: 4px;
}

.wc-imone-pill {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s;
}

.wc-imone-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform 0.25s;
}

.wc-imone-pill.is-active                 { background: #1a6b3a; }
.wc-imone-pill.is-active .wc-imone-knob  { transform: translateX(20px); }
.wc-imone-pill:focus-visible             { outline: 2px solid #1a6b3a; outline-offset: 2px; }

/* ── Fields container ── */
#wc-imone-fields {
    flex-direction: column;
    gap: 10px;
}

/* Single-border card — label on top, input below. No nesting. */
.wc-imone-field {
    width: 100%;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 16px 10px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wc-imone-field:focus-within {
    border-color: #1a6b3a;
}

.wc-imone-field-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

.wc-imone-required       { color: #ef4444; margin-left: 3px; }
.wc-imone-optional-label { font-weight: 400; color: #9ca3af; margin-left: 4px; }

.wc-imone-input {
    display: block !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.95em !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1.5 !important;
}

.wc-imone-input:not(:placeholder-shown) {
    color: #111827 !important;
    font-weight: 500 !important;
}

.wc-imone-input::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}
