/* Rent page — duration tiles + op-card list (matches receive) */
.rent-ops-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 8px;
}

.panel-search--rent-duration {
  min-height: auto;
}

#myTab .rent-my-header {
  margin-bottom: 4px;
}

.rent-my-body {
  margin-top: 8px;
}

.rent-my-empty {
  margin-top: 10px;
  padding-top: 36px;
  padding-bottom: 32px;
  min-height: 200px;
}

.rent-my-empty .empty-ill-icon {
  font-size: 42px;
  opacity: 0.9;
}

.rent-duration-tile .rent-duration-label {
  font-weight: 600;
}

.rent-duration-tile .rent-duration-price {
  color: #fff;
  font-weight: 700;
}

.rent-catalog-price {
  font-size: 13px;
  color: #fff !important;
  font-weight: 600;
}

.rent-op-card__preview-sms .op-card__sms-await {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.rent-duration-tile.unavailable {
  opacity: 0.45;
  pointer-events: none;
}

/* Expandable SMS block (rent-only; receive shows SMS inline) */
.rent-op-card__sms-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.25);
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.rent-op-card__sms-toggle:hover {
  background: rgba(96, 165, 250, 0.08);
}

.rent-op-card__sms-toggle-left,
.rent-op-card__sms-toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rent-op-card__sms-icon {
  display: inline-flex;
  color: #93c5fd;
}

.rent-op-card__sms-icon svg {
  display: block;
}

.rent-op-card__sms-count {
  min-width: 1.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #93c5fd;
}

.rent-op-card__chevron {
  display: inline-flex;
  color: rgba(148, 163, 184, 0.85);
  transition: transform 0.2s ease;
}

.rent-op-card.is-sms-open .rent-op-card__chevron {
  transform: rotate(180deg);
}

.rent-op-card__sms-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.rent-op-card.is-sms-open .rent-op-card__sms-panel {
  display: block;
}

.rent-op-card__sms-panel .op-card__sms {
  margin: 0;
}

.rent-op-card__sms-panel .op-card__sms-inner {
  border-radius: 0;
  border: none;
  background: transparent;
}

/* Строка «Продлить аренду» (как Validity period у Hero) */
.rent-op-card__extend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.22);
  color: rgba(226, 232, 240, 0.88);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.rent-op-card__extend-row:hover {
  background: rgba(96, 165, 250, 0.1);
}

.rent-op-card__extend-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rent-op-card__extend-icon {
  display: inline-flex;
  color: #93c5fd;
}

.rent-op-card__extend-icon svg {
  display: block;
}

.rent-op-card__extend-chevron {
  display: inline-flex;
  color: rgba(148, 163, 184, 0.85);
  transform: rotate(-90deg);
}

.rent-op-card__extend-chevron svg {
  display: block;
}

.rent-op-card__extend-row--open {
  background: rgba(96, 165, 250, 0.14);
}

.rent-op-card {
  position: relative;
}

/* Всплывающий блок продления рядом со строкой */
.rent-prolong-popover {
  position: fixed;
  z-index: 1200;
  width: min(340px, calc(100vw - 16px));
  pointer-events: none;
}

.rent-prolong-popover[hidden] {
  display: none !important;
}

.rent-prolong-popover__panel {
  pointer-events: auto;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: rgba(15, 23, 42, 0.98);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.rent-prolong-popover__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  overflow: visible;
}

.rent-prolong-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.08);
  color: #e2e8f0;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.rent-prolong-popover__loading,
.rent-prolong-popover__empty {
  grid-column: 1 / -1;
  padding: 16px 8px;
  text-align: center;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
}

.rent-prolong-option:hover:not(:disabled) {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
}

.rent-prolong-option:disabled {
  opacity: 0.5;
  cursor: wait;
}

.rent-prolong-option__label {
  font-weight: 600;
}

.rent-prolong-option__price {
  font-weight: 700;
  color: #93c5fd;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rent-op-card__preview-sms {
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.rent-op-card__preview-sms .op-card__sms-inner {
  border-radius: 0;
  border: none;
}


.rent-op-card__panel-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.8);
}
