/* Age Verification Styles */

/* Override any theme's btn-primary text-transform and ensure readable contrast */
#pxl-age-verify-btn {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #ffffff !important;
}

.pxl-verified-icon-circle {
    color: #0CBC32;
    background-color: rgba(12, 188, 50, 0.08);
}
.pxl-verified-label {
    color: #0CBC32;
}

.pxl-age-verification-summary-message {
    font-size: 0.95rem;
    color: #7a7e9f;
    margin-bottom: 10px;
}

.pxl-age-verification-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 0 60px 0;
}
.pxl-age-verification-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(60, 60, 120, 0.08);
    padding: 48px 32px 40px 32px;
    max-width: 480px;
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}
.pxl-age-verification-header {
    color: #8b8fa7;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.pxl-age-verification-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #181a2a;
}
.pxl-age-verification-desc {
    color: #7a7e9f;
    font-size: 1.1rem;
    margin-bottom: 32px;
}
.pxl-age-verification-box {
    background: #f7f8fa;
    border-radius: 16px;
    padding: 32px 24px 28px 24px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(60, 60, 120, 0.04);
}
.pxl-age-verification-info {
    font-size: 1.1rem;
    color: #23244a;
    margin-bottom: 24px;
}
.pxl-age-verification-btn, .pxl-age-qr-btn {
    background: #A81BCC;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    padding: 14px 38px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 12px;
    margin-bottom: 8px;
    display: inline-block;
}
.pxl-age-verification-btn:hover, .pxl-age-qr-btn:hover {
    background: #8a0fa8;
}
.pxl-age-verification-how {
    text-align: center;
}
.pxl-age-verification-how h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #23244a;
}
.pxl-age-verification-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.pxl-age-verification-step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60, 60, 120, 0.04);
    padding: 18px 24px;
    min-width: 180px;
    max-width: 220px;
    font-size: 1rem;
    color: #23244a;
}
#pxl-age-verification-result {
    margin-top: 16px;
}
.pxl-age-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}
.pxl-age-msg--error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}
.pxl-age-msg--success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}
.pxl-age-msg--info {
    color: #555;
    font-size: 0.88rem;
}
#pxl-age-qr-section {
    display: none;
    margin-top: 20px;
}
#pxl-age-status-progress {
    margin: 24px 0 10px 0;
}
#pxl-age-progress-label {
    font-weight: 600;
    color: #3bb273;
    margin-bottom: 8px;
}
.pxl-age-progress-bg {
    background: #eaf6ed;
    border-radius: 8px;
    height: 18px;
    width: 100%;
    max-width: 400px;
    margin: auto;
    overflow: hidden;
}
#pxl-age-progress-bar {
    background: #b6e2c6;
    height: 18px;
    border-radius: 8px;
    width: 0%;
    transition: width 0.5s;
}
#pxl-age-progress-text {
    margin-top: 8px;
    font-weight: 600;
    color: #23244a;
}
#pxl-age-status-msg {
    margin-top: 10px;
}

/* ── Error page ─────────────────────────────────────────────────────────── */
.pxl-age-error-card {
    border-top: 5px solid #e53e3e;
}
.pxl-age-error-icon {
    display: flex;
    justify-content: center;
    margin: 8px 0 20px;
}
.pxl-age-error-icon svg {
    width: 72px;
    height: 72px;
}
.pxl-age-error-title {
    color: #c53030;
}
.pxl-age-error-code {
    display: inline-block;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: monospace;
    padding: 4px 12px;
    margin-bottom: 24px;
}
.pxl-age-error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}
.pxl-age-error-retry-btn {
    text-decoration: none;
    display: inline-block;
}
.pxl-age-error-home-link {
    color: #8b8fa7;
    font-size: 0.95rem;
    text-decoration: underline;
    cursor: pointer;
}
.pxl-age-error-home-link:hover {
    color: #A81BCC;
}
.pxl-age-error-help {
    margin-top: 0;
}

/* ── Product Detail Page – Age Notice ───────────────────────────────────── */
.pxl-pdp-age-notice {
    --pxl-age-accent: #A81BCC;
    --pxl-age-accent-rgb: 168, 27, 204;
    --pxl-age-accent-soft: #cc60e0;
    --pxl-age-accent-deep: #7a0f96;

    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 26px 30px 26px 26px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(var(--pxl-age-accent-rgb), 0.07) 0%, transparent 55%),
        #ffffff;
    border: 1px solid rgba(var(--pxl-age-accent-rgb), 0.18);
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(31,19,38,0.05),
        0 10px 28px -10px rgba(var(--pxl-age-accent-rgb), 0.28);
    margin: 12px 0 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.pxl-pdp-age-notice::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(
        180deg,
        var(--pxl-age-accent-soft),
        var(--pxl-age-accent-deep)
    );
}

.pxl-pdp-age-notice__badge {
    position: relative;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(
        140deg,
        var(--pxl-age-accent-soft) 0%,
        var(--pxl-age-accent-deep) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 6px 16px -4px rgba(var(--pxl-age-accent-rgb), 0.5);
}

.pxl-pdp-age-notice__badge > span {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.pxl-pdp-age-notice__badge-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    padding: 3px;
    background: #fff;
    border-radius: 50%;
    color: var(--pxl-age-accent);
    box-shadow: 0 2px 6px rgba(var(--pxl-age-accent-rgb), 0.3);
}

.pxl-pdp-age-notice__body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.pxl-pdp-age-notice__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #1f1326;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.pxl-pdp-age-notice__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #6b5d72;
}

.pxl-pdp-age-notice__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pxl-age-accent);
    background: rgba(var(--pxl-age-accent-rgb), 0.1);
    padding: 5px 10px;
    border-radius: 999px;
}
