/* ===========================
   LATC Class Booking Popup
   =========================== */

.ts-frame-container iframe {
  width:760px;
  z-index:100;
}
/* Email Popup */
.ts-email-frame-container .account-status {
  text-align: center;
}
.ts-email-popup {
  font-family: inherit;
  padding: 20px;
  background: #fff;
  color: #333;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

/* Class info section */
.ts-class-info-wrap {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.6;
}

.ts-class-info-item {
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.ts-class-name,
.ts-class-date,
.ts-email-label {
  font-weight: 600;
  color: #111;
  display: inline-block;
  min-width: 90px;
}

/* Input field */
.ts-emailInput {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.ts-emailInput:focus {
  outline: none;
  border-color: #FDE500;
  box-shadow: 0 0 4px rgba(253, 229, 0, 0.5);
}

/* Buttons (shared for email + cart popup) */
#ts-emailSubmit,
.ts-submit-payment,
#confirmBookingBtn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  background: #FDE500;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

#ts-emailSubmit:hover,
.ts-cart-popup__button:hover {
  background: #e5cf00; /* darker yellow */
}

#ts-emailSubmit:disabled,
.ts-cart-popup__button:disabled {
  background: #ddd;
  cursor: not-allowed;
}

#ts-emailSubmit:active,
.ts-cart-popup__button:active {
  transform: scale(0.98);
}

/* Loader */
#ts-loader {
  text-align: center;
  margin-top: 12px;
}

#ts-loader p {
  font-size: 14px;
  color: #666;
}

/* Success & error messages */
#ts-emailMessage {
  margin-top: 12px;
}

.ts-msg-success {
  padding: 12px;
  background: #e6f7ed;
  border: 1px solid #b3e6c7;
  color: #256029;
  border-radius: 6px;
  font-size: 14px;
}

.ts-msg-error,
.ts-error-screen {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #a94442;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
}

.ts-error-screen p {
  text-align: center;
  padding: 5px;
}

/* Highlight create account button */
/* #create-account-button.ts-highlight {
  background: #ff5a5f;
  color: #fff !important;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: pulse 1.5s infinite;
} */

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ===========================
   Cart Popup
   =========================== */
.cart-proceed-container {
  display: flex;
    flex-direction: column;   /* message on top, button below */
    align-items: center;      /* center horizontally */
    justify-content: center;  /* center vertically if needed */
    text-align: center;       /* center the text inside */
    width: 100%;
    padding: 20px 0;        /* Optional padding */
}

.proceed-message {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 15px; 
}

.proceed-button-box {            /* Keeps button container 30% */
  text-align: right;        /* Aligns button to the right inside the box */
}

.ts-cart-popup {
  font-family: inherit;
  background: #fff;
  color: #333;
  max-width: 700px; /* wider for table */
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
}

.ts-cart-popup__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #111;
  text-align: center;
}

.ts-cart-popup__container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 0;
  border-radius: 6px;
  margin-bottom: 15px;
  background: #fafafa;
}

/* ===========================
   Table Layout
   =========================== */
.ts-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ts-cart-table th,
.ts-cart-table td {
  padding: 10px;
  border: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
}

.ts-cart-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  font-size: 13px;
}

.ts-cart-table td {
  background: #fff;
  transition: background 0.2s ease;
}

.ts-cart-table tr:hover td {
  background: #fdf7d0; /* subtle yellow highlight */
}

/* ===========================
   Columns
   =========================== */
.ts-item-radio {
  width: 40px;
}

.ts-item-radio input[type="radio"] {
  accent-color: #FDE500;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.ts-item-studio,
.ts-item-class,
.ts-item-trainer,
.ts-item-datetime,
.ts-item-service-count {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

.ts-item-class {
  font-weight: 600;
  color: #111;
}

.ts-item-price {
  font-weight: 600;
  color: #111;
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

/* ===========================
   Buttons
   =========================== */

.ts-cart-popup__button {
  padding: 10px 20px;
  cursor: pointer;
  display: inline-block;
  background: #FDE500;
  color: #111;
  font-weight: 600;
  font-size: 15px;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ts-cart-popup__button:hover {
  background: #e5cf00;
}


/*Payment Detail Page*/
#ts-payment-form .ts-form-group.expiry-year,
#ts-payment-form .ts-form-group.cvv {
    width: 90px;
}
.ts-payment-page {
  font-family: inherit;
  margin: 0 auto;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  max-height: 750px;
  overflow-y: auto;
}

.ts-payment-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.ts-saved-card-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #fafafa;
  margin-bottom: 20px;
}

.ts-saved-card-header {
  font-weight: 600;
  margin-bottom: 8px;
}

.ts-saved-card-body p {
  margin: 2px 0;
  font-size: 14px;
  color: #444;
}

.ts-saved-card-actions {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ts-checkbox-label {
  font-size: 14px;
  color: #333;
}

.ts-add-new-card-btn {
  background: #FDE500;;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.ts-add-new-card-btn:hover {
  background: #e5cf00;
}

.ts-card-buttons {
    display: grid;
    gap: 10px;
}

.ts-cancel-card-btn {
    background-color: #0000FF;
    color: #ffffff;
    border: none;
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ts-payment-form-container {
  margin-top: 5px;
}
.ts-hidden {
  display: none !important;
}

.ts-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 2px;
}

.ts-form-row {
  display: flex;
  gap: 15px;
}

.ts-form-label {
  font-size: 14px;
  color: #333;
}

.ts-form-input:focus {
  border-color: #e5cf00;
  outline: none;
}

.ts-card-type {
  margin-top: 5px;
  font-size: 12px;
  color: #777;
}

.ts-submit-button {
    background: #FDE500;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.ts-submit-button:hover {
    background: #e5cf00;
}

/* Thank You Page */
.ts-feedback-screen {
    font-family: inherit;
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.ts-feedback-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ts-success-icon {
    color: #28a745; /* green */
}

.ts-error-icon {
    color: #dc3545; /* red */
}

.ts-feedback-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ts-feedback-message {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ts-feedback-button {
    background-color: #FDE500;
    color: #111;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ts-feedback-button:hover {
    background-color: #e5cf00;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===========================
   Confirm Booking Popup
   =========================== */
.ts-confirm-popup {
  font-family: inherit;
  color: #333;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  animation: fadeIn 0.3s ease-in-out;
}

.ts-confirm-title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin-bottom: 15px;
  text-align: center;
}

.ts-confirm-info {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ts-confirm-item {
  margin-bottom: 10px;
}

.ts-confirm-label {
  font-weight: 600;
  color: #111;
  display: inline-block;
  min-width: 140px;
}

.ts-confirm-value {
  font-weight: 500;
  color: #444;
}

.ts-confirm-note {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  background: #fafafa;
  padding: 10px;
  border-radius: 6px;
}

.ts-confirm-btn {
  display: block;
  width: 100%;
  background: #FDE500;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.ts-confirm-btn:hover {
  background: #e5cf00;
}

.ts-confirm-btn:active {
  transform: scale(0.98);
}


/* --- Waiting Popup Styling --- */
#ts-wait-popup.ts-cart-popup {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  animation: fadeInScale 0.4s ease;
}

#ts-wait-popup .ts-cart-popup__container {
  width: 100%;
  padding: 25px 20px;
  text-align: center;
}

#ts-wait-popup .ts-cart-popup__title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

#ts-wait-popup .ts-cart-popup__content {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

/* Subtle fade-in animation */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Optional Loading Spinner --- */
.ts-wait-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #ddd;
  border-top-color: #f6c400; /* LATC yellow tone */
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 10px auto 0;
}

.ts-loading-container {
  text-align: center;
  padding: 40px;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ts-waitlist-popup {
  padding: 25px;
  text-align: center;
}

/* ============================
   MEMBER SELECTION SCREEN
   ============================ */

#ts-member-screen.ts-cart-popup {
    background: #fff;
    margin: 0 auto;
    font-family: inherit;
}

/* Title - match cart popup style */
#ts-member-screen .ts-cart-popup__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #111;
}

/* Info message */
#ts-member-screen .ts-member-info {
    font-size: 14px;
    color: #444;
    text-align: center;
    margin-bottom: 10px;
}

/* Container matches cart popup */
#ts-member-screen .ts-cart-popup__container {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    padding: 0;
    margin-bottom: 15px;
}

/* Table matches cart table */
#ts-member-screen .ts-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#ts-member-screen .ts-cart-table th,
#ts-member-screen .ts-cart-table td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

#ts-member-screen .ts-cart-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    font-size: 13px;
}

#ts-member-screen .ts-cart-table tr:hover td {
    background: #fdf7d0; /* same hover yellow */
}

/* Radio alignment */
#ts-member-screen .ts-item__radio {
    width: 40px;
}

#ts-member-screen .ts-item__radio input[type="radio"] {
    accent-color: #FDE500;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Proceed section matches cart popup */
#ts-member-screen .cart-proceed-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ts-member-screen .proceed-message {
    font-size: 14px;
    color: #555;
    width: 70%;
}

#ts-member-screen .proceed-button-box {
    width: 30%;
    text-align: center;
}

/* Button – EXACT same style as cart button */
#ts-member-screen #ts-member-select-btn {
    background: #FDE500;
    color: #111;
    font-weight: 600;
    font-size: 15px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    min-width: 150px;
    transition: background 0.2s ease;
}

#ts-member-screen #ts-member-select-btn:hover {
    background: #e5cf00;
}



/* ===========================
   Responsive Layout
   =========================== */

/* Mobile */
@media (max-width: 480px) {
  .ts-email-popup,
  .ts-cart-popup {
    padding: 15px;
    font-size: 14px;
  }

  .ts-class-info-item,
  .ts-item-class,
  .ts-item-trainer,
  .ts-item-datetime,
  .ts-item-studio,
  .ts-item-service-count,
  .ts-item-price {
    font-size: 14px;
  }

  #ts-emailSubmit,
  .ts-cart-popup__button {
    font-size: 14px;
    padding: 10px;
  }

  .ts-item-details {
    flex-direction: column;
    gap: 8px;
  }

  .ts-item-radio {
    margin-bottom: 6px;
  }

  .ts-feedback-screen {
      padding: 20px;
      margin: 20px;
  }
  .ts-feedback-title {
      font-size: 20px;
  }
  .ts-feedback-message {
      font-size: 14px;
  }
  .ts-feedback-button {
      font-size: 14px;
      padding: 10px 20px;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .ts-email-popup,
  .ts-cart-popup {
    max-width: 600px;
    padding: 20px;
  }
}

/* Laptop & Desktop */
@media (min-width: 769px) {
  .ts-email-popup,
  .ts-cart-popup {
    max-width: 100%;
  }
}
