/* Complete Switch Modal Styles */
#tsubs-complete-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; /* Higher than choose plan */
}

.tsubs-cs-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);
  display: flex;
  flex-direction: column;
}

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

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

.tsubs-cs-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: left;
}

.tsubs-cs-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
}

.tsubs-cs-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.tsubs-cs-checklist {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

/* Vertical line connecting items */
.tsubs-cs-checklist::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background-color: #dcdce5;
  z-index: 0;
}

.tsubs-cs-item {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.tsubs-cs-icon-wrap {
  width: 20px;
  height: 20px;
  background: #fff;
  color: #121117;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tsubs-cs-item-content {
  text-align: left;
}

.tsubs-cs-item-text {
  font-size: 14px;
  color: #121117;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.tsubs-cs-item-text strong {
  font-weight: 700;
}

.tsubs-cs-btn-small {
  background: #ffffff;
  border: 1px solid #dcdce5;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #121117;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tsubs-cs-btn-small:hover {
  background: #f5f5f7;
}

.tsubs-cs-actions {
  display: flex;
  flex-direction: column;
}

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

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

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

  .tsubs-cs-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: slideUpCSSheet 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }

  @keyframes slideUpCSSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

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

  .tsubs-cs-checklist {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 24px;
  }

  .tsubs-cs-actions {
    margin-top: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

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