/* ================================================================
   AwaOwn Polish pass — select fix, button palette, mobile, a11y
   Loaded AFTER awaown-home-v2.css so it wins.
   ================================================================ */

/* ---------------- SELECT DROPDOWN — fix clipping ---------------- */
/* Use a global rule with high specificity so it beats Vendora's app.css
   rules that were forcing a tall line-height / box-sizing. */
html body select,
html body .awaown-field select,
html body .awaown-reg-form-card select,
html body .awaown-form select,
html body .awaown-page select,
html body select.wpcf7-form-control,
html body .woocommerce form .form-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    box-sizing: border-box;
    height: 48px !important;
    line-height: 1.2 !important;
    padding: 0 44px 0 14px !important;
    font-size: .9375rem;
    font-family: inherit;
    color: #0F172A;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 8 10 12 14 8'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    vertical-align: middle;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
html body select:focus,
html body .awaown-field select:focus {
    outline: none;
    border-color: #6D28D9;
    box-shadow: 0 0 0 3px rgba(109,40,217,.15);
}
/* Native select option menu — browser-controlled but we can size option text */
html body select option { font-size: .9375rem; padding: 8px; color: #0F172A; background: #fff; }

/* Same shape for text inputs & textareas, so they align visually */
html body .awaown-field input[type="text"],
html body .awaown-field input[type="email"],
html body .awaown-field input[type="tel"],
html body .awaown-field input[type="password"],
html body .awaown-field input[type="number"],
html body .awaown-field input[type="url"],
html body .awaown-field input[type="file"] {
    height: 48px;
    line-height: 1.2;
    box-sizing: border-box;
}
html body .awaown-field textarea { min-height: 140px; padding: 12px 14px; }

/* ---------------- BUTTON PALETTE — clean + always readable ---------------- */

/* Solid primary (purple) — always white text */
html body .awaown-btn--primary {
    background: linear-gradient(135deg, #6D28D9, #4C1D95) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 8px 18px -6px rgba(109,40,217,.35);
}
html body .awaown-btn--primary:hover {
    background: linear-gradient(135deg, #7C3AED, #5B21B6) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(109,40,217,.45);
}

/* Secondary — white card with purple text + purple border */
html body .awaown-btn--secondary {
    background: #fff !important;
    color: #6D28D9 !important;
    border: 1.5px solid #E5E7EB !important;
}
html body .awaown-btn--secondary:hover {
    border-color: #6D28D9 !important;
    color: #4C1D95 !important;
    background: #FAF5FF !important;
}

/* Indigo variant — always white text */
html body .awaown-btn--indigo {
    background: linear-gradient(135deg, #4F46E5, #3730A3) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
}
html body .awaown-btn--indigo:hover {
    background: linear-gradient(135deg, #6366F1, #4338CA) !important;
    color: #fff !important;
}

/* Outline-white — for purple/dark hero backgrounds */
html body .awaown-btn--outline-white {
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.55) !important;
}
html body .awaown-btn--outline-white:hover {
    background: #fff !important;
    color: #6D28D9 !important;
    border-color: #fff !important;
}

/* Ghost-light — for dark backgrounds; now clearly visible with soft fill */
html body .awaown-btn--ghost-light {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.25) !important;
}
html body .awaown-btn--ghost-light:hover {
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.45) !important;
    color: #fff !important;
}

/* Base button sizing (ensure consistent heights for side-by-side CTAs) */
html body .awaown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .9375rem;
    padding: 11px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    line-height: 1.2;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    justify-content: center;
}
html body .awaown-btn--sm { font-size: .8125rem; padding: 8px 14px; }
html body .awaown-btn--lg { font-size: 1rem;     padding: 14px 26px; border-radius: 14px; }

/* Focus ring for a11y */
html body .awaown-btn:focus-visible {
    outline: 3px solid rgba(109,40,217,.45);
    outline-offset: 2px;
}

/* ---------------- CTA BENEFITS LIST — readable on dark merchant-cta ---------------- */
html body .awaown-merchant-cta .awaown-cta-benefits li {
    color: #F3F4F6 !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
}
html body .awaown-merchant-cta .awaown-cta-benefits li::before {
    background: #10B981 !important;
    color: #fff !important;
}

/* ---------------- MOBILE — hero split, CTAs, phone, testimonials ---------------- */

@media (max-width: 900px) {
    .awaown-hero.awaown-hero--split { padding: 56px 16px 40px; }
    .awaown-hero__content--left { text-align: center !important; margin: 0 auto !important; }
    .awaown-hero__content--left h1,
    .awaown-hero__content--left p { text-align: center; margin-left: auto !important; margin-right: auto !important; }
    .awaown-hero__content--left .awaown-hero__ctas { justify-content: center; margin-bottom: 36px; }
    .awaown-hero__stats { grid-template-columns: 1fr 1fr 1fr !important; gap: 10px; }
    .awaown-hero__stat { padding: 14px 10px; }
    .awaown-hero__stat-num { font-size: 1.5rem !important; }
    .awaown-hero__stat-label { font-size: .6875rem !important; }

    /* Keep visual cards visible but smaller */
    .awaown-hero__visual { height: 360px; margin-top: 16px; }

    /* CTA sections stack */
    .awaown-cta-inner { grid-template-columns: 1fr !important; gap: 40px !important; padding: 48px 16px !important; }
    .awaown-cta-visual { min-height: 300px; }
    .awaown-cta-photo { left: 0; right: 0; border-radius: 20px; }
    .awaown-cta-floating--a,
    .awaown-cta-floating--b {
        min-width: 140px; padding: 10px 14px;
    }
    .awaown-cta-floating--a { top: 12px; left: 12px; }
    .awaown-cta-floating--b { bottom: 12px; right: 12px; }
    .awaown-cta-floating__value { font-size: 1.125rem; }

    /* Phone mockup — smaller + centered */
    .awaown-cta-visual--phone { min-height: 480px; }
    .awaown-phone { width: 250px; }
    .awaown-phone__big { font-size: 1.875rem; }

    /* Testimonials stack */
    .awaown-testi-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .awaown-testi { padding: 22px; }

    /* Final CTA */
    .awaown-final-cta__payment { flex-direction: column; gap: 12px; padding-top: 24px; }

    /* Trust bar wrap cleanly */
    .awaown-trust-bar { padding: 16px 12px; }
    .awaown-trust-bar-inner { justify-content: center; gap: 14px 20px; }
    .awaown-trust-item { font-size: .8125rem; }

    /* Section header / titles */
    .awaown-section { padding: 56px 16px; }
    .awaown-section-title h2 { font-size: 1.75rem; }
    .awaown-section-title p  { font-size: 1rem; }

    /* How it works steps: 1-col */
    .awaown-hiw-steps.active { grid-template-columns: 1fr !important; gap: 14px; }
    .awaown-hiw-step { padding: 24px; }
    .awaown-hiw-step__icon { top: 24px; right: 24px; width: 36px; height: 36px; }

    /* Category grid: 2-col */
    .awaown-cat-grid { grid-template-columns: repeat(2,1fr) !important; gap: 12px; }
    .awaown-cat-card { padding: 24px 12px; }
}

@media (max-width: 520px) {
    .awaown-hero__grid { gap: 28px; }
    .awaown-hero__content--left h1 { font-size: 2.125rem; }
    .awaown-hero__content--left p  { font-size: .9375rem; }
    .awaown-hero__visual           { height: 300px; }
    .awaown-hero__card--1 { width: 68%; height: 58%; left: 6%; }
    .awaown-hero__card--2 { width: 52%; height: 44%; right: 4%; }
    .awaown-hero__card--3 { width: 50%; height: 30%; left: 18%; }
    .awaown-hero__card-tag { font-size: .6875rem; padding: 5px 8px; }
    .awaown-hero__card-meta { font-size: .75rem; }

    .awaown-hero__stats { grid-template-columns: 1fr !important; }
    .awaown-hero__stat  { text-align: center; padding: 16px; }

    .awaown-btn--lg { font-size: .9375rem; padding: 12px 20px; }

    .awaown-phone { width: 220px; }
    .awaown-phone__screen { padding: 42px 16px 16px; }
    .awaown-phone__big { font-size: 1.625rem; }

    /* Hide decorative floating chips on small screens (they overlap CTA photo) */
    .awaown-cta-floating--a { top: 8px; left: 8px; }
    .awaown-cta-floating--b { display: none; }

    .awaown-final-cta h2 { font-size: 1.75rem; }
    .awaown-final-cta__actions { flex-direction: column; align-items: stretch; }
    .awaown-final-cta__actions .awaown-btn { width: 100%; }
}

/* ---------------- REGISTRATION PAGES — mobile & form quality ---------------- */
@media (max-width: 900px) {
    .awaown-reg-hero { padding: 48px 16px 40px !important; }
    .awaown-reg-hero h1 { font-size: 1.875rem !important; }
    .awaown-reg-shell { padding: 24px 12px !important; }
    .awaown-reg-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .awaown-reg-form-card { padding: 22px !important; border-radius: 18px !important; }
    .awaown-reg-side { padding: 22px !important; border-radius: 18px !important; }
    .awaown-reg-stats { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Multi-step numbers */
    .awaown-reg-steps { gap: 6px !important; }
    .awaown-reg-step { font-size: .75rem !important; }

    /* 2-col grids collapse */
    .awaown-reg-form-card .awaown-form-row { grid-template-columns: 1fr !important; gap: 14px !important; }
}

/* ---------------- AFFILIATE DASHBOARD HERO — mobile ---------------- */
@media (max-width: 768px) {
    .awaown-afd-hero { padding: 40px 16px !important; }
    .awaown-afd-hero__title { font-size: 1.625rem !important; }
    .awaown-dk-stats { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .awaown-dk-stat { padding: 14px !important; }
    .awaown-dk-stat__value { font-size: 1.25rem !important; }
}

/* ---------------- CONTENT PAGES (about/faq/privacy/...) — mobile ---------------- */
@media (max-width: 900px) {
    .awaown-page-hero { padding: 48px 16px 56px !important; min-height: auto !important; }
    .awaown-page-hero__title { font-size: 2rem !important; }
    .awaown-page-hero__sub   { font-size: 1rem !important; }
    .awaown-page-shell { padding: 24px 12px !important; }
    .awaown-page-card  { padding: 24px !important; border-radius: 18px !important; }

    /* Doc pages TOC stacks above content */
    .awaown-doc-layout { grid-template-columns: 1fr !important; gap: 16px !important; }
    .awaown-doc-toc { position: static !important; padding: 14px !important; margin-bottom: 0; }

    /* Feature grid: 1 col */
    .awaown-feat-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
    .awaown-feat { padding: 20px !important; }

    /* FAQ */
    .awaown-faq__q { font-size: .9375rem !important; padding: 14px 16px !important; }

    /* Contact grid stacks */
    .awaown-contact-grid { grid-template-columns: 1fr !important; gap: 20px !important; }

    /* Page CTA banner */
    .awaown-page-cta { padding: 28px 20px !important; }
    .awaown-page-cta h2 { font-size: 1.375rem !important; }
    .awaown-page-cta__actions { flex-direction: column; align-items: stretch; }
    .awaown-page-cta__actions .awaown-btn { width: 100%; }
}

/* ---------------- SIGNUP CHOOSER — mobile ---------------- */
@media (max-width: 800px) {
    .awaown-signup-chooser { margin-bottom: 28px; }
    .awaown-signup-chooser__grid { grid-template-columns: 1fr !important; }
}

/* ---------------- A11Y / typography fallbacks ---------------- */
html body .awaown-hero .awaown-hero__badge,
html body .awaown-final-cta .awaown-hero__badge { color: #fff; }

/* Make any "FOR MERCHANTS / FOR AFFILIATES" pill (light variant) readable on dark hero */
html body .awaown-eyebrow--light {
    color: #EDE9FE !important;
    background: rgba(237,233,254,.12) !important;
    border: 1px solid rgba(237,233,254,.2);
}

/* ---- Grouped product stock badge — prevent wrap in narrow table cell ---- */
.woocommerce-grouped-product-list-item__stock .stock,
.woocommerce-grouped-product-list .stock {
    white-space: nowrap;
}
.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__stock {
    width: 1%;            /* shrink-wrap the cell to the badge */
    white-space: nowrap;
}
