/* Cancel Lessons Modal Styles */
#tsubs-cancel-lessons-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 switch tutor */
}

.tsubs-cl-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);
}

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

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

.tsubs-cl-content {
  text-align: center;
}

.tsubs-cl-tutor-preview {
  margin-bottom: 16px;
  display: flex;
  justify-content: start;
}

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

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

.tsubs-cl-lessons-list {
  margin-bottom: 24px;
}

.tsubs-cl-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #dcdce5;
  /* margin-bottom: 32px; */
}

.tsubs-cl-summary-text {
  font-size: 14px;
  color: #121117;
  font-weight: 500;
}

.tsubs-cl-summary-price {
  font-size: 14px;
  color: #121117;
  font-weight: 700;
}

.tsubs-cl-lesson-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid #dcdce5;
  border-radius: 8px;
  gap: 16px;
  text-align: left;
}

.tsubs-cl-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  text-align: center;
}

.tsubs-cl-month {
  font-size: 10px;
  font-weight: 700;
  color: #8d8c9b;
  line-height: 1;
}

.tsubs-cl-day {
  font-size: 18px;
  font-weight: 700;
  color: #121117;
  line-height: 1.2;
}

.tsubs-cl-lesson-info {
  flex-grow: 1;
}

.tsubs-cl-time {
  font-size: 14px;
  font-weight: 700;
  color: #121117;
  margin-bottom: 2px;
}

.tsubs-cl-details {
  font-size: 12px;
  color: #8d8c9b;
}

.tsubs-cl-lesson-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsubs-cl-count-badge {
  background: #f5f5f7;
  color: #121117;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.tsubs-cl-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #dcdce5;
  border-radius: 4px;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

.tsubs-cl-checkbox:hover {
  border-color: #121117;
}

.tsubs-cl-checkbox:checked {
  background-color: #121117;
  border-color: #121117;
}

.tsubs-cl-checkbox:checked::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 2px;
  left: 5px;
}


.tsubs-cl-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.tsubs-cl-btn-primary {
  background: #dcdce5;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  /* Slightly larger matching new figma */
  font-weight: 700;
  cursor: not-allowed;
  border: 2px solid black;
  transition: all 0.2s;
}

.tsubs-cl-btn-primary.is-active {
  background: #ff2500;
  /* Figma Orange/Red */
  cursor: pointer;
}

.tsubs-cl-btn-primary.is-active:hover {
  background: #d01e00;
}

.tsubs-cl-btn-secondary {
  background: #ffffff;
  color: #121117;
  border: 1.5px solid #121117;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tsubs-cl-btn-secondary:hover {
  background: #f5f5f7;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
  #tsubs-cancel-lessons-backdrop {
    align-items: flex-end !important;
  }

  .tsubs-cl-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 30px 20px 24px !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    animation: slideUpCancelSheet 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }

  @keyframes slideUpCancelSheet {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  /* Bottom sheet handle */
  .tsubs-cl-section::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
  }

  .tsubs-cl-content {
    flex: 1;
    overflow-y: auto;
    text-align: left;
  }

  .tsubs-cl-actions {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #fff;
  }

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