/* ── Design tokens (already in style.css, included here for standalone) ── */

:root {
    --eg-barik-300: #C6D0E1;
    --eg-barik-400: #8FA1BF;
    --eg-barik-500: #55698F;
    --eg-barik-700: #1A233E;
    --eg-ink-700: #2B385A;
    --eg-ink-500: #55698F;
    --eg-ink-400: #8FA1BF;
    --eg-bg: #FFFFFF;
    --eg-surface: #FFFFFF;
    --eg-surface-2: #F4F5F7;
    --eg-line: rgba(26, 35, 62, 0.12);
    --eg-line-strong: rgba(26, 35, 62, 0.18);
    --eg-accent: #BC7C56;
    --eg-accent-soft: rgba(188, 124, 86, 0.14);
    --eg-muted: #55698F;
    --eg-radius-sm: 4px;
    --eg-radius-md: 8px;
    --eg-shadow-1: 0 10px 30px rgba(11, 18, 36, 0.10);
    --eg-shadow-2: 0 14px 44px rgba(11, 18, 36, 0.14);
    --eg-focus: 0 0 0 4px rgba(26, 35, 62, 0.18);
    --eg-font-serif: 'Cormorant Garamond', Georgia, serif;
    --eg-font-sans: 'Jost', sans-serif;
}
.options .form-group:first-child {
    position: relative;
}
/* ─────────────────────────────────────────────────────
   1. WRAPPER — .options
   ───────────────────────────────────────────────────── */

.options {
    font-family: var(--eg-font-sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}
/* Hide default hr and h3 "Available Options" */

.options>hr, .options>h3 {
    display: none;
}
/* ─────────────────────────────────────────────────────
   2. TOP FORM-GROUP — the checkbox row
   (the one containing #input-option231)
   JS adds class .kz-toggle-row to this element.
   ───────────────────────────────────────────────────── */

.options .form-group:has(#input-option231) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--eg-surface);
    border: 1px solid var(--eg-line);
    border-radius: var(--eg-radius-sm);
    box-shadow: var(--eg-shadow-1);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    margin-bottom: 0;
    position: relative;
}
.options .form-group:has(#input-option231):hover {
    border-color: var(--eg-line-strong);
    box-shadow: var(--eg-shadow-2);
}
.options .form-group:has(#input-option231).kz-active {
    border-color: var(--eg-accent);
}
/* Hide the original label text of the top form-group,
   we'll show it via the .checkbox label below */

.options .form-group:has(#input-option231)>label.control-label {
    display: block;
    position: absolute;
    top: -35px;
    left: 0;
}
/* ── The checkbox label — becomes our toggle label text ── */

#input-option231 .checkbox {
    margin: 0;
}
#input-option231 .checkbox label {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--eg-barik-700);
    cursor: pointer;
    padding: 0;
}
/* Hide the raw checkbox — replaced by visual switch injected by JS */

#input-option231 .checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
/* ── "Free" badge injected by JS ── */

.kz-free-badge {
    font-family: var(--eg-font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--eg-accent);
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}
.kz-active .kz-free-badge {
    opacity: 1;
}
/* ── Info link styling ── */

.options .form-group:has(#input-option231) .optinfo {
    font-family: var(--eg-font-sans) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--eg-muted) !important;
    background: none !important;
    border: none !important;
    border-bottom: 1px solid var(--eg-line-strong) !important;
    border-radius: 0 !important;
    padding: 0 0 2px 0 !important;
    box-shadow: none !important;
    margin: 0 0 0 12px !important;
    transition: color 0.2s, border-color 0.2s !important;
    vertical-align: baseline;
}
.options .form-group:has(#input-option231) .optinfo:hover {
    color: var(--eg-accent) !important;
    border-color: var(--eg-accent) !important;
}
/* ── Visual toggle switch (injected by JS) ── */

.kz-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    margin-left: auto;
}
.kz-switch-track {
    position: absolute;
    inset: 0;
    background: var(--eg-surface-2);
    border: 1px solid var(--eg-barik-300);
    border-radius: 20px;
    transition: background 0.3s, border-color 0.3s;
    pointer-events: none;
}
.kz-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: var(--eg-barik-400);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), background 0.3s;
    pointer-events: none;
}
.kz-active .kz-switch-track {
    background: var(--eg-accent-soft);
    border-color: var(--eg-accent);
}
.kz-active .kz-switch-thumb {
    transform: translateX(16px);
    background: var(--eg-accent);
}
/* ─────────────────────────────────────────────────────
   3. EXPANDABLE PANEL — wraps all .form-group.required
   JS wraps these into .kz-panel + .kz-panel-inner
   ───────────────────────────────────────────────────── */

.kz-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(.4, 0, .2, 1), opacity 0.35s ease;
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 var(--eg-radius-sm) var(--eg-radius-sm);
}
.kz-panel.kz-open {
    max-height: 800px;
    opacity: 1;
    border-color: var(--eg-accent);
    box-shadow: var(--eg-shadow-1);
}
.kz-panel-inner {
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    background: var(--eg-surface);
}
/* ─────────────────────────────────────────────────────
   4. FORM-GROUP REQUIRED — inner fields
   ───────────────────────────────────────────────────── */

/* Override OpenCart default display:none on these — JS controls visibility via panel */

.kz-panel .form-group.required {
    display: block !important;
    margin-bottom: 0;
}
/* Field labels */

.kz-panel .form-group>label.control-label {
    display: block;
    font-family: var(--eg-font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eg-muted);
    margin-bottom: 10px;
}
/* Hide the required star */

.kz-panel .form-group.required>label.control-label::after {
    content: '';
}
/* ── Textarea option[230] ── */

.kz-panel textarea#input-option230 {
    width: 100%;
    background: var(--eg-surface-2);
    border: 1px solid var(--eg-line);
    border-radius: var(--eg-radius-sm);
    padding: 12px 14px;
    font-family: var(--eg-font-sans);
    font-size: 14px;
    font-weight: 300;
    color: var(--eg-barik-700);
    outline: none;
    resize: none;
    min-height: 48px;
    max-height: 48px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.04em;
    line-height: 1.5;
    box-shadow: none;
}
.kz-panel textarea#input-option230::placeholder {
    color: var(--eg-barik-300);
}
.kz-panel textarea#input-option230:focus {
    border-color: var(--eg-barik-500);
    box-shadow: var(--eg-focus);
    background: var(--eg-surface);
    outline: none;
}
/* ── Live preview (injected by JS after textarea) ── */

.kz-preview {
    background: url('https://kazokuknives.com/image/catalog/assets/engraving-bg.png') center / cover no-repeat;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}
.kz-preview.kz-visible {
    opacity: 1;
}
.kz-preview__text {
    font-size: 28px;
    color: var(--eg-barik-700);
    text-shadow: -1px 1px 0 rgba(255, 255, 255, 0.9);
    transition: font-family 0.15s;
    max-width: 90%;
    text-align: center;
    word-break: break-word;
}
/* ── Divider between text and font section (injected by JS) ── */

.kz-divider {
    height: 1px;
    background: var(--eg-line);
    margin: 0;
}
/* ─────────────────────────────────────────────────────
   5. FONT RADIO GROUP — #input-option234
   ───────────────────────────────────────────────────── */

/* Hide the "Font Preview" button — we don't use the lightbox */

.kz-panel .form-group:has(#input-option234) .optinfo {
    display: none !important;
}
/* Grid layout for radio items */

#input-option234 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
/* Each radio item */

#input-option234 .radio {
    margin: 0;
    padding: 0;
    position: relative;
}
#input-option234 .radio label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 10px 12px;
    background: var(--eg-surface-2);
    border: 1px solid var(--eg-line);
    border-radius: var(--eg-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-size: 0;
    /* hide original text — JS injects styled spans */
    min-height: 72px;
    justify-content: center;
}
#input-option234 .radio label:hover {
    border-color: var(--eg-line-strong);
    box-shadow: var(--eg-shadow-1);
    background: var(--eg-surface);
}
/* Hide the original radio input */

#input-option234 .radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
/* Checked state */

#input-option234 .radio input:checked+img+.kz-font-sample, #input-option234 .radio.kz-checked label {
    border-color: var(--eg-accent);
    background: var(--eg-surface);
    box-shadow: 0 0 0 1px var(--eg-accent-soft), var(--eg-shadow-1);
}
/* JS adds .kz-checked on the .radio div */

#input-option234 .radio.kz-checked label {
    border-color: var(--eg-accent);
    background: var(--eg-surface);
    box-shadow: 0 0 0 1px var(--eg-accent-soft), var(--eg-shadow-1);
}
/* Font sample span injected by JS */

.kz-font-sample {
    font-size: 20px;
    color: var(--eg-ink-700);
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s;
    display: block;
}
.kz-font-name-label {
    font-size: 9px;
    font-family: var(--eg-font-sans);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eg-ink-400);
    transition: color 0.2s;
    display: block;
}
#input-option234 .radio.kz-checked .kz-font-sample {
    color: var(--eg-accent);
}
#input-option234 .radio.kz-checked .kz-font-name-label {
    color: var(--eg-accent);
}
/* Hide OpenCart's thumbnail images in radio labels */

#input-option234 .radio label img {
    display: none;
}
/* Font families */

.kz-f-arial {
    font-family: Arial, sans-serif;
    font-size: 18px !important;
}
.kz-f-greatvibes {
    font-family: 'Great Vibes', cursive;
    font-size: 24px !important;
}
.kz-f-handwriting {
    font-family: 'Lucida Handwriting', cursive;
}
.kz-f-calligraphy {
    font-family: 'Lucida Calligraphy', cursive;
}
.kz-f-georgia {
    font-family: Georgia, serif;
}
/* ── Warranty note (injected by JS at bottom of panel) ── */

.kz-note {
    font-family: var(--eg-font-sans);
    font-size: 11px;
    color: var(--eg-ink-500);
    letter-spacing: 0.03em;
    line-height: 1.65;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.kz-note::before {
    content: '⚑';
    color: var(--eg-accent);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}
/* ─────────────────────────────────────────────────────
   6. INFO MODAL (injected by JS)
   ───────────────────────────────────────────────────── */

.kz-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 36, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(6px);
}
.kz-modal-overlay.kz-open {
    opacity: 1;
    pointer-events: all;
}
.kz-modal {
    background: var(--eg-surface);
    border: 1px solid var(--eg-line);
    border-radius: var(--eg-radius-md);
    box-shadow: var(--eg-shadow-2);
    max-width: 400px;
    width: 90%;
    padding: 36px 32px;
    position: relative;
    transform: translateY(14px);
    transition: transform 0.3s;
}
.kz-modal-overlay.kz-open .kz-modal {
    transform: translateY(0);
}
.kz-modal__accent {
    width: 28px;
    height: 2px;
    background: var(--eg-accent);
    border-radius: 2px;
    margin-bottom: 18px;
}
.kz-modal h4 {
    font-family: var(--eg-font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--eg-barik-700);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}
.kz-modal p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--eg-ink-700);
    margin: 0;
}
.kz-modal p+p {
    margin-top: 12px;
}
.kz-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--eg-ink-400);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px;
}
.kz-modal__close:hover {
    color: var(--eg-barik-700);
}
.options {
    width: 100%;
    max-width: 520px;
    margin-top: 40px;
}
div#input-option231 img {
    display: none;
}