:root {
  --tb-bg: #f7f5f1;
  --tb-card: #ffffff;
  --tb-border: #e5e7eb;
  --tb-radius: 16px;
  --tb-muted: #6b7280;
}

/* Auth pages */
.tb-auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 16px;
  background: var(--background);
}

/* .tb-auth-logo {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
} */

.tb-logo-text {
  font-weight: 700;
  color: var(--deep-blue);
  letter-spacing: 0.3px;
}

.tb-auth-card {
  width: 400px;
  max-width: 100%;
  background: var(--tb-card);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 50px 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.tb-auth-card .tb-auth-form {
  display: flex;
  flex-direction: column;
}

.tb-font-w-bold {
  font-weight: 700;
}

.tb-font-s-l {
  font-size: 16px;
}

.tb-auth-title {
  text-align: center;
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  color: var(--text-title);
}

.tb-auth-alert {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 12px 0;
}

.tb-auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tb-label {
  text-align: left;
  font-size: 16px;
  color: var(--text-title);
  font-weight: 600;
  margin-bottom: 0;
  font-family: "Noto Serif TC";
}

.tb-input {
  /* width: 100%; */
  border: 1px solid var(--divider);
  border-radius: 5px;
  padding: 12px 20px;
  font-size: 16px;
  background: #fff;
  width: 360px;
  height: 50px;
}

.tb-password {
  position: relative;
  margin-bottom: 20px;
}

.tb-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0.8;
}

.tb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-style: normal;
  line-height: normal;
  font-size: 16px;
  color: var(--info);
}

.tb-btn-primary {
  background: var(--info);
  color: #fff;
  box-shadow: 0 10px 18px rgba(47, 95, 158, 0.25);
  margin-top: 10px;
}

.tb-btn-secondary {
  background: #fff;
  border-color: var(--divider);
  color: var(--text-title);
  font-family: "Noto Serif TC";
  font-size: 16px;
  font-weight: 700;
}

.tb-btn-outline {
  background: #fff;
  border-color: var(--deep-blue);
  color: var(--deep-blue);
}

.tb-btn-google {
  background: #fff;
  font-size: 20px;
  border-color: var(--divider);
  color: var(--black-54);
  font-weight: 500;
}

.tb-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f3f4f6;
  font-weight: 800;
}

.tb-link {
  text-align: center;
  color: var(--deep-blue);
  font-weight: 600;
  margin: 17.5px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
}

.tb-auth-form .tb-link {
  font-size: 16px;
}

.tb-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-divider span {
  height: 1px;
  width: 100%;
  background: var(--divider);
}

/* My Page layout */
.tb-mypage {
  min-height: 100vh;
  display: flex;
  background: var(--background);
  gap: 20px;
}

.tb-side {
  width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
  background: #fff;
}

.tb-side-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tb-brand {
  color: var(--deep-blue);
  font-weight: 800;
  text-decoration: none;
}

.tb-side-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.tb-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-title);
  font-weight: 700;
}

.tb-side-link.is-active {
  background: var(--deep-blue);
  color: #fff;
  box-shadow: 0 10px 18px rgba(47, 95, 158, 0.20);
}

.tb-side-footer {
  padding-top: 20px;
}

.tb-side-logout {
  text-decoration: none;
  color: var(--text-title);
  opacity: 0.9;
  font-weight: 700;
}

.tb-mypage-content {
  flex: 1;
  padding: 40px 28px;
  background: #f7f5f1;

}

.tb-card {
  background: var(--tb-card);
  border-radius: var(--tb-radius);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.tb-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--deep-blue);
  margin-bottom: 30px;
}

.tb-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tb-kv {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tb-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.tb-label2 {
  width: 200px;
  color: var(--text-title);
  font-weight: 700;
}

.tb-booking-detail .tb-label2 {
  color: #475569;
  font-size: 16px !important;
  font-weight: 400;
  margin-bottom: 20px;
  ;
}

.tb-booking-detail .tb-row {
  display: block;
}

.tb-value {
  color: var(--text-title) !important;
  font-weight: bold;
}

.tb-right {
  margin-left: auto;
}

.tb-alert {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.tb-alert-success {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}

.tb-alert-error {
  background: #fff1f0;
  border: 1px solid #ffccc7;
}

.tb-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-form-actions {
  padding-left: 290px;
  margin: 0 auto;
}

.tb-table-wrap {
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.tb-table {
  width: 100%;
  border-collapse: collapse;
}

.tb-sort-icon {
  display: flex;
  gap: 20px;
  align-items: center;
}

.tb-sort-arrow {
  display: flex;
  cursor: pointer;
}

.tb-table th {
  background: #bcd3ea;
  text-align: left;
  padding: 12px 14px;
  font-weight: 400;
}

.tb-table td {
  padding: 14px;
  border-top: 1px solid var(--divider);
}

.tb-pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.tb-page {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--divider);
  color: var(--text-title);
}

.tb-page.is-active {
  background: var(--deep-blue);
  color: #fff;
  border-color: var(--deep-blue);
}

.tb-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.tb-subcard {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.tb-subtitle {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--deep-blue);
}

.tb-money {
  font-weight: 900;
}

.auth-footer {
  position: fixed;
  bottom: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  color: var(--secondary-text);
  font-size: 14px;
  border-top: 1px solid var(--divider);
  margin-top: 0;
  background: var(--background);
}

#my-page .auth-footer {
  margin-left: 150px;
}

.tb-form-input {
  font-size: 16px;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  line-height: 1.5;
}

#my-page .tb-card.edit-card {
  position: relative;
}

.edit-card .tb-form-actions {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  transform: translateY(100%);
}

.edit-card .tb-form-actions .button {
  margin-top: 0;
  font-size: 16px;
  padding: 12px 24px;
  min-width: 200px;
  font-weight: 400;
}

.edit-card .avatar-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  color: var(--secondary);
  font-size: 60px;
}

.avatar-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

.tb-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .tb-mypage {
    flex-direction: column;
  }

  .tb-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }

  .tb-side-nav {
    flex-direction: row;
    gap: 10px;
  }

  .tb-mypage-content {
    padding: 18px;
  }

  #my-page {
    display: block !important;
  }

  .tb-two-cols {
    grid-template-columns: 1fr;
  }
}

/* Wishlist heart button */
.tb-heart {
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.tb-heart-icon {
  font-size: 18px;
  color: #d1d5db;
}

.tb-heart.is-active .tb-heart-icon {
  color: #f59e0b;
}

.tb-wishlist--list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .tb-wishlist-grid {
    grid-template-columns: 1fr;
  }
}

.tb-wishlist-card {
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 14.5px 20px;
  background: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition-duration: 0.3s;
}

.tb-wishlist-card:not(:last-child) {
  border-bottom: 1px solid var(--divider);
}

.tb-wishlist-card:hover {
  background: var(--light-sky);
  border-bottom: 1px solid transparent;
}

.tb-wishlist-card__top {
  display: inline-flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.tb-wishlist-card__top a:hover {
  text-decoration: none;
}

.tb-wishlist-card__title {
  color: var(--text-title);
  text-decoration: none;
}

.tb-wishlist-card__meta {
  margin-top: 8px;
  color: var(--secondary-text);
  font-size: 13px;
}

.tb-wishlist--list .tb-wishlist-btn {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  font-size: 20px;
  color: var(--yellow);
}

.tb-mypage-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--divider);
}

.tb-help {
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 6px;
}

.avatar-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: var(--text-title);
  font-size: 16px;
}

.avatar-image .tb-icon {
  color: var(--deep-blue);
  font-size: 24px;
}

.avatar-image .tb-label {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 200px;
  border: 1px solid var(--divider);
  padding: 10px 18px;
  position: relative;
  cursor: pointer;
}

.avatar-image .tb-label p {
  position: absolute;
  width: max-content;
  bottom: 0;
  transform: translateY(100%);
  left: 100%;
  border: 1px solid var(--sage);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--secondary-text);
  background-color: white;
  opacity: 0;
  transition-duration: 0.3s;
}

.avatar-image .tb-label:hover p {
  opacity: 1;
}

.tb-secondary-text {
  color: var(--secondary-text);
}

#my-page .tb-card.edit-card {
  margin-left: 290px;
}

/* Mobile */
@media (max-width: 768px) {

  .tb-btn-primary,
  .tb-btn-secondary,
  .tb-btn-google {
    width: 100% !important;
  }

  .tb-auth-card {
    margin-top: 50px;
  }

  #my-page .tb-card.edit-card {
    margin-left: 0;
  }

  #my-page .tb-card {
    margin: 95px 20px 0 20px !important;
  }

  .tb-form-actions .tb-btn {
    width: 200px !important;
    height: 44px;
  }

  #my-page .tb-profile-actions .tb-btn {
    gap: 5px;
    width: 97px;
    padding: 5px 15px !important;
  }

  .tb-profile-actions {
    margin-left: -33px;
  }

  .tb-credit .tb-profile-actions .tb-btn-outline {
    width: 68px !important;
  }

  .tb-input {
    width: 100%;
  }

  .tb-btn-primary,
  .tb-btn-secondary,
  .tb-btn-google {
    width: 100%;
  }

  .auth-footer {
    position: fixed;
    bottom: 0;
    margin-left: 0;
  }

  .tb-form-actions {
    padding-left: 0;
  }

  .edit-card .tb-form-actions {
    position: relative;
    transform: unset;
  }
}

html #wpadminbar {
  display: none;
}

.tb-booking-detail {
  background: none;
  border: none;
  padding: 0 !important;
}

.tb-booking-detail .tb-subcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .tb-booking-detail .tb-subcard {
    display: block;
  }

  #my-page .tb-value {
    width: 200px;
    text-align: left;
  }
}