/* WC Order Toolkit — Front-end (v1.3.0) */

/* Standard fields wrapper */
.wcot-fields {
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Individual field */
.wcot-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.wcot-field input[type="text"],
.wcot-field input[type="number"],
.wcot-field input[type="date"],
.wcot-field select,
.wcot-field textarea {
    width: 100%;
    max-width: 420px;
}
.wcot-field textarea { resize: vertical; }

.wcot-checkbox,
.wcot-radio {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    cursor: pointer;
}

.wcot-help {
    display: block;
    color: #777;
    margin-top: 4px;
    font-size: 13px;
}

/* ── Conditional Groups ───────────────────────────── */

.wcot-cond-group {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

/* Trigger row */
.wcot-group-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    transition: background 0.15s;
    user-select: none;
}
.wcot-group-trigger:hover {
    background: #f0f0f0;
}

/* Trigger checkbox — larger for easy tapping */
.wcot-group-trigger input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #2271b1;
    cursor: pointer;
}

/* Checked state: highlight trigger */
.wcot-cond-group:has(.wcot-trigger-cb:checked) .wcot-group-trigger {
    background: #eaf3fb;
    border-bottom: 1px solid #c3d9ef;
    color: #1a5f8a;
}

/* Sub-fields panel */
.wcot-cond-panel {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
}

/* Help text inside trigger */
.wcot-cond-group > .wcot-help {
    padding: 4px 16px 8px;
    background: #f9f9f9;
}
