/* Vibe Waitlist — frontend form styles */

/* ── Variables ─────────────────────────────────────────────────────────────── */
.vwait-wrap {
    --vw-accent:   #a046af;
    --vw-accent-h: #8a38a0;
    --vw-text:     #424f62;
    --vw-muted:    #7a8599;
    --vw-border:   #e8eaed;
    --vw-bg:       #ffffff;
    --vw-bg2:      #f7f8fa;
    --vw-radius:   10px;
    --vw-shadow:   0 2px 16px rgba(0,0,0,.07);
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.vwait-wrap {
    margin: 28px 0 0;
    padding: 24px 26px;
    background: var(--vw-bg);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
    color: var(--vw-text);
    font-family: inherit;
}

/* ── Heading ───────────────────────────────────────────────────────────────── */
.vwait-heading {
    margin-bottom: 20px;
}
.vwait-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--vw-text);
    line-height: 1.3;
}
.vwait-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--vw-muted);
    line-height: 1.5;
}

/* ── Note banner ───────────────────────────────────────────────────────────── */
.vwait-note {
    background: #fdf6e3;
    border-left: 3px solid #e6a817;
    padding: 9px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #7a5a00;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

/* ── Variant rows ──────────────────────────────────────────────────────────── */
.vwait-field-group {
    margin-bottom: 14px;
}
.vwait-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--vw-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}
.vwait-variant-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vwait-variant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1.5px solid var(--vw-border);
    border-radius: 8px;
    background: var(--vw-bg2);
    transition: border-color .15s, background .15s;
}
.vwait-variant-row:has(.vwait-check:checked) {
    border-color: var(--vw-accent);
    background: #faf3fb;
}
.vwait-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--vw-text);
    user-select: none;
    flex: 1;
    min-width: 0;
}
.vwait-check-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vwait-check { display: none; }
.vwait-check-box {
    width: 17px;
    height: 17px;
    border: 2px solid #c8cdd6;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
}
.vwait-check:checked ~ .vwait-check-box {
    background: var(--vw-accent);
    border-color: var(--vw-accent);
}
.vwait-check:checked ~ .vwait-check-box::after {
    content: '';
    display: block;
    width: 4px;
    height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
/* Per-variant qty — only visible when row is checked */
.vwait-var-qty {
    display: none;
    align-items: center;
    border: 1.5px solid var(--vw-border);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.vwait-variant-row:has(.vwait-check:checked) .vwait-var-qty {
    display: inline-flex;
}

/* ── Field grid ────────────────────────────────────────────────────────────── */
.vwait-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.vwait-field { display: flex; flex-direction: column; }

.vwait-form input[type="text"],
.vwait-form input[type="email"],
.vwait-form input[type="tel"],
.vwait-form select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--vw-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--vw-text);
    background: var(--vw-bg);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.vwait-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a8599' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 34px;
}
.vwait-form input::placeholder { color: #b0b8c8; }
.vwait-form input:focus,
.vwait-form select:focus {
    outline: none;
    border-color: var(--vw-accent);
    box-shadow: 0 0 0 3px rgba(160,70,175,.12);
}

/* ── Quantity stepper ──────────────────────────────────────────────────────── */
.vwait-qty-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
}
.vwait-qty-label { font-size: 13px; color: var(--vw-muted); }
.vwait-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--vw-border);
    border-radius: 8px;
    overflow: hidden;
}
.vwait-qty-btn {
    background: var(--vw-bg2);
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: var(--vw-muted);
    transition: background .12s, color .12s;
}
.vwait-qty-btn:hover { background: #ebebeb; color: var(--vw-text); }
.vwait-qty-input {
    width: 48px !important;
    text-align: center;
    border: none !important;
    border-left: 1.5px solid var(--vw-border) !important;
    border-right: 1.5px solid var(--vw-border) !important;
    border-radius: 0 !important;
    padding: 0 4px !important;
    height: 30px;
    font-size: 13px;
    color: var(--vw-text);
    box-shadow: none !important;
    -moz-appearance: textfield;
}
.vwait-qty-input::-webkit-outer-spin-button,
.vwait-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Submit button ─────────────────────────────────────────────────────────── */
.vwait-submit {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--vw-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.vwait-submit:hover    { background: var(--vw-accent-h); }
.vwait-submit:active   { transform: scale(.99); }
.vwait-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ── Messages ──────────────────────────────────────────────────────────────── */
.vwait-msg {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    min-height: 0;
}
.vwait-msg.success { color: #1a8c3f; }
.vwait-msg.error   { color: #cc1818; }
.vwait-confirmed   { color: #1a8c3f; font-weight: 600; font-size: 14px; }
.vwait-full {
    color: #7a5100;
    background: #fff8e1;
    border: 1px solid #f5c842;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
}

/* ── Standalone page ───────────────────────────────────────────────────────── */
.vwait-standalone .vwait-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--vw-accent);
    margin: 0 0 10px;
}
.vwait-product-row {
    border: 1.5px solid var(--vw-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
}
.vwait-product-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: var(--vw-bg2);
    user-select: none;
    transition: background .12s;
}
.vwait-product-row-header:hover { background: #efefef; }
.vwait-product-row.active .vwait-product-row-header {
    background: #f6edf8;
    border-bottom: 1.5px solid #e2c7e8;
}
.vwait-product-row-body { display: none; padding: 14px; }
.vwait-product-row.active .vwait-product-row-body { display: block; }
.vwait-product-name  { font-weight: 600; font-size: 14px; }
.vwait-product-stock { font-size: 12px; color: #cc1818; }
.vwait-chevron { transition: transform .2s; font-size: 11px; color: var(--vw-muted); }
.vwait-product-row.active .vwait-chevron { transform: rotate(180deg); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .vwait-wrap { padding: 18px 16px; }
    .vwait-row  { grid-template-columns: 1fr; }
}
