/* Модальное окно подписки ЮKassa + полоска на экране «новая модель» */

#yookassa-checkout-modal .yookassa-checkout-panel {
  max-width: 560px;
  width: calc(100vw - 32px);
}

#yookassa-checkout-modal .yookassa-checkout-sub {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}

.yookassa-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.yookassa-price-table th {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  font-size: 12px;
  color: #555;
}

.yookassa-price-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.yookassa-price-table tr[data-plan-row] {
  cursor: default;
}

.yookassa-price-table .yk-row-head {
  font-weight: 600;
}

.yookassa-price-table .yk-row-hint {
  font-size: 11px;
  font-weight: 400;
  color: #666;
  line-height: 1.35;
  margin-top: 4px;
}

.yookassa-pay-cell {
  padding: 8px 10px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f5f5f5;
  font: inherit;
  min-width: 72px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.yookassa-pay-cell:hover:not(:disabled) {
  background: #fff;
  border-color: #1976d2;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.2);
}

.yookassa-pay-cell:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Иконки-метки строк */
.yk-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  margin-right: 8px;
  flex-shrink: 0;
}

.yk-row-icon--basic {
  background: linear-gradient(145deg, #e3f2fd, #bbdefb);
  color: #0d47a1;
}

.yk-row-icon--extra {
  background: linear-gradient(145deg, #fff3e0, #ffe0b2);
  color: #e65100;
}

.yk-row-icon--all {
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  color: #1b5e20;
}

.yk-row-title-wrap {
  display: flex;
  align-items: center;
}

/* Легенда наборов внизу */
.yk-legend {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e0e0e0;
}

.yk-legend-title {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.yk-legend-cols {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.yk-legend-col {
  flex: 1;
  min-width: 140px;
  padding: 10px 8px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #eee;
  opacity: 0.42;
  filter: grayscale(0.35);
  transition: opacity 0.2s, filter 0.2s, box-shadow 0.2s, border-color 0.2s;
}

#yookassa-checkout-modal[data-yk-hl="basic"] .yk-legend-col[data-yk-plan="basic"],
#yookassa-checkout-modal[data-yk-hl="extra"] .yk-legend-col[data-yk-plan="extra"],
#yookassa-checkout-modal[data-yk-hl="all"] .yk-legend-col[data-yk-plan="all"] {
  opacity: 1;
  filter: none;
  border-color: #90caf9;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.12);
  background: #fff;
}

.yk-legend-col-head {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.yk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.yk-chip {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #eceff1;
  color: #37474f;
}

/* Полоска на экране выбора наборов */
#cuboro-start-subscribe {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #fff);
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 12px 14px;
  font-family: inherit;
  display: none;
}

#cuboro-start-subscribe.is-visible {
  display: block;
}

.cuboro-start-subscribe-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cuboro-start-subscribe-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cuboro-start-subscribe-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.cuboro-start-subscribe-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0 6px;
}

.cuboro-start-subscribe-close:hover {
  color: #000;
}

.cuboro-start-subscribe-tiers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

.cuboro-tier-btn {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cuboro-tier-btn:hover {
  border-color: #1976d2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cuboro-tier-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}

.cuboro-tier-icon.basic {
  background: linear-gradient(145deg, #e3f2fd, #bbdefb);
  color: #0d47a1;
}

.cuboro-tier-icon.extra {
  background: linear-gradient(145deg, #fff3e0, #ffe0b2);
  color: #e65100;
}

.cuboro-tier-icon.all {
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  color: #1b5e20;
}

.cuboro-tier-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #222;
  margin-bottom: 4px;
}

.cuboro-tier-from {
  font-size: 10px;
  color: #666;
}

.cuboro-tier-price {
  font-size: 13px;
  font-weight: 700;
  color: #1976d2;
}

#cuboro-start-subscribe .yk-legend-cols {
  margin-top: 4px;
}

#cuboro-start-subscribe .yk-legend-col {
  min-width: 120px;
  padding: 8px 6px;
}

#cuboro-start-subscribe[data-yk-hl="basic"] .yk-legend-col[data-yk-plan="basic"],
#cuboro-start-subscribe[data-yk-hl="extra"] .yk-legend-col[data-yk-plan="extra"],
#cuboro-start-subscribe[data-yk-hl="all"] .yk-legend-col[data-yk-plan="all"] {
  opacity: 1;
  filter: none;
  border-color: #90caf9;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.12);
  background: #fff;
}

@media (max-width: 600px) {
  .cuboro-start-subscribe-tiers {
    flex-direction: column;
  }

  .cuboro-tier-btn {
    max-width: none;
  }
}
