.bundle-offer-section {
    margin-top: 0;
}

.bundle-offer-card {
    border-radius: 22px;
    border: 2px solid transparent;
    background:
        radial-gradient(120% 110% at 0% 0%, rgba(70, 166, 255, 0.18) 0%, rgba(70, 166, 255, 0.04) 36%, rgba(9, 18, 35, 0) 70%),
        linear-gradient(160deg, rgba(7, 17, 33, 0.96), rgba(4, 10, 24, 0.96)) padding-box,
        linear-gradient(135deg, rgba(73, 168, 255, 0.6), rgba(112, 133, 255, 0.6)) border-box;
    box-shadow: 0 18px 34px rgba(2, 8, 20, 0.52), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    padding: 16px;
}

.bundle-offer-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.06;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: #fff;
}

.bundle-offer-subtitle {
    margin: 8px 0 0;
    color: #9db5dc;
    font-size: 13px;
    line-height: 1.35;
}

.bundle-badges {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bundle-badge {
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #7fc9ff;
    background: rgba(40, 145, 255, 0.16);
    border: 1px solid rgba(73, 173, 255, 0.25);
}

.bundle-badge.is-saving {
    position: relative;
    overflow: hidden;
}

.bundle-badge.is-saving::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -140%;
    width: 42%;
    height: 180%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    animation: product-badge-glint 5s ease-in-out infinite;
}

.bundle-badge.is-discount {
    color: #dbe7ff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.11);
}

.bundle-items-row {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bundle-item {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    padding: 10px;
}

.bundle-item-main {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
}

.bundle-item-main > :last-child {
    align-self: center;
}

.bundle-item-main .bundle-item-media {
    width: 92px;
    min-width: 92px;
    aspect-ratio: 4 / 3;
}

.bundle-item-main .bundle-item-title {
    margin-top: 0;
    min-height: 0;
    font-size: 14px;
    font-weight: 800;
    -webkit-line-clamp: 3;
}

.bundle-item-main .bundle-item-price {
    margin-top: 8px;
    font-size: 15px;
}

.bundle-choice-slot {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bundle-choice-slot:hover,
.bundle-choice-slot:focus-visible {
    border-color: rgba(89, 166, 255, 0.5);
    background: rgba(72, 153, 255, 0.09);
    outline: none;
}

.bundle-choice-slot:active {
    transform: scale(0.985);
}

.bundle-choice-slot.is-cart-locked,
.bundle-choice-slot.is-cart-locked:hover,
.bundle-choice-slot.is-cart-locked:focus-visible,
.bundle-choice-slot.is-cart-locked:active {
    cursor: default;
    opacity: 0.58;
    filter: grayscale(0.45) saturate(0.55);
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    transform: none;
    outline: none;
    box-shadow: none;
}

.bundle-main-product {
    transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.bundle-main-product.is-cart-locked {
    opacity: 0.58;
    filter: grayscale(0.45) saturate(0.55);
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.bundle-choice-slot .bundle-choice-media {
    border-style: dashed;
    border-color: rgba(73, 173, 255, 0.5);
    background: rgba(40, 145, 255, 0.14);
}

.bundle-choice-slot.has-selection .bundle-choice-media {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.bundle-choice-plus {
    display: block;
    color: #75b8ff;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 0 6px rgba(117, 184, 255, 0.28);
}

.bundle-choice-slot.has-selection .bundle-choice-plus {
    display: none;
}

.bundle-choice-details {
    display: block;
    min-width: 0;
}

.bundle-choice-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: #86a8d7;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.bundle-choice-slot.has-selection .bundle-choice-hint {
    display: none;
}

.bundle-choice-lock-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #aebbd2;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}

.bundle-choice-lock-status svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.bundle-choice-slot [hidden],
.bundle-main-product [hidden] {
    display: none !important;
}

.bundle-item-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bundle-item-title {
    margin-top: 8px;
    font-size: 14px;
    color: #fff;
    font-weight: 800;
    line-height: 1.32;
    min-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bundle-item-pricing {
    margin-top: 3px;
    display: grid;
    gap: 3px;
}

.bundle-item-pricing-top {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 0;
    flex-wrap: nowrap;
}

.bundle-item-price {
    margin-top: 0;
    color: #ffe88a;
    background: linear-gradient(135deg, #ffe88a 0%, #ff9f0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -0.01em;
    line-height: 1;
}

.bundle-item-price-old {
    font-size: 12px;
    color: rgba(219, 231, 255, 0.5);
    text-decoration: line-through;
    text-decoration-thickness: 1.6px;
    font-weight: 700;
    line-height: 1.1;
}

.bundle-item-discount {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    padding: 0 7px;
    border-radius: 4px;
    background: #e32636;
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    align-self: flex-end;
    box-shadow: 0 0 10px rgba(227, 38, 54, 0.26);
}

.bundle-price-grid {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.bundle-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bundle-price-label {
    font-size: 13px;
    color: #8ca7d2;
}

.bundle-price-old {
    font-size: 18px;
    font-weight: 800;
    color: rgba(219, 231, 255, 0.55);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.bundle-price-new {
    font-size: 32px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: #ffe88a;
    background: linear-gradient(135deg, #ffe88a 0%, #ff9f0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(255, 159, 10, 0.25);
}

.bundle-buy-btn {
    margin-top: 12px;
    position: relative;
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #49a8ff, #7085ff);
    box-shadow: 0 6px 30px rgba(70, 166, 255, 0.22);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    overflow: hidden;
}

.bundle-buy-btn:not(.is-added)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 45%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    pointer-events: none;
    animation: buyBtnShimmer 3s linear infinite;
}

@keyframes buyBtnShimmer {
    0% { left: -45%; }
    100% { left: 130%; }
}

.bundle-buy-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
    box-shadow: none;
}

.bundle-buy-btn.is-added {
    cursor: default;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(70, 166, 255, 0.22), rgba(112, 133, 255, 0.22)), rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(219, 233, 255, 0.2);
    box-shadow: none;
    color: #dbe9ff;
}

.bundle-buy-btn.is-added:active {
    transform: none;
    box-shadow: none;
}

.bundle-buy-btn.is-added::after {
    display: none;
}

.bundle-buy-btn:disabled:not(.is-added) {
    cursor: default;
    opacity: 0.62;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(73, 168, 255, 0.55), rgba(112, 133, 255, 0.55));
}

.bundle-buy-btn:disabled:not(.is-added)::after {
    display: none;
}

.bundle-buy-btn.cart-bundle-cancel-btn {
    color: #dbe9ff;
    border: 1px solid rgba(219, 233, 255, 0.2);
    background: linear-gradient(135deg, rgba(70, 166, 255, 0.22), rgba(112, 133, 255, 0.22)), rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.bundle-buy-btn.cart-bundle-cancel-btn::after {
    display: none;
}

.bundle-picker[hidden] {
    display: none !important;
}

.bundle-picker {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bundle-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 20, 0.78);
    backdrop-filter: blur(8px);
}

.bundle-picker-panel {
    position: relative;
    z-index: 1;
    width: min(402px, calc(100vw - 32px));
    max-height: min(760px, 88vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(87, 158, 255, 0.45);
    border-radius: 24px;
    background: #0b1629;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.bundle-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 14px;
}

.bundle-picker-title {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.15;
}

.bundle-picker-subtitle {
    margin: 6px 0 0;
    color: #8ca7d2;
    font-size: 13px;
    line-height: 1.35;
}

.bundle-picker-close {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #dbe7ff;
    background: rgba(255, 255, 255, 0.06);
    line-height: 1;
    cursor: pointer;
}

.bundle-picker-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.bundle-picker-close svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.bundle-picker-filters {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 20px;
    padding: 0 10px 0 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 34px), transparent 100%);
}

@media (hover: hover) and (pointer: fine) {
    .bundle-picker-filters {
        cursor: grab;
        user-select: none;
    }

    .bundle-picker-filters.is-dragging {
        cursor: grabbing;
    }
}

.bundle-picker-filters::-webkit-scrollbar {
    display: none;
}

.bundle-picker-filter {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #a8bddc;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.bundle-picker-filter.is-active {
    border-color: rgba(78, 163, 255, 0.7);
    color: #fff;
    background: rgba(60, 148, 255, 0.2);
}

.bundle-picker-list-frame {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
    padding-top: 14px;
}

.bundle-picker-list-frame.is-without-filters {
    padding-top: 0;
}

.bundle-picker-list {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 9px;
    overflow-y: auto;
    padding: 0 20px 20px;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.bundle-picker-list::-webkit-scrollbar {
    display: none;
}

.bundle-picker-product {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    appearance: none;
}

.bundle-picker-product[hidden],
.bundle-picker-empty[hidden] {
    display: none !important;
}

.bundle-picker-product:focus-visible {
    border-color: rgba(89, 166, 255, 0.5);
    background: rgba(72, 153, 255, 0.09);
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .bundle-picker-product:hover {
        border-color: rgba(89, 166, 255, 0.5);
        background: rgba(72, 153, 255, 0.09);
    }
}

.bundle-picker-product.is-selected {
    border-color: #4fa5ff;
    background: rgba(72, 153, 255, 0.14);
}

.bundle-picker-product:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.bundle-picker-product-media {
    width: 82px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
}

.bundle-picker-product-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bundle-picker-product-info,
.bundle-picker-product-title,
.bundle-picker-product-prices {
    min-width: 0;
}

.bundle-picker-product-info {
    display: grid;
    gap: 8px;
}

.bundle-picker-product-title {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bundle-picker-product-prices {
    display: flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}

.bundle-picker-product-prices strong {
    color: #ffe88a;
    background: linear-gradient(135deg, #ffe88a 0%, #ff9f0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
    font-weight: 850;
}

.bundle-picker-product-prices del {
    color: rgba(219, 231, 255, 0.5);
    font-size: 12px;
    font-weight: 700;
}

.bundle-picker-product-prices small {
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 4px;
    color: #fff;
    background: #e32636;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(227, 38, 54, 0.26);
}

.bundle-picker-product-check {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: transparent;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 800;
}

.bundle-picker-product.is-selected .bundle-picker-product-check {
    border-color: #4fa5ff;
    color: #fff;
    background: #348df0;
}

.bundle-picker-product.is-used .bundle-picker-product-check {
    border-color: rgba(184, 199, 222, 0.42);
    color: #b8c7de;
    background: rgba(184, 199, 222, 0.14);
}

.bundle-picker-empty {
    margin: 20px 0;
    color: #8ca7d2;
    text-align: center;
    font-size: 14px;
}

html.bundle-picker-open,
html.bundle-picker-open body {
    overflow: hidden;
}

@media (max-width: 600px) {
    .bundle-picker-product-info {
        gap: 5px;
    }

    .bundle-picker-product-prices small {
        display: none;
    }
}

@media (max-width: 420px) {
    .bundle-offer-card {
        border-radius: 20px;
        padding: 14px;
    }

    .bundle-offer-title {
        font-size: clamp(18px, 5.35vw, 22px);
        white-space: nowrap;
    }

    .bundle-buy-btn {
        font-size: 16px;
    }

    .bundle-price-new {
        font-size: clamp(26px, 8vw, 32px);
    }

    .bundle-item-main {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .bundle-item-main .bundle-item-media {
        width: 82px;
        min-width: 82px;
    }

    .bundle-item-main .bundle-item-price {
        margin-top: 6px;
    }

    .bundle-picker {
        align-items: center;
        padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    }

    .bundle-picker-panel {
        max-height: 88vh;
        border-radius: 22px;
    }

    .bundle-picker-header {
        padding: 18px 16px 12px;
    }

    .bundle-picker-filters {
        margin-right: 16px;
        margin-left: 16px;
    }

    .bundle-picker-list-frame {
        padding-top: 12px;
    }

    .bundle-picker-list-frame.is-without-filters {
        padding-top: 0;
    }

    .bundle-picker-list {
        padding: 0 16px max(20px, env(safe-area-inset-bottom));
    }

    .bundle-picker-product {
        grid-template-columns: 82px minmax(0, 1fr) 24px;
        gap: 10px;
    }

    .bundle-picker-product-media {
        width: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bundle-buy-btn:not(.is-added)::after,
    .bundle-badge.is-saving::after {
        animation: none;
    }
}
