.offer-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 24px 24px;
  margin-top: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #f8fafc;
  gap: 0.75rem;
}

.offer-save-btn {
  background: linear-gradient(180deg, #1849a9 0%, #143b8a 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 22px rgba(20, 59, 138, 0.18);
}

.offer-save-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .offer-modal-shell {
    width: calc(100% - 24px);
    margin: 20px auto;
  }

  .offer-modal-header,
  .offer-modal-content,
  .offer-modal-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .offer-price-display {
    grid-template-columns: 1fr;
  }

  .offer-toggle-row,
  .offer-modal-actions {
    flex-direction: column;
  }

  .offer-type-btn,
  .offer-modal-actions .st-btn {
    width: 100%;
  }
}

/* ==============================
   GLOBAL BASE STYLES
============================== */
.page-template-template-partner-dashboard .header,
.page-template-template-partner-dashboard #main-footer {
  display: none !important;
}

:root {
  --background: #fafafa;
  --foreground: #0f172a;

  --primary: #143c8b;
  --primary-foreground: #ffffff;
  --secondary-foreground: #e9effc;

  --secondary: #f1f5f9;

  --muted: #f1f5f9;
  --text-foreground: #0f1729;
  --text-muted-foreground: #6b7280;

  --accent: #e0e7ff;

  --border: #e5e7eb;

  --bg-card: #ffffff;

  --sidebar-background: #0f172a;

  --success: #22c55e;
  --success-rgba: #22c55e1a;
  --success-border: #22c55e33;

  --warning: #eab308;
  --warning-rbga: #eab3081a;
  --warning-border: #eab30833;

  --primary-rgba: #143c8b1a;
  --primary-border: #143c8b33;

  --text-muted-foreground-rgba: #6b72801a;
  --text-muted-foreground-border: #6b728033;

  --destructive: #ef4444;
  --info: #0ea5e9;
}

.st-dashboard {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Outfit", sans-serif;
}

.st-dashboard a {
  text-decoration: none;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ==============================
   HELPER CLASSES
============================== */
.mb-4 {
  margin-bottom: 2rem !important;
}

/* ==============================
   NAVBAR
============================== */
.st-navbar {
  background: #fafafa99;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
}

.st-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.st-navbar-logo {
  width: 120px;
}

.st-navbar-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.st-navbar-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-navbar-links a {
  color: var(--text-muted-foreground);
  font-size: 14px;
  line-height: 1.25rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
}

.st-navbar-links a i {
  margin-right: 8px;
}

.fa-star {
  color: var(--text-muted-foreground) !important;
}

.fa-star:hover {
  color: var(--foreground);
}

.fa-star:active .st-navbar-links a i {
  padding-right: 10px;
}

.st-navbar-links a:hover {
  color: var(--foreground);
  background-color: var(--secondary-foreground);
}

.st-navbar-links a.active {
  position: relative;
  background-color: #e3e7ef;
  color: var(--primary);
}

.user-dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.user-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 16px;
}

.user-trigger {
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  background: #fafafa99;
}

.user-trigger:hover {
  background-color: var(--secondary-foreground);
}

.user-trigger .initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e3e7ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-trigger .initial span {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.user-trigger .name {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 180px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.menu-link {
  display: flex;
  flex-direction: column;
}

.user-menu a {
  color: var(--text-muted-foreground);
  font-size: 14px;
  line-height: 1.25rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
}

.user-menu a i {
  margin-right: 8px;
}

.user-menu a:hover {
  background: #f5f5f5;
}

.user-dropdown:hover .user-menu,
.user-dropdown:focus-within .user-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* --- Mobile Navigation --- */
.st-navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.st-navbar-toggle .st-bar {
  width: 30px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .st-navbar-container {
    flex-wrap: wrap;
  }

  .st-navbar-toggle {
    display: flex;
  }

  .st-navbar-links {
    width: 100%;
    flex-direction: column;
    background: #fff;

    display: none;
    padding: 10px 0;
  }

  .st-navbar-links.show {
    display: flex;
  }

  .st-navbar-links li {
    text-align: center;
    padding: 10px 0;
  }

  .st-navbar-links a {
    display: block;
  }
}

.st-navbar-toggle.active .st-bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 7px);
}

.st-navbar-toggle.active .st-bar:nth-child(2) {
  opacity: 0;
}

.st-navbar-toggle.active .st-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==============================
========= Stat Card ==========
================================*/

.stat-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card,
.quick-link-box-wrapper {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 16px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  transition: background-color 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  /* transform: translateY(-4px); */
}

.stat-wrap-box {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.quick-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon,
.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-bottom: 16px; */
}

.quick-link-icon {
  background-color: #143b8a1a;
}

.stat-icon i,
.quick-link-icon i {
  font-size: 24px;
}

.stat-wrap-box .number {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  color: var(--text-foreground);
}

.stat-wrap-box .title {
  font-size: 14px;
  color: var(--text-muted-foreground);
}

.quick-link-box {
  position: relative;
  cursor: pointer;
}

.quick-link-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quick-link-items {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 99;
}

.quick-link-box.active .quick-link-items {
  display: block;
}

.arrow {
  font-size: 12px;
  opacity: 0.7;
}

.quick-link-box .title {
  font-size: 14px;
  color: var(--text-muted-foreground);
}

.quick-link-items {
  flex-grow: 0;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fafafa;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%;
  transition: all 0.2s ease;
}

.quick-link-item:hover {
  background-color: var(--secondary-foreground);
}

.quick-link,
.quick-link i {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-foreground);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================
========= Stat Card V1 ==========
================================*/
.stat-container-v2 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card-v1 {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 16px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  transition: background-color 0.2s ease;
}

.stat-card-v1:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-wrap-box-v1 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-v1 {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-icon i {
  font-size: 24px;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-content .number {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-foreground);
}

.stat-content .title {
  font-size: 14px;
  line-height: 1.25rem;
  color: var(--text-muted-foreground);
}

/* ==============================
   Toolbar FOR FILTERS
============================== */

.st-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.st-search-form {
  flex: 1 1 100%;
  max-width: 28rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 8px;
}

.st-search-form i {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-muted-foreground);
}

.st-search-form:focus-within {
  border: 1px solid #4d7cfe;
}

.st-search-form input[type="text"],
.st-search-form input[type="date"],
.st-search-form select {
  font-size: 14px;
  background-color: var(--background);
  padding-left: 10px;
  border: none;
  color: var(--text-foreground);
  width: 95%;
}

.filter-dropdown {
  position: relative;
  width: 180px;
}

.filter-trigger {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background-color: var(--background);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-trigger span {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-foreground);
}

.filter-trigger i {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-muted-foreground);
}

.filter-trigger:hover {
  border-color: #cbd5e1;
}

.filter-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 6px;
  margin: 0;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.filter-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-menu li {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-foreground);
  border-radius: 10px;

  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-menu li:hover {
  background: #e6f5fc;
}

@media (max-width: 768px) {
  .st-search-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==============================
   Table layout
============================== */

.table-container {
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 12px;
}

.st-table {
  width: 100%;
  font-size: 14px;
  line-height: 20px;

  caption-side: bottom;
  overflow: auto;
  border: none;
}

.st-table tr {
  border-bottom: 1px solid var(--border);
}

.st-table thead tr {
  background-color: #f9f9fa;
}

.st-table thead th {
  height: 48px;
  text-align: left;
  vertical-align: middle;
  padding: 0 1rem;
  color: var(--text-muted-foreground);
  font-weight: 500;
}

.st-table thead th:last-child {
  text-align: right;
}

.st-table tbody tr {
  background-color: var(--bg-card);
}

.st-table tbody tr:hover {
  background-color: #f3f4f680;
}

.st-table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

.st-table tbody tr:last-child {
  border: none;
}

/* ==============================
   SPINNER
============================== */

.st-spinner {
  display: none;
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================
   DASHBOARD CONTENT
============================== */
.st-dashboard-content {
  padding: 6rem 2rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dasboard-heading {
  margin-bottom: 32px;
}

.dasboard-heading h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 0 !important;
}

.dasboard-heading p {
  color: var(--text-muted-foreground);
  margin-top: 4px;
}

.date-filter-wrapper {
  width: 100%;
  margin-bottom: 18px;
}

.dashboard-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.filter-item {
  display: flex;
  gap: 5px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-foreground);
  margin-right: 12px;
}

.filter-select,
.filter-input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: #f9f9f9;
}

.filter-select {
  margin-right: 36px;
}

.filter-select:focus,
.filter-input:focus {
  border-color: #0073aa;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.custom-date-range {
  display: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  width: 220px;
}

.date-filter-wrapper {
  width: 100%;
}

.date-filter-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-item label {
  font-size: 13px;
  margin-bottom: 4px;
}

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

.header-container .dasboard-heading {
  margin-bottom: 0;
}

.header-container .dasboard-heading p {
  margin-bottom: 0;
}

/* ==============================
  ======= Button CSS ==========
============================== */

.st-btn {
  font-size: 14px;
  line-height: 20px;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
}

.add-product-btn {
  color: var(--primary-foreground);
  background-color: #1849a9;
}

.add-product-btn:hover {
  color: var(--primary-foreground);
}

.add-product-btn i,
.export-csv-btn i,
.reset-btn i {
  margin-right: 10px;
}

.outline-btn {
  font-weight: 500;
  color: var(--text-foreground);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background-color: var(--background);
}

.reset-btn i {
  margin-right: 0px;
}

.st-product-action-btn,
.st-booking-action-btn {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 4px;
}

.product-action-btn,
.booking-action-btn {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  border-radius: 12px;
  width: 32px;
  height: 32px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: none;
  background-color: var(--background);
}

.product-action-btn:hover,
.booking-action-btn:hover {
  background-color: var(--secondary-foreground);
}

.product-action-btn.publish i {
  color: var(--success);
}

.product-action-btn.deactivate i {
  color: var(--success);
}

.product-action-btn.edit i,
.booking-action-btn.view i {
  color: var(--text-foreground);
}

.product-action-btn.delete i {
  color: var(--destructive);
}

.product-action-btn.offer i {
  color: var(--destructive);
}

.warning-btn {
  background-color: var(--destructive);
  color: var(--primary-foreground);
}

/* ==============================
  ======= PRODUCTS ==========
============================== */
.st-status {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid;
}

.total-product-add-wrapper {
  margin-left: auto;
}

.st-status.publish,
.st-status.completed {
  background-color: var(--success-rgba);
  color: var(--success);
  border-color: var(--success-border);
}

.st-status.pending {
  background-color: var(--warning-rbga);
  color: var(--warning);
  border-color: var(--warning-border);
}

.st-status.draft,
.st-status.cancelled {
  background-color: var(--primary-rgba);
  color: var(--primary);
  border-color: var(--primary-border);
}

.st-status.trash,
.st-status.no-show {
  background-color: var(--text-muted-foreground-rgba);
  color: var(--text-foreground);
  border-color: var(--text-muted-foreground-border);
}

.st-status.refunded {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.product-service-title {
  margin: 0;
  padding: 0;
}

.product-service-title a {
  color: var(--text-foreground);
  font-weight: 500;
}

.st-table tbody tr:hover .product-service-title a {
  color: var(--primary);
}

.st-product-thumb {
  display: inline-block;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #ddd;
  margin-right: 10px;
  vertical-align: middle;
}

.st-product-img-circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-section p {
  margin-bottom: 0;
}

.st-pagination {
  margin: 20px 0;
  text-align: center;
}

.st-pagination a,
.st-pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.st-pagination a:hover {
  background: #0073aa;
  color: #fff;
}

.page-num.active {
  background: var(--primary);
  color: #fff;
}

/* ==============================
  ======= BOOKING INFO ==========
============================== */

/* inline details */
.booking-details-row td {
  padding: 0 !important;
  background: #fff;
  border-top: 0;
}

.booking-details-wrapper {
  padding: 24px;
  background: #fbfbfd;
}

.booking-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.booking-details-grid h4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;

  display: flex;
  align-items: center;
  gap: 8px;
}

.info-content {
  margin-top: 16px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-content-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-content-item .label {
  color: var(--text-muted-foreground);
}

.info-content-item .value {
  font-weight: 500;
}

.customer-info p {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted-foreground);
  margin-bottom: 0 !important;
}

.customer-info .cust-name {
  font-weight: 500;
  color: var(--text-foreground);
}

.booking-details-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-content-item .commission-value {
  color: var(--destructive);
}

.info-content-item .net-value {
  color: var(--success);
}

.booking-details-grid .net-amount {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 12px;
  font-weight: 700;
}

.special-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted-foreground);
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background-color: var(--secondary-foreground);
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.booking-cancel-btn {
  color: var(--destructive);
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-noshow-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* small UI */
.booking-details-loading {
  padding: 20px;
  text-align: center;
  color: #444;
}

.booking-details-error {
  padding: 14px;
  color: #c00;
}

/* status tag styles */
.status-tag {
  padding: 6px 10px;
  border-radius: 18px;
  display: inline-block;
  font-size: 13px;
}

.status-complete {
  background-color: var(--success-rgba);
  color: var(--success);
  border-color: var(--success-border);
}

.status-cancelled {
  background-color: var(--primary-rgba);
  color: var(--primary);
  border-color: var(--primary-border);
}

.status-pending {
  background: #fff6e6;
  color: #c68b00;
}

.status-no-show {
  background-color: var(--text-muted-foreground-rgba);
  color: var(--text-foreground);
  border-color: var(--text-muted-foreground-border);
}

.status-refunded {
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* rotate icon when open */
.booking-action-btn.view i.rotated {
  transform: rotate(180deg);
  transition: transform 0.18s ease;
}

/* Modal styles for delete confrimation */

.st-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.st-modal-wrapper {
  background: #fff;
  padding: 24px;
  width: 32rem;
  margin: 12% auto;
  border-radius: 0.75rem;
}

.st-modal-content {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.st-modal-content h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.st-modal-content p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted-foreground);
}

.st-modal-actions {
  display: flex;
  align-items: center;
  justify-content: end;

  gap: 0.75rem;
}

.model-btn {
  background-color: #ff8787;
}

/* Pagination */
.st-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
  gap: 6px;
}

.st-pagination a,
.st-pagination span {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
}

.st-pagination a:hover,
.st-pagination .current {
  background: #0073e6;
  color: #fff;
  border-color: #0073e6;
}

.st-pagination-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.pg-btn:hover:not(:disabled) {
  background: var(--primary, #0073e6);
  color: #fff;
  border-color: var(--primary, #0073e6);
}

.pg-btn.active {
  background: var(--primary, #0073e6);
  color: #fff;
  border-color: var(--primary, #0073e6);
  font-weight: 600;
}

.pg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.st-pagination-inner .dots {
  padding: 0 4px;
  color: #888;
  font-size: 14px;
  line-height: 34px;
}

.st-pagination-inner .pg-info {
  margin-left: 8px;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */
@media (max-width: 992px) {
  .dashboard-stat-earning {
    flex-direction: column;
  }

  .st-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .st-search {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .st-table {
    min-width: 600px;
  }

  .st-dashboard-content {
    overflow-x: auto;
  }

  .title-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .st-dashboard-stat .number {
    font-size: 18px;
  }

  .st-dashboard-stat .title {
    font-size: 13px;
  }

  .st-btn {
    width: 100%;
  }
}

/* ==============================
   ACCOUNT SETTINGS
============================== */
.supplier-id-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #e3e7ef;
  padding: 8px 16px;
  border-radius: 12px;
}

.supplier-id-badge .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-foreground);
}

.supplier-id-badge .supplier-id {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.badge-verified {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.verification-status {
  display: flex;
  align-items: start;
  gap: 8px;
  flex-direction: column;
}

.account-content {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  transition: background-color 0.2s ease;
}

.account-content h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.account-content-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.account-content-wrapper .grid-span {
  grid-column: span 2;
}

.account-content-wrapper label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-muted-foreground);
}

.account-content-wrapper input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: #f9f9f9;
}

/* ==============================
   FINANCES SECTION UPDATES 
============================== */

.finances-header {
  background-color: #e2f1f8;
  border: 1px solid #0da2e733;
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.finances-header p {
  margin-bottom: 0 !important;
  font-size: 14px;
  line-height: 20px;
  color: #0da2e7;

  display: flex;
  align-items: center;
  gap: 8px;
}

.finances-header {
  background-color: #e2f1f8;
  border: 1px solid #0da2e733;
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
}

/* --- FINANCES UI STYLE --- */

.finances-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 20px;
  background-color: #e8e9e980;
  padding: 6px;
  border-radius: 10px;
}

.finances-tab {
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted-foreground);

  transition: 0.2s;

  display: flex;
  align-items: center;
  gap: 8px;
}

.finances-tab.active {
  color: var(--primary);
  background-color: var(--background);
  border-radius: 8px;
}

.finances-section {
  display: none;
}

.finances-section.active {
  display: block;
}

.payment-warpper {
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
}

.payment-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.payment-info-header {
  margin-bottom: 16px;
}

.payment-info-header h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.payment-info-header p {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-muted-foreground);
}

.review-table,
.finance-table,
.social-media-section,
.password-section,
.bokun-section {
  margin-top: 20px;
}

.finance-table .st-table thead th:last-child,
.review-table .st-table thead th:last-child {
  text-align: left;
}

.finance-box {
  background: #f9fafb;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid #e5e7eb;
}

.finance-box h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.invoice-item {
  border: 1px solid #e5e7eb;
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.invoice-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.review-content p {
  margin-bottom: 0 !important;
}

.review-comment {
  max-width: 28rem;
}

.review-content p {
  color: var(--foreground);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.review-content .scoundary-text {
  color: var(--text-muted-foreground);
  font-size: 14px;
  line-height: 20px;
}

.verification-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  padding: 25px;
  max-width: 420px;
  width: 90%;
  border-radius: 8px;
  text-align: center;
}

/* ==============================
   REFUND MANAGEMENT
============================== */

/* Access denied message */
.refund-access-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-muted-foreground);
  gap: 12px;
}

.refund-access-denied i {
  font-size: 2.5rem;
  color: var(--destructive);
}

/* Toolbar */
.refund-toolbar {
  margin-bottom: 1rem;
}

/* Table wrapper */
.refund-table-wrap {
  overflow-x: auto;
}

/* Status badges */
.refund-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffc10740;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #34d39840;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef444440;
}

/* Action buttons */
.refund-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-approve-refund {
  background: #d1fae5 !important;
  color: #065f46 !important;
  border: 1px solid #34d39860 !important;
  font-size: 12px !important;
  padding: 5px 10px !important;
}

.btn-approve-refund:hover {
  background: #a7f3d0 !important;
}

.btn-reject-refund {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #ef444460 !important;
  font-size: 12px !important;
  padding: 5px 10px !important;
}

.btn-reject-refund:hover {
  background: #fecaca !important;
}

/* Reason cell clamping */
.refund-reason {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Admin note icon */
.admin-note-preview {
  color: var(--text-muted-foreground);
  font-size: 13px;
  cursor: default;
}

/* ── Modals ──────────────────────────── */
.refund-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.refund-modal-overlay.active {
  display: flex;
}

.refund-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.refund-modal-lg {
  max-width: 620px;
}

.refund-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.refund-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted-foreground);
  line-height: 1;
  padding: 0;
}

.close-modal:hover {
  color: var(--foreground);
}

.refund-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted-foreground);
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-foreground);
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-muted-foreground);
  font-size: 12px;
}

.form-group .required {
  color: var(--destructive);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.st-input,
.st-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Outfit", sans-serif;
  color: var(--foreground);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.st-input:focus,
.st-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.st-textarea {
  resize: vertical;
  min-height: 80px;
}

.bokun-resync-note {
  display: block;
  margin-top: 8px;
  color: var(--text-muted-foreground);
  font-size: 12px;
  line-height: 1.5;
}

.bokun-inline-resync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary) !important;
  font-weight: 600;
  text-decoration: none;
  background: rgba(20, 59, 138, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 4px;
}

.bokun-inline-resync:hover,
.bokun-inline-resync:focus {
  color: var(--primary) !important;
  background: rgba(20, 59, 138, 0.14);
  text-decoration: none;
}

.bokun-inline-resync.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.refund-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

/* Extra button variants for refund modals */
.btn-success {
  background: #22c55e !important;
  color: #fff !important;
  border: none !important;
}

.btn-success:hover {
  background: #16a34a !important;
}

.btn-danger {
  background: var(--destructive) !important;
  color: #fff !important;
  border: none !important;
}

.btn-danger:hover {
  background: #dc2626 !important;
}

.btn-primary-solid {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary-solid:hover {
  background: #0f2d6b !important;
}

/* ── Toast ───────────────────────────── */
.refund-toast {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  animation: toastIn 0.25s ease;
}

.refund-toast--success {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.refund-toast--error {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Text helpers */
.fw-medium {
  font-weight: 500;
}

.text-muted {
  color: var(--text-muted-foreground);
  font-size: 12px;
}

.customer-name {
  font-weight: 500;
}

/* ==============================
   DASHBOARD CHART SECTION
============================== */
.dashboard-chart-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}

.chart-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.chart-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-card-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-foreground);
}

.chart-card-title i {
  color: var(--primary);
  font-size: 16px;
}

.chart-card-period {
  font-size: 13px;
  color: var(--text-muted-foreground);
  background: var(--muted);
  padding: 4px 12px;
  border-radius: 20px;
}

.chart-card-body {
  padding: 20px;
  position: relative;
  min-height: 280px;
}

.chart-card-body canvas {
  width: 100% !important;
}

@media (max-width: 1024px) {
  .dashboard-chart-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .chart-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .chart-card-body {
    padding: 12px;
    min-height: 220px;
    overflow-x: auto;
  }
}

/* ==============================
   LOCKED FIELDS (Company Verified)
============================== */
.locked-field {
  background: #f4f4f4 !important;
  cursor: not-allowed;
}

/* ==============================
   BOOKING DATE FILTER ROW
============================== */
.date-filter-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.booking-empty-msg {
  text-align: center;
}

/* ==============================
   BOKUN INTEGRATION
============================== */
.bokun-badge-connected {
  font-size: 13px;
}

.bokun-info-wrapper {
  margin-bottom: 16px;
}

.bokun-products-table {
  font-size: 13px;
}

/* ==============================
   PRODUCT DEACTIVATE WARNING
============================== */
#deactivateWarningMsg {
  display: none;
  margin-top: 10px;
  color: #c62828;
  font-weight: 500;
}

/* ==============================
   OFFER MODAL
============================== */

.st-review-score {
  font-size: 13px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-review-score .stars {
  color: #ffd700;
  display: flex;
  gap: 2px;
}

.st-review-score .count {
  color: #6b7280;
  font-size: 12px;
}

/* Offer Modal Styles */
.offer-modal-shell {
  width: min(100%, 512px);
  margin: 7vh auto;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
}

.offer-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(180deg,
      rgba(20, 59, 138, 0.08) 0%,
      rgba(20, 59, 138, 0.02) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.offer-modal-header-copy {
  flex-grow: 1;
}

.offer-modal-header-copy h3 {
  margin: 10px 0 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.offer-modal-header-copy p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.offer-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(20, 59, 138, 0.1);
  color: var(--primary, #143b8a);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.offer-modal-close:hover {
  background: #fff;
  color: #0f172a;
  border-color: rgba(20, 59, 138, 0.26);
}

.offer-modal-content {
  padding: 20px;
  gap: 0;
}

.offer-price-display {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.offer-price-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.offer-price-card.discount-result {
  background: linear-gradient(180deg,
      rgba(34, 197, 94, 0.08) 0%,
      rgba(240, 253, 244, 0.95) 100%);
  border-color: rgba(34, 197, 94, 0.2);
}

.offer-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-value {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
}

.discount-result .offer-value {
  color: var(--success, #15803d);
}

.offer-savings-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
  color: #9a3412;
  font-size: 14px;
  font-weight: 600;
}

.offer-field-group {
  margin-bottom: 18px;
}

.offer-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.offer-toggle-row {
  display: flex;
  gap: 10px;
}

.offer-type-btn {
  padding: 6px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.offer-type-btn.active {
  border-color: rgba(20, 59, 138, 0.35);
  background: linear-gradient(180deg,
      rgba(20, 59, 138, 0.12) 0%,
      rgba(20, 59, 138, 0.04) 100%);
  color: var(--primary, #143b8a);
  box-shadow: 0 0 0 3px rgba(20, 59, 138, 0.08);
}

.offer-type-btn:hover:not(.active) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.offer-input-wrap {
  position: relative;
}

.offer-input-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 34px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary, #143b8a);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

#offerDiscountValue {
  width: 100%;
  height: 52px;
  padding: 12px 64px 12px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

#offerDiscountValue:focus {
  border-color: rgba(20, 59, 138, 0.5);
  box-shadow: 0 0 0 4px rgba(20, 59, 138, 0.08);
}

.offer-field-help {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.offer-feedback {
  width: 100%;
  min-height: 22px;
  padding: 0;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}

.offer-feedback.is-success {
  color: var(--success, #15803d);
}

.offer-feedback.is-error {
  color: #dc2626;
}

/* Offer Modal Actions - moved to main CSS file for consistency */

/* ==============================
   REFUND EMPTY STATE
============================== */
.refund-empty-cell {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted-foreground);
}

.refund-empty-cell i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

/* ==============================
   GENERIC TABLE EMPTY MESSAGE
============================== */
.table-empty-msg {
  text-align: center;
  padding: 20px;
}

/* ==============================
   CONVERSATION SIDEBAR
============================== */

/* Overlay */
.conv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.conv-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Sidebar panel */
.conv-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.conv-sidebar.open {
  transform: translateX(0);
}

body.conv-sidebar-open {
  overflow: hidden;
}

/* Header */
.conv-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #fbfbfd;
  flex-shrink: 0;
}

.conv-sidebar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.conv-sidebar-title i {
  font-size: 20px;
  color: var(--primary, #143b8a);
}

.conv-sidebar-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.conv-sidebar-subtitle {
  font-size: 13px;
  color: var(--text-muted-foreground, #6b7280);
}

.conv-sidebar-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted-foreground, #6b7280);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.conv-sidebar-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-foreground, #111);
}

/* Messages body */
.conv-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Empty & loading states */
.conv-empty,
.conv-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted-foreground, #6b7280);
  padding: 40px 20px;
  flex: 1;
}

.conv-empty i,
.conv-loading i {
  font-size: 28px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.conv-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Message bubbles */
.conv-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.conv-msg-sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.conv-msg-received {
  align-self: flex-start;
}

.conv-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  color: #fff;
}

.conv-msg-sent .conv-msg-avatar {
  background: var(--primary, #143b8a);
}

.conv-msg-received .conv-msg-avatar {
  background: #6b7280;
}

.conv-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.conv-msg-sent .conv-msg-bubble {
  background: var(--primary, #143b8a);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.conv-msg-received .conv-msg-bubble {
  background: #f3f4f6;
  color: var(--text-foreground, #111);
  border-bottom-left-radius: 4px;
}

.conv-msg-subject {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.conv-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
}

.conv-msg-sent .conv-msg-meta {
  justify-content: flex-end;
}

/* Footer / compose area */
.conv-sidebar-footer {
  border-top: 1px solid var(--border, #e5e7eb);
  padding: 16px 20px;
  background: #fbfbfd;
  flex-shrink: 0;
}

.conv-compose {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conv-input {
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.conv-input:focus {
  border-color: var(--primary, #143b8a);
}

.conv-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.conv-textarea:focus {
  border-color: var(--primary, #143b8a);
}

.conv-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conv-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.conv-feedback {
  font-size: 12px;
  flex: 1;
}

/* Conversation button in booking details */
.booking-conversation-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.booking-conversation-btn:hover {
  border-color: var(--primary, #143b8a);
  color: var(--primary, #143b8a);
}

/* Responsive */
@media (max-width: 480px) {
  .conv-sidebar {
    width: 100vw;
  }
}

.st-checkbox-group-wrap {
  display: flex;
  gap: 18px;
}

.st-checkbox-group-item {
  display: flex;
  align-items: center;
  gap: 6px;
}