/* Checkout Switch Modal Styles */
#tsubs-checkout-switch-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 17, 23, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100; /* Highest in the flow */
}

.tsubs-cos-section {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  padding: 24px;
  position: relative;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.08);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}

.tsubs-cos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tsubs-cos-back-btn,
.tsubs-cos-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #121117;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsubs-cos-content {
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
}

.tsubs-cos-profile-section {
  border-radius: 8px;
  padding-bottom: 16px;
  /* margin-bottom: 24px; */
}

.tsubs-cos-profile-top {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.tsubs-cos-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.tsubs-cos-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tsubs-cos-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsubs-cos-profile-name {
  font-size: 18px;
  font-weight: 700;
  color: #121117;
  margin: 0;
}

.tsubs-cos-flag {
  font-size: 16px;
}

.tsubs-cos-verified {
  display: flex;
  align-items: center;
}

.tsubs-cos-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tsubs-cos-star {
  color: #121117;
  font-size: 14px;
}

.tsubs-cos-rating-text {
  font-size: 13px;
  color: #121117;
  font-weight: 500;
}

.tsubs-cos-stats-grid {
  border-top: 1px solid #dcdce5;
  padding-top: 16px;
  display: flex;
  gap: 50px;
}

.tsubs-cos-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tsubs-cos-stat-icon {
  color: #121117;
  margin-bottom: 8px;
  display: flex;
  gap: 5px;
}

.tsubs-cos-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #121117;
}

.tsubs-cos-stat-label {
  font-size: 11px;
  color: #8d8c9b;
  line-height: 1.2;
}

.tsubs-cos-title {
  font-size: 14px; /* Smaller matching design */
  font-weight: 700;
  color: #121117;
  line-height: 1.3;
  margin: 0 0 24px 0;
  text-align: left;
  border-top: 1.5px solid lightgray; /* Solid separator */
  padding-top: 24px;
}

.tsubs-cos-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.tsubs-cos-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #121117;
}

.tsubs-cos-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: #121117;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #dcdce5;
}

.tsubs-cos-info-alert {
  background: #eaf9f8;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.tsubs-cos-info-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.tsubs-cos-info-text {
  font-size: 13px;
  color: #121117;
  margin: 0;
  line-height: 1.4;
}

.tsubs-cos-renews-box {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.tsubs-cos-renews-title {
  font-size: 14px;
  font-weight: 700;
  color: #121117;
  margin: 0 0 8px 0;
}

.tsubs-cos-renews-text {
  font-size: 13px;
  color: #121117;
  margin: 0;
  line-height: 1.4;
  opacity: 0.8;
}

.tsubs-cos-payment-section {
  text-align: left;
  margin-bottom: 32px;
}

.tsubs-cos-payment-title {
  font-size: 16px;
  font-weight: 700;
  color: #121117;
  margin: 0 0 16px 0;
}

.tsubs-cos-payment-method {
  border: 1px solid #dcdce5;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.tsubs-cos-payment-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.tsubs-cos-payment-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tsubs-cos-remaining-credit {
  font-size: 12px;
  color: #8d8c9b;
  margin: 0;
}

.tsubs-cos-remaining-credit strong {
  color: #121117;
}

.tsubs-cos-actions {
  padding-top: 16px;
  background: #ffffff;
}

.tsubs-cos-btn-primary {
  background: #ff2500;
  color: #ffffff;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
}

.tsubs-cos-btn-primary:hover {
  background: #d01e00;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
  .tsubs-cos-section {
    max-width: 90%;
    margin: 0 16px;
    padding: 20px;
  }

  #tsubs-checkout-switch-modal {
    min-width: 100%;
    min-height: 100%;
  }
}
