/* Choose Monthly Plan Modal Styles */
#tsubs-choose-plan-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; /* Higher than cancel lessons */
}

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

#tsubs-custom-plan-modal-backdrop #tsubs-custom-plan-modal {
  max-width: 440px !important;
}

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

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

/* Generic Plan Card Styles (from subscribe_modal.css) */
.plan-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  color: #111;
  transition:
    0.15s border-color,
    0.15s box-shadow;
}

.plan-card:hover {
  border-color: #111;
}
.plan-card.is-active {
  border-color: #111;
  box-shadow: inset 0 0 0 2px #111;
}

.plan-custom {
  border: 1.5px dashed #d1d5db;
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.tsubs-cp-content {
  overflow-y: auto;
}

/* Custom scrollbar for plan list */
.tsubs-cp-content::-webkit-scrollbar {
  width: 4px;
}
.tsubs-cp-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.tsubs-cp-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.tsubs-cp-tutor-preview {
  margin-bottom: 16px;
  text-align: left;
}

.tsubs-cp-avatar {
  width: 48px;
  height: 48px;
  /* border-radius: 8px; */
  object-fit: cover;
}

.tsubs-cp-title {
  font-size: 24px;
  font-weight: 700;
  color: #121117;
  line-height: 1.3;
  margin: 0 0 24px 0;
  text-align: left;
}

.tsubs-cp-balance-alert {
  background: #eaf9f8; /* Light greenish-blue alert background */
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}

.tsubs-cp-balance-title {
  font-size: 14px;
  font-weight: 700;
  color: #121117;
  margin: 0 0 4px 0;
  text-align: left;
}

.tsubs-cp-balance-subtitle {
  font-size: 13px;
  color: #121117;
  opacity: 0.8;
  margin: 0;
  text-align: left;
  line-height: 1.4;
}

.tsubs-cp-balance-icon img {
  width: 50px;
  height: auto;
}

.tsubs-cp-plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow: scroll;
  scrollbar-width: none;
}

.tsubs-cp-plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1.5px solid #dcdce5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tsubs-cp-plan-item:hover {
  border-color: #121117;
}

.tsubs-cp-plan-item.is-active {
  border-color: #121117;
  border-width: 2px;
}

.tsubs-cp-plan-info {
  text-align: left;
}

.tsubs-cp-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: #121117;
  margin-bottom: 4px;
}

.tsubs-cp-plan-price {
  font-size: 14px;
  color: #8d8c9b;
}

.tsubs-cp-plan-badge {
  background: #007664; /* Teal / Green from design */
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: none;
}

/* Mobile Responsive */
@media (max-width: 550px) {
  .tsubs-cp-section {
    margin: 0 16px;
    padding: 20px;
    min-width: 100%;
    min-height: 100%;
    border-radius: 0;
  }

  .tsubs-cp-title {
    font-size: 20px;
  }

  .tsubs-cp-balance-alert {
    padding: 12px;
  }

  .tsubs-cp-balance-icon img {
    width: 40px;
  }

  .tsubs-cp-plan-list {
    max-height: 100%;
  }
}
