/* =============================================
   CUSTOMER SHOP – Stylesheet
   ============================================= */

:root {
    --shop-card-radius: 16px;
}

/* === MAIN LAYOUT === */
main {
    display: flex;
    max-width: 1480px;
    margin: 2rem auto;
    gap: 2.25rem;
    padding: 0 1.25rem 0 2.5rem;
    align-items: flex-start;
}

.shop-filters {
    width: 256px;
    flex-shrink: 0;
    position: sticky;
    top: 5.5rem;
    margin-left: 0.45rem;
}

.shop-filters-card {
    background: #ffffff;
    border: 1px solid #e1e3e4;
    border-radius: var(--shop-card-radius);
    box-shadow: 0 1px 4px rgba(15,23,42,0.08), 0 10px 24px rgba(15,23,42,0.06);
    padding: 1.2rem;
}

.shop-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.shop-filters-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text, #1a202c);
}

.shop-filters-reset {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.shop-filters-reset:hover {
    color: #111827;
}

.category-filter-list {
    display: grid;
    gap: 0.55rem;
}

.category-filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    border: 1px solid #d6dae0;
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    padding: 0.72rem 0.85rem;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.category-filter-btn span {
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
}

.category-filter-btn strong {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.76rem;
}

.category-filter-btn:hover {
    border-color: #111827;
    color: #111827;
    transform: translateY(-1px);
}

.category-filter-btn.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.category-filter-btn.active strong {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
}

.category-filter-btn--all {
    border-style: dashed;
}

.category-filter-btn--all.active {
    border-style: solid;
}

.category-filter-empty,
.products-empty-state {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* === PRODUCTS AREA === */
.products-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* === SHOP TOOLBAR === */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-title {
    color: var(--text, #1a202c);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

/* === PRODUCT SEARCH === */
.product-search-box input {
    padding: 0.72rem 1rem 0.72rem 2.5rem;
    border: 1px solid #becab8;
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 250px;
    background: #f3f4f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23808a7b' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.78rem center;
    transition: border-color 0.18s, box-shadow 0.18s;
    color: var(--text, #1a202c);
}

.product-search-box input:focus {
    outline: none;
    border-color: var(--club-btn-bg, #2563EB);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.product-search-box input::placeholder {
    color: #94a3b8;
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

/* === PRODUCT CARD === */
.product-card {
    background: #fff;
    border-radius: var(--shop-card-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08), 0 8px 22px rgba(15,23,42,0.06);
    border: 1px solid #e1e3e4;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow 0.22s, transform 0.22s;
}

.product-card:hover {
    box-shadow: 0 10px 28px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.08);
    transform: translateY(-2px);
}

.product-image-wrap {
    position: relative;
    background: #f4f5f6;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid #eceff1;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.01);
}

/* === FRONT / BACK IMAGE TOGGLE === */
.product-side-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    opacity: 0;
    transition: opacity 0.28s ease;
    transform: none !important;
}

.product-side-img--active {
    opacity: 1;
}

.product-image-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem 0;
    background: #fff;
}

.product-image-tab {
    flex: 1;
    padding: 0.3rem 0;
    border: 1px solid #e1e3e4;
    border-radius: 6px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.16s ease;
}

.product-image-tab:hover {
    border-color: #94a3b8;
    color: #374151;
}

.product-image-tab--active {
    border-color: var(--club-btn-bg, #2563EB);
    background: var(--club-btn-bg, #2563EB);
    color: #fff;
}

.product-image-tab--active:hover {
    color: #fff;
}

.product-card:hover .product-image-wrap-customizable img {
    transform: none;
}

.product-image-wrap-customizable {
    aspect-ratio: 1 / 1;
}

.product-image-customizable {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.product-custom-overlay {
    position: absolute;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(255,255,255,0.65), 0 0 1px rgba(15,23,42,0.25);
}

/* === GENDER BADGE === */
.product-gender-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-gender-badge--herren  { background: #dbeafe; color: #1e40af; }
.product-gender-badge--damen   { background: #fce7f3; color: #9d174d; }
.product-gender-badge--unisex  { background: #e0e7ff; color: #3730a3; }
.product-gender-badge--kinder  { background: #dcfce7; color: #166534; }

.product-gender-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.product-gender-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    margin-right: 0.1rem;
}

/* === GENDER SELECT BUTTONS === */
.product-gender-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.product-gender-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #334155;
}
.product-gender-btn.active { font-weight: 700; }
.product-gender-btn--herren.active { background: #dbeafe; color: #1e40af; border-color: #3b82f6; }
.product-gender-btn--damen.active  { background: #fce7f3; color: #9d174d; border-color: #ec4899; }
.product-gender-btn--unisex.active { background: #e0e7ff; color: #3730a3; border-color: #6366f1; }
.product-gender-btn--kinder.active { background: #dcfce7; color: #166534; border-color: #22c55e; }

/* === PRICE DISPLAY === */
.product-price-amount {
    display: inline;
}
.product-price-sub {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
    margin-top: 0.15rem;
}

/* === PRODUCT CARD BODY === */
.product-card-body {
    padding: 1.12rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-type-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #ecfeff;
    color: #155e75;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-card h3 {
    margin-bottom: 0.35rem;
    color: var(--text, #1a202c);
    font-size: 1.32rem;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.product-card p {
    color: var(--text-muted, #718096);
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
    line-height: 1.45;
}

.product-price {
    font-size: 1.12rem;
    color: #111827;
    font-weight: 500;
    margin-bottom: 0.9rem;
    letter-spacing: 0;
}

/* === SIZE SELECTOR === */
.product-size-field {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}

.product-size-field span {
    color: #525862;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.product-size-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text, #1a202c);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.18s;
}

.product-size-select-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.product-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-size-option-btn {
    border: 1px solid #d6dae0;
    background: #ffffff;
    color: #6b7280;
    min-width: 36px;
    height: 34px;
    padding: 0 0.8rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.16s ease;
}

.product-size-option-btn:hover {
    border-color: #111827;
    color: #111827;
}

.product-size-option-btn.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

/* === COLOR BUTTONS === */
.product-color-field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.product-color-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
}

.product-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-color-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #d6dae0;
    background: #ffffff;
    color: #6b7280;
    height: 34px;
    padding: 0 0.8rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.16s ease;
}

.product-color-option-btn.has-swatch::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--swatch-color, #ccc);
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.product-color-option-btn:hover {
    border-color: #111827;
    color: #111827;
}

.product-color-option-btn.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.product-color-option-btn.has-swatch.active::before {
    border-color: rgba(255,255,255,0.4);
}

.product-size-select:focus {
    outline: none;
    border-color: var(--club-btn-bg, #2563EB);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* === CUSTOMIZATION === */
.product-customization-block {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.customization-toggle-btn {
    width: fit-content;
    font-size: 0.7rem !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 2px !important;
    background: #ffffff !important;
    color: #525862 !important;
    border: 1px solid #d6dae0 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700 !important;
}

.customization-toggle-btn:hover {
    border-color: #111827 !important;
    color: #111827 !important;
}

.customization-toggle-btn.is-active {
    border-color: #111827 !important;
    background: #111827 !important;
    color: #ffffff !important;
}

.customization-panel {
    display: grid;
    gap: 0.3rem;
}

.customization-panel span {
    color: #525862;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.customization-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #d6dae0;
    border-radius: 3px;
    background: #fff;
    color: var(--text, #1a202c);
    font-family: inherit;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: border-color 0.18s;
}

.customization-input:focus {
    outline: none;
    border-color: var(--club-btn-bg, #2563EB);
}

.customization-input--error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
    animation: customizationErrorPulse 1.1s ease-in-out 2;
}

@keyframes customizationErrorPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.30); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12); }
    100% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22); }
}

/* === CARD ACTIONS === */
.product-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
}

.product-card-actions .quantity-input {
    width: 68px !important;
    border: 1px solid #d6dae0;
    border-radius: 3px;
    height: 38px;
    text-align: center;
    font-size: 0.82rem;
}

/* === CART SIDEBAR === */
.cart-sidebar {
    width: 360px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--shop-card-radius);
    box-shadow: 0 1px 4px rgba(15,23,42,0.08), 0 10px 24px rgba(15,23,42,0.06);
    border: 1px solid #e1e3e4;
    height: fit-content;
    position: sticky;
    top: 5.5rem;
}

.product-card .btn.btn-primary,
.cart-sidebar .btn.btn-primary {
    background: #111827;
    border-color: #111827;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.product-card .btn.btn-primary:hover,
.cart-sidebar .btn.btn-primary:hover {
    background: #000000;
    border-color: #000000;
}

.cart-sidebar h2 {
    margin-bottom: 1rem;
    color: var(--text, #1a202c);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid var(--border, #e2e8f0);
}

#cartItems {
    margin-bottom: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: start;
    gap: 0.65rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Produktbild im Warenkorb */
.cart-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.cart-item-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

/* Infospalte */
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text, #1a202c);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.cart-item-qty {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.cart-item-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text, #1a202c);
}

/* Entfernen-Button */
.cart-item-remove {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.2rem;
    line-height: 1;
    transition: color 0.15s;
    align-self: start;
    margin-top: 3px;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

/* Leer-Hinweis */
.cart-empty-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem 0;
    margin: 0;
}

.cart-total {
    padding: 0.9rem 0 0;
    border-top: 2px solid var(--border, #e2e8f0);
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #1a202c);
}

#checkoutBtn {
    width: 100%;
    margin-top: 1rem;
}

.cart-disclaimer {
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
}

/* === SHOP HEADER === */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 220;
    min-height: 72px;
    justify-content: flex-end;
}

.shop-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.shop-header #shopBrandText {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.shop-club-logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.shop-club-logo-center img {
    max-width: 180px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* === PAYMENT OPTIONS === */
#co_paymentMethods {
    display: grid;
    gap: 0.65rem;
}

.checkout-payment-option {
    display: grid;
    grid-template-columns: 18px minmax(0,1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.checkout-payment-option:hover {
    border-color: var(--club-btn-bg, #2563EB);
    background: #f8fbff;
}

.checkout-payment-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-top: 0.18rem;
    accent-color: var(--club-btn-bg, #2563EB);
}

.checkout-payment-option strong {
    display: block;
    color: var(--text, #1a202c);
    font-size: 0.9rem;
    font-weight: 600;
}

.checkout-payment-option small {
    display: block;
    margin-top: 0.18rem;
    color: var(--text-muted, #718096);
    line-height: 1.4;
    font-size: 0.82rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    main {
        flex-direction: column;
    }

    .shop-filters {
        width: 100%;
        position: static;
    }

    .category-filter-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .product-card {
        width: 100%;
    }

    .cart-sidebar {
        width: 100%;
        position: static;
    }

    .shop-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: space-between;
    }

    .shop-header .logo {
        position: static;
        transform: none;
    }

    .shop-club-logo-center {
        position: static;
        order: 2;
        width: 100%;
        transform: none;
        pointer-events: auto;
    }

    .shop-header nav {
        margin-left: auto;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 560px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .product-card-body {
        padding: 0.85rem;
    }

    .product-search-box input {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    main {
        margin: 1rem auto;
        gap: 1rem;
        padding: 0 0.8rem;
    }

    .shop-header {
        min-height: 0;
        padding: 0.75rem 0.9rem;
        gap: 0.55rem;
    }

    .shop-header .logo {
        width: 100%;
        justify-content: center;
    }

    .logo-image {
        height: 34px;
    }

    .shop-header #shopBrandText {
        font-size: 1.04rem;
    }

    .shop-header nav {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .shop-toolbar {
        margin-bottom: 0.9rem;
    }

    .shop-title {
        width: 100%;
        font-size: 1.25rem;
    }

    .product-search-box {
        width: 100%;
    }

    .product-search-box input {
        width: 100%;
        min-width: 0;
    }

    .shop-filters-card,
    .cart-sidebar {
        padding: 1rem;
        border-radius: 12px;
    }

    .category-filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .category-filter-btn {
        padding: 0.62rem 0.7rem;
    }

    .category-filter-btn span {
        font-size: 0.8rem;
    }

    .cart-item-name,
    .cart-item-meta {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    #checkoutModal {
        padding: 0.6rem;
    }

    #checkoutModal > div {
        width: calc(100% - 0.2rem) !important;
        max-width: none !important;
        margin: 0.4rem auto !important;
        padding: 1rem !important;
        border-radius: 10px !important;
    }

    #checkoutForm fieldset {
        padding: 0.95rem !important;
    }

    #checkoutForm div[style*="grid-template-columns:1fr 1fr"],
    #checkoutForm div[style*="grid-template-columns: 1fr 1fr"],
    #checkoutForm div[style*="grid-template-columns:2fr 1fr"],
    #checkoutForm div[style*="grid-template-columns: 2fr 1fr"],
    #checkoutForm div[style*="grid-template-columns:1fr 2fr"],
    #checkoutForm div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }

    #checkoutForm div[style*="justify-content:flex-end"] {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
    }

    #checkoutForm div[style*="justify-content:flex-end"] button {
        width: 100%;
    }

    #agbModal > div {
        width: calc(100% - 1rem) !important;
        max-width: none !important;
        margin: 0.8rem auto !important;
        padding: 1rem !important;
    }
}
