/* Cart page prototype */
.cart-page {
  max-width: 640px;
  padding-bottom: 118px;
}

/* Экран результата оплаты (после возврата из банка) */
.checkout-result {
  margin: 24px auto 0;
  max-width: 440px;
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(28, 40, 74, 0.4);
  border: 1px solid rgba(120, 150, 220, 0.16);
  text-align: center;
}
.checkout-result-icon {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 14px;
}
.checkout-result-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fffdf8;
}
.checkout-result-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #b7c3de;
}
.checkout-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkout-result-actions .cart-pay-button {
  width: 100%;
}
.checkout-result-actions .cart-secondary-action {
  width: 100%;
  min-height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #c7d2ec;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cart-shell {
  width: 100%;
  display: grid;
  gap: 14px;
  color: #fffdf8;
}

.cart-breadcrumb {
  color: rgba(237, 243, 255, 0.52);
  font-size: 13px;
  font-weight: 800;
}

.cart-title {
  margin: -6px 0 0;
  color: #fffdf8;
  font-size: 30px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.9px;
}

.cart-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(93, 231, 255, 0.13);
  background: radial-gradient(circle at 0 0, rgba(93, 231, 255, 0.08), transparent 36%), rgba(15, 21, 35, 0.88);
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 122px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item-cover {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(93, 231, 255, 0.16);
  background: radial-gradient(circle at 22% 12%, rgba(93, 231, 255, 0.2), transparent 34%), linear-gradient(135deg, rgba(34, 68, 112, 0.96), rgba(11, 15, 24, 0.98));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.cart-item-cover.has-image {
  padding: 0;
}

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

.cart-item-cover span {
  color: #fffdf8;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: -0.3px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.cart-theme-ufc {
  background: radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.18), transparent 34%), radial-gradient(circle at 78% 20%, rgba(255, 112, 61, 0.34), transparent 30%), linear-gradient(135deg, rgba(70, 28, 25, 0.94), rgba(13, 16, 25, 0.98));
}

.cart-theme-fc26, .cart-theme-fc25 {
  background: radial-gradient(circle at 22% 12%, rgba(89, 255, 153, 0.2), transparent 34%), radial-gradient(circle at 78% 22%, rgba(78, 128, 255, 0.34), transparent 30%), linear-gradient(135deg, rgba(23, 66, 42, 0.92), rgba(13, 19, 35, 0.98));
}

.cart-theme-black-flag {
  background: radial-gradient(circle at 20% 12%, rgba(245, 221, 165, 0.22), transparent 34%), radial-gradient(circle at 82% 18%, rgba(255, 122, 47, 0.28), transparent 30%), linear-gradient(135deg, rgba(55, 36, 24, 0.95), rgba(11, 15, 24, 0.98));
}

.cart-item-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.cart-item-main h2 {
  margin: 0;
  color: #fffdf8;
  font-size: 16px;
  line-height: 1.12;
  font-weight: 1000;
  letter-spacing: -0.25px;
}

.cart-item-main p {
  margin: 0;
  color: rgba(237, 243, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.cart-qty {
  width: fit-content;
  min-width: 108px;
  display: grid;
  grid-template-columns: 30px 38px 30px;
  align-items: center;
  margin-top: 4px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.cart-qty button {
  height: 34px;
  border: 0;
  background: transparent;
  color: #fffdf8;
  font-size: 18px;
  font-weight: 900;
}

.cart-qty span {
  color: #fffdf8;
  font-size: 15px;
  font-weight: 1000;
  text-align: center;
}

/* Отдельная тонкая секция выбора консоли (между «Итого» и формой заказа) */
.cart-console-card {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(28, 40, 74, 0.4);
  border: 1px solid rgba(120, 150, 220, 0.16);
}
.cart-console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-console-title {
  font-size: 14px;
  font-weight: 700;
  color: #eef3ff;
}
.cart-console-options {
  display: flex;
  gap: 8px;
}
.cart-console-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #9aa6c6;
}
.cart-console-btn {
  min-width: 52px;
  height: 32px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #c7d2ec;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cart-console-btn.is-active {
  border-color: #4f8dff;
  background: rgba(79, 141, 255, 0.22);
  color: #eef3ff;
}

.cart-item-side {
  min-width: 86px;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cart-line-price {
  color: #fffdf8;
  font-size: 18px;
  line-height: 1;
  font-weight: 1000;
  white-space: nowrap;
  text-shadow: 0 5px 22px rgba(255, 196, 96, 0.24);
}

/* Зачёркнутая полная цена над скидочной (когда применена подписочная скидка). */
.cart-line-oldprice {
  color: rgba(226, 235, 255, 0.42);
  font-size: 12px;
  line-height: 1;
  text-decoration: line-through;
  white-space: nowrap;
  margin-bottom: 3px;
  text-align: right;
}

/* Название подписки в галочке — цветом её бейджа (как на карточке игры):
   PS Plus — жёлтый (#f5b301), EA Play — красный (#ff4747). */
.cart-sub-check-row strong,
.cart-sub-check-row strong.is-plus {
  color: #f5b301;
}
.cart-sub-check-row strong.is-ea {
  color: #ff4747;
}

.cart-remove {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 243, 255, 0.75);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}

.cart-summary, .cart-form-card, .cart-explain, .cart-empty {
  border: 1px solid rgba(93, 231, 255, 0.13);
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(93, 231, 255, 0.08), transparent 40%), rgba(15, 21, 35, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.cart-summary { padding: 16px; }

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-total-row span {
  color: #fffdf8;
  font-size: 20px;
  font-weight: 1000;
}

.cart-total-row strong {
  color: #fffdf8;
  font-size: 25px;
  line-height: 1;
  font-weight: 1000;
  text-align: right;
  text-shadow: 0 6px 22px rgba(255, 196, 96, 0.28);
}

.cart-form-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.cart-check-row, .cart-promo-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.045);
}

.cart-check-row input {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(237, 243, 255, 0.32);
  background: rgba(237, 243, 255, 0.12);
}

.cart-check-row input:checked {
  border-color: #ff7a2f;
  background: linear-gradient(135deg, #ff6a2f, #ff9b4d);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.1);
}

.cart-check-row span {
  color: #fffdf8;
  font-size: 14px;
  font-weight: 900;
}

.cart-promo-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fffdf8;
  font-size: 15px;
  font-weight: 800;
}

.cart-promo-row input::placeholder { color: rgba(237, 243, 255, 0.42); }

.cart-pay-button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(100deg, #ff6a2f, #ff9b4d);
  color: #ffffff;
  font-size: 17px;
  font-weight: 1000;
  box-shadow: 0 18px 36px rgba(255, 122, 47, 0.25);
}

.cart-explain {
  padding: 18px;
  border-color: rgba(255, 122, 47, 0.24);
  background: radial-gradient(circle at 0 0, rgba(255, 122, 47, 0.12), transparent 38%), rgba(17, 18, 28, 0.9);
}

.cart-explain h2 {
  margin: 0 0 12px;
  color: #fffdf8;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 1000;
  letter-spacing: -0.3px;
}

.cart-explain ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.cart-explain li {
  position: relative;
  padding-left: 18px;
  color: rgba(237, 243, 255, 0.72);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 700;
}

.cart-explain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7a2f;
  box-shadow: 0 0 14px rgba(255, 122, 47, 0.5);
}

.cart-empty {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.cart-empty-title {
  color: #fffdf8;
  font-size: 20px;
  font-weight: 1000;
}

.cart-empty p {
  margin: 0;
  color: rgba(237, 243, 255, 0.64);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.cart-secondary-action {
  width: fit-content;
  min-height: 44px;
  border: 1px solid rgba(93, 231, 255, 0.24);
  border-radius: 15px;
  padding: 0 16px;
  background: rgba(93, 231, 255, 0.09);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 900;
}

.region-nav-badge {
  position: absolute;
  top: 3px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  background: linear-gradient(135deg, #ff5d2e, #ff9348);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(255, 122, 47, 0.34);
}

@media (max-width: 560px) {
  .cart-page { max-width: none; }
  .cart-title { font-size: 28px; }
  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 112px;
    padding: 12px;
  }
  .cart-item-cover {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .cart-item-cover span { font-size: 11px; }
  .cart-item-main h2 { font-size: 15px; }
  .cart-item-main p { font-size: 12px; }
  .cart-qty {
    min-width: 96px;
    grid-template-columns: 28px 34px 28px;
  }
  .cart-qty button { height: 32px; }
  .cart-item-side { min-width: 74px; }
  .cart-line-price { font-size: 16px; }
  .cart-remove {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 390px) {
  .cart-item { grid-template-columns: 58px minmax(0, 1fr); }
  .cart-item-side {
    grid-column: 2;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }
  .cart-item-cover {
    width: 58px;
    height: 58px;
  }
  .cart-qty { margin-top: 6px; }
}
