.bundle-tier-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.bundle-tier-nav__link {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bundle-tier-nav__link.is-active,
.bundle-tier-nav__link:hover {
  background: var(--red-color);
  border-color: transparent;
}

.bundle-page__intro {
  text-align: center;
  color: #ccc;
  max-width: 640px;
  margin: 0 auto 24px;
}

.bundle-page__intro--rich a {
  color: var(--red-color);
  text-decoration: underline;
  text-transform: none;
  font-size: unset;
  font-weight: 500;
}

.bundle-page__intro--rich a:hover {
  opacity: 0.85;
}

.bundle-page__intro--rich p:last-child {
  margin-bottom: 0;
  text-align: center;
}

.bundle-video-list .video-list,
.bundle-video-list {
  display: flex;
  flex-wrap: wrap;
  gap: inherit;
}

/* Как на главной: Trailer и CHOOSE в один ряд (см. .video-buttons в main.css) */
.bundle-page .bundle-video-item .video-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.bundle-page .bundle-video-item .video-buttons > a.button,
.bundle-page .bundle-video-item .video-buttons > button.button {
  flex: 1 1 0;
  width: calc(50% - 5px) !important;
  min-width: 0;
  max-width: calc(50% - 5px);
}

.bundle-page .bundle-video-item .video-buttons .trailer-btn {
  flex: 1.2 1 0;
  width: calc(55% - 5px) !important;
  max-width: calc(55% - 5px);
}

.bundle-page .bundle-video-item .video-buttons .bundle-choose-btn,
.bundle-page .bundle-video-item .video-buttons > a.button.grey-color,
.bundle-page .bundle-video-item .video-buttons > a.auth {
  flex: 1 1 0;
  width: calc(45% - 5px) !important;
  max-width: calc(45% - 5px);
}

.bundle-page .bundle-video-item .video-buttons > *:only-child {
  flex: 1 1 100%;
  width: 100% !important;
  max-width: 100%;
}

.bundle-video-item.is-in-cart .bundle-choose-btn {
  background: #444;
  pointer-events: none;
}

/* Круглый виджет корзины — справа по центру, отступ как у .widget-right (6px) */
.bundle-cart-widget {
  position: fixed;
  right: 6px;
  top: 50%;
  z-index: 9999;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.bundle-cart-widget.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bundle-cart-widget__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red-color, #e30613);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bundle-cart-widget__btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.45);
}

.bundle-cart-widget__btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.bundle-cart-widget__btn.is-ready {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 6px 24px rgba(227, 6, 19, 0.5);
  animation: bundle-cart-pulse 2s ease-in-out infinite;
}

@keyframes bundle-cart-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 6px 20px rgba(227, 6, 19, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(227, 6, 19, 0.25), 0 8px 28px rgba(227, 6, 19, 0.55);
  }
}

.bundle-cart-widget__icon {
  display: block;
  width: 24px;
  height: 24px;
}

.bundle-cart-widget__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--red-color, #e30613);
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-sizing: border-box;
}

.bundle-cart-widget__badge:empty,
.bundle-cart-widget__badge[data-count='0'] {
  display: none;
}

/* Drawer */
.bundle-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
}

.bundle-cart-drawer.is-open {
  pointer-events: auto;
}

.bundle-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.25s;
}

.bundle-cart-drawer.is-open .bundle-cart-drawer__backdrop {
  opacity: 1;
}

.bundle-cart-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  border-left: 1px solid #2a2a2a;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  color: #fff;
}

.bundle-cart-drawer.is-open .bundle-cart-drawer__panel {
  transform: translateX(0);
}

.bundle-cart-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid #222;
}

.bundle-cart-drawer__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.bundle-cart-drawer__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.bundle-cart-drawer__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.bundle-cart-drawer__progress {
  margin: 0;
  padding: 12px 20px;
  font-size: 14px;
  color: #aaa;
  background: rgba(255, 255, 255, 0.03);
}

.bundle-cart-drawer__progress.is-complete {
  color: #8fd49a;
}

.bundle-cart-drawer__list {
  list-style: none;
  margin: 0;
  padding: 8px 20px;
  flex: 1;
  overflow-y: auto;
}

.bundle-cart-drawer__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1e1e1e;
}

.bundle-cart-drawer__list img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.bundle-cart-drawer__list .bundle-cart-item__info {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.bundle-cart-drawer__list .bundle-cart-item__price {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.bundle-cart-drawer__list .bundle-cart-remove {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #444;
  border-radius: 8px;
  color: #ccc;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.15s, color 0.15s;
}

.bundle-cart-drawer__list .bundle-cart-remove:hover {
  border-color: var(--red-color, #e30613);
  color: #fff;
}

.bundle-cart-drawer__footer {
  padding: 16px 20px 24px;
  border-top: 1px solid #222;
  background: #0a0a0a;
}

.bundle-cart-drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 16px;
  font-size: 14px;
  color: #aaa;
}

.bundle-cart-drawer__total strong {
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}

.bundle-cart-drawer__pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bundle-cart-drawer__pay .button {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
}

.bundle-cart-drawer__pay .bundle-pay-hint {
  margin: 0;
  font-size: 13px;
  color: #888;
  text-align: center;
}

.bundle-no-videos,
.bundle-load-error {
  text-align: center;
  color: #ccc;
  padding: 24px 16px;
  width: 100%;
}

@media (max-width: 768px) {
  .bundle-cart-widget {
    right: 6px;
    top: auto;
    bottom: 72px;
    transform: none;
  }
  .bundle-tier-nav__link {
    width: 100%;
    text-align: center;
  }
}
