/* Agoogi V5.9 — compact authentication + shop disclosures */

.auth-shell {
    padding-top: clamp(28px, 5vw, 58px);
    padding-bottom: clamp(44px, 7vw, 82px);
}

.auth-compact-container {
    width: min(760px, calc(100% - 28px));
    margin-inline: auto;
}

.auth-compact-container--wide {
    width: min(940px, calc(100% - 28px));
}

.auth-page-intro {
    margin: 0 auto 20px;
    text-align: center;
}

.auth-page-intro h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.08;
}

.auth-page-intro p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.55;
}

.auth-page-notice {
    max-width: 760px;
    margin: 0 auto 16px;
}

.auth-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.auth-choice-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.auth-choice-card[open] {
    grid-column: 1 / -1;
    border-color: #bae6fd;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
}

.auth-choice-card > summary,
.auth-choice-summary-static {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    gap: 12px;
    align-items: center;
    min-height: 84px;
    padding: 16px 18px;
}

.auth-choice-card > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.auth-choice-card > summary::-webkit-details-marker {
    display: none;
}

.auth-choice-card > summary:hover,
.auth-choice-card > summary:focus-visible {
    background: #f8fafc;
}

.auth-choice-summary-static {
    grid-template-columns: 46px minmax(0, 1fr);
}

.auth-choice-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #ecfeff;
    color: #075985;
    font-size: 20px;
    font-weight: 900;
}

.auth-choice-icon--google {
    background: #f8fafc;
    color: #1f2937;
    border: 1px solid #e2e8f0;
}

.auth-choice-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.auth-choice-copy strong {
    color: var(--dark);
    font-size: 17px;
    line-height: 1.25;
}

.auth-choice-copy small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.auth-choice-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .18s ease;
}

.auth-choice-card[open] .auth-choice-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.auth-choice-body {
    padding: 4px 20px 22px;
    border-top: 1px solid #eef2f7;
}

.auth-choice-body--compact {
    padding-top: 14px;
}

.auth-choice-explainer,
.auth-privacy-note,
.auth-field-help {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-choice-explainer {
    margin: 14px 0 4px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
}

.auth-form-grid--single {
    grid-template-columns: 1fr;
}

.auth-field-span {
    grid-column: 1 / -1;
}

.auth-consent-stack {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.auth-compact-check {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 10px !important;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 500;
}

.auth-compact-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
}

.auth-compact-check span {
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
}

.auth-primary-action {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

.auth-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.auth-form-actions .auth-primary-action {
    width: auto;
    min-width: 150px;
    margin-top: 0;
}

.auth-switch-line {
    margin: 20px 0 0;
    text-align: center;
}

/* Shop: keep decisions visible, long copy optional. */
.shop-product-main {
    min-width: 0;
}

.shop-product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
}

.shop-product-flags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.shop-product-details {
    max-width: 760px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.shop-product-details > summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 11px 42px 11px 14px;
    color: #0f5f73;
    font-size: 14px;
    font-weight: 900;
}

.shop-product-details > summary::-webkit-details-marker {
    display: none;
}

.shop-product-details > summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: #64748b;
}

.shop-product-details[open] > summary::after {
    content: '−';
}

.shop-product-details__body {
    padding: 0 14px 14px;
    border-top: 1px solid #eef2f7;
}

.shop-product-details__body > p:first-child {
    margin-top: 12px;
}

.shop-product-subsection {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.shop-product-subsection ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

@media (max-width: 760px) {
    .auth-shell {
        padding-top: 22px;
    }

    .auth-choice-grid {
        grid-template-columns: 1fr;
    }

    .auth-choice-card[open] {
        grid-column: auto;
    }

    .auth-choice-card > summary,
    .auth-choice-summary-static {
        min-height: 76px;
        padding: 14px;
    }

    .auth-choice-body {
        padding: 2px 14px 18px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-field-span {
        grid-column: auto;
    }

    .auth-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-form-actions .auth-primary-action {
        width: 100%;
    }

    .shop-hero {
        padding-bottom: 18px;
    }

    .shop-hero h1 {
        font-size: clamp(27px, 8vw, 38px);
        line-height: 1.1;
    }

    .shop-filter-panel {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .shop-category-form,
    .shop-currency-summary {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .shop-currency-summary p {
        display: none;
    }

    .shop-toolbar--horizontal {
        margin-bottom: 14px !important;
    }

    .shop-product-list {
        gap: 16px !important;
    }

    .shop-product-card {
        border-radius: 18px !important;
    }

    .shop-product-media,
    .shop-product-media > img,
    .shop-product-media .slider-track img,
    .shop-product-placeholder {
        min-height: 210px !important;
        max-height: 280px !important;
    }

    .shop-product-media--contain > img,
    .shop-product-media--contain .slider-track img {
        padding: 10px !important;
    }

    .shop-product-content {
        gap: 16px !important;
        padding: 16px !important;
    }

    .shop-product-content h3 {
        margin: 6px 0 8px !important;
        font-size: clamp(20px, 6vw, 26px) !important;
    }

    .shop-product-purchase {
        gap: 10px !important;
    }

    .shop-product-purchase .price {
        font-size: 21px !important;
    }

    .shop-product-details {
        width: 100%;
    }

    .product-share-row {
        margin-top: 2px;
    }
}

@media (max-width: 430px) {
    .auth-compact-container,
    .auth-compact-container--wide {
        width: min(100% - 18px, 940px);
    }

    .auth-choice-card > summary,
    .auth-choice-summary-static {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 10px;
    }

    .auth-choice-summary-static {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .auth-choice-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .auth-choice-copy strong {
        font-size: 16px;
    }

    .auth-choice-copy small {
        font-size: 12px;
    }
}
