/* History page — op-card groups with expandable SMS (like rent, no preview) */
.sms-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-op-card__purchased {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.88);
  line-height: 1.35;
}

.history-op-card__purchased-label {
  font-weight: 700;
  margin-right: 6px;
}

.history-op-card__head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-start;
}

.history-op-card__sms-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.12);
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.history-op-card__sms-toggle:hover {
  background: rgba(59, 130, 246, 0.08);
}

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

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

.history-op-card__sms-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(96, 165, 250, 0.15);
  color: #bfdbfe;
}

.history-op-card__chevron {
  transition: transform 0.2s ease;
  opacity: 0.75;
}

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

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

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

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

.history-op-card__sms-panel .op-card__sms-inner {
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 12px 16px 14px;
}

.history-op-card__sms-panel .op-card__msg-piece + .op-card__msg-piece {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

.history-op-card .sms-reactivate-row {
  flex-shrink: 0;
}

.history-op-card.is-loading {
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
