/* Safari Matrouh — WooCommerce cart & checkout (matches cart.html / checkout.html) */
body.tbw-cart-page,
body.tbw-checkout-page,
body.tbw-order-received-page {
  --primary: #0B0F1A;
  --primary-dark: #060810;
  --primary-light: #1A2238;
  --accent: #B38756;
  --accent-dark: #9A7045;
  --white: #FFFFFF;
  --off-white: #F8FAFB;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --font-main: 'Cairo', sans-serif;
  --shadow-sm: 0 2px 8px rgba(10, 110, 138, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.25s ease;
}

body.tbw-cart-page .tbw-shop-shell,
body.tbw-checkout-page .tbw-shop-shell,
body.tbw-order-received-page .tbw-shop-shell {
  font-family: var(--font-main);
}

/* Shop page layout */
.shop-page {
  padding: calc(var(--nav-h, 72px) + 40px) 0 80px;
  background: transparent;
  min-height: 70vh;
}

.shop-page .page-header {
  margin-bottom: 40px;
}

.shop-page .page-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.shop-page .page-header p {
  color: var(--white);
  font-size: 1rem;
}

.shop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

.shop-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  color: var(--accent);
}

.shop-breadcrumb span {
  color: rgba(255, 255, 255, 0.45);
}

/* Deposit info banner */
.deposit-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #212940;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.deposit-banner-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 162, 97, 0.15);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 800;
}

.deposit-banner strong {
  display: block;
  font-size: 0.95rem;
  color: #B38756;
  margin-bottom: 2px;
}

.deposit-banner p {
  font-size: 0.85rem;
  color: white;
  line-height: 1.5;
}

/* Cart â€” WooCommerce structure */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.woocommerce-cart-form,
.wc-cart-form {
  background: #212940;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 16px;
  padding: 16px 24px;
  background: var(--gray-100);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.cart-item:hover {
  background: var(--off-white);
}

.cart-product {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-product img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-product h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.cart-product .vendor {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.cart-product .date-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.cart-price,
.cart-deposit,
.cart-total-col {
  font-weight: 700;
  color: var(--gray-800);
}

.cart-deposit {
  color: var(--accent-dark);
}

.cart-deposit small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-400);
}

.quantity-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-input button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.quantity-input button:hover {
  background: var(--primary);
  color: var(--white);
}

.quantity-input input {
  width: 44px;
  height: 36px;
  border: none;
  text-align: center;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-remove {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-remove:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.cart-remove svg {
  width: 18px;
  height: 18px;
}

/* Cart summary / checkout sidebar */
.cart-collaterals,
.cart-summary {
  background: #212940;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.summary-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  border-top: 2px solid var(--gray-100);
  margin-top: 8px;
  padding-top: 16px;
}

.summary-row.highlight {
  color: var(--accent-dark);
  font-weight: 700;
}

.summary-row .label small {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 400;
}

.summary-deposit-note {
  margin: 16px 0;
  padding: 14px;
  background: #FFFFFF2E;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.6;
  text-align: right;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

.cart-summary .btn-outline {
  margin-top: 10px;
}

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
}

.checkout-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.checkout-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-section h2 .step-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 110, 138, 0.1);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.payment-method:hover,
.payment-method.selected {
  border-color: var(--primary);
  background: rgba(10, 110, 138, 0.04);
}

.payment-method input {
  accent-color: var(--primary);
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--gray-600);
}

.payment-method-info strong {
  display: block;
  font-size: 0.95rem;
}

.payment-method-info small {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Wishlist */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wishlist-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.wishlist-empty svg {
  width: 64px;
  height: 64px;
  color: var(--gray-300);
  margin: 0 auto 20px;
}

.wishlist-empty h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.wishlist-empty p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* Login / My Account */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-card .auth-sub {
  color: var(--gray-500);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.social-login {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: var(--transition);
}

.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

.account-benefits {
  background: var(--gradient-ocean);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.account-benefits h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.account-benefits ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.account-benefits li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

/* WooCommerce class hooks â€” for WP theme integration */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.woocommerce .woocommerce-message {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.woocommerce .woocommerce-info {
  background: rgba(10, 110, 138, 0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(10, 110, 138, 0.2);
}

/* ——— WooCommerce cart table mapping ——— */
body.tbw-cart-page .tbw-shop-container.container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

body.tbw-cart-page .tbw-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

body.tbw-cart-page .tbw-cart-layout > .woocommerce-cart-form {
  grid-column: 1;
  min-width: 0;
}

body.tbw-cart-page .tbw-cart-layout > .cart-collaterals {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

body.tbw-cart-page .tbw-cart-table-header {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(90px, 1fr) minmax(90px, 1fr) 124px 52px;
  gap: 16px;
  padding: 16px 24px;
  background: #212940;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.tbw-cart-page .tbw-cart-table-header .tbw-col-remove {
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table {
  display: block;
  width: 100%;
  border: none;
  margin: 0;
  border-collapse: separate;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table thead {
  display: none;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody {
  display: block;
  width: 100%;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.woocommerce-cart-form__cart-item,
body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.cart_item {
  display: grid !important;
  grid-template-columns: minmax(0, 2.2fr) minmax(90px, 1fr) minmax(90px, 1fr) 124px 52px;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.woocommerce-cart-form__cart-item:hover,
body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.cart_item:hover {
  background: #212940;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.woocommerce-cart-form__cart-item td,
body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.cart_item td {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  border: none;
  padding: 0;
  background: transparent !important;
  float: none !important;
  clear: none !important;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.woocommerce-cart-form__cart-item td::before,
body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.cart_item td::before {
  display: none !important;
  content: none !important;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-thumbnail {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-name {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-price {
  grid-column: 2;
  grid-row: 1;
  font-weight: 700;
  color: #B38756;
  text-align: start;
  align-self: center;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal {
  grid-column: 3;
  grid-row: 1;
  color: #B38756;
  font-weight: 700;
  text-align: start;
  align-self: center;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal small {
  display: none;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-quantity {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
  align-self: center;
  min-width: 0;
  z-index: 1;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-remove {
  grid-column: 5;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-self: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-control {
  flex-shrink: 0;
  max-width: 116px;
}

body.tbw-cart-page .tbw-cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

body.tbw-cart-page .tbw-cart-product-thumb {
  flex-shrink: 0;
  line-height: 0;
}

body.tbw-cart-page .tbw-cart-product-thumb img,
body.tbw-cart-page .tbw-cart-thumb-img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .product-remove a.remove {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 15, 26, 0.12);
  background: #fff;
  color: var(--primary, #0B0F1A) !important;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: var(--transition, 0.25s ease);
  box-shadow: 0 2px 8px rgba(11, 15, 26, 0.06);
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .product-remove a.remove:hover {
  color: #fff !important;
  background: var(--accent, #B38756);
  border-color: var(--accent, #B38756);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(179, 135, 86, 0.35);
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .quantity,
body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-minus,
body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-plus {
  width: 36px;
  min-height: 36px;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gray-600);
  transition: var(--transition);
  padding: 0;
  font-family: var(--font-main);
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-minus:hover:not(:disabled),
body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-plus:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-minus:disabled,
body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-plus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-control.is-locked {
  opacity: 0.85;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .quantity .qty,
body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-input {
  width: 44px;
  min-height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  font-weight: 600;
  font-family: var(--font-main);
  background: var(--white);
  -moz-appearance: textfield;
  padding: 0;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table .quantity .qty::-webkit-outer-spin-button,
body.tbw-cart-page .woocommerce-cart-form table.shop_table .quantity .qty::-webkit-inner-spin-button,
body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-input::-webkit-outer-spin-button,
body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.tbw-cart-page .woocommerce-cart-form table.shop_table dl.variation,
body.tbw-cart-page .woocommerce-cart-form table.shop_table .wc-item-meta {
  display: none !important;
}

/* Cart product cell */
body.tbw-cart-page .tbw-cart-product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

body.tbw-cart-page .tbw-cart-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(10, 110, 138, 0.1);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}

body.tbw-cart-page .tbw-cart-product-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--gray-900);
}

body.tbw-cart-page .tbw-cart-product-title a {
  color: inherit;
  text-decoration: none;
}

body.tbw-cart-page .tbw-cart-vendor {
  font-size: 0.8rem;
  color: var(--gray-500);
}

body.tbw-cart-page .tbw-cart-product-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
}

body.tbw-cart-page .tbw-cart-date-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 600;
}

body.tbw-cart-page .tbw-cart-meta-line {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* Cart actions / coupon */
body.tbw-cart-page .woocommerce-cart-form .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border: none;
}

body.tbw-cart-page .woocommerce-cart-form .actions .coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}

body.tbw-cart-page .woocommerce-cart-form .actions .coupon label {
  display: none;
}

body.tbw-cart-page .woocommerce-cart-form .actions .coupon input.input-text {
  flex: 1;
  min-width: 160px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

body.tbw-cart-page .woocommerce-cart-form .actions .coupon input.input-text::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body.tbw-cart-page .woocommerce-cart-form .actions .button,
body.tbw-cart-page .woocommerce-cart-form .actions button[name="update_cart"] {
  padding: 11px 20px;
  border-radius: 50px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

body.tbw-cart-page .woocommerce-cart-form .actions .button:hover,
body.tbw-cart-page .woocommerce-cart-form .actions button[name="update_cart"]:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

body.tbw-cart-page .woocommerce-cart-form .actions button[name="update_cart"] {
  margin-inline-start: auto;
}

/* Cart totals sidebar */
body.tbw-cart-page .cart-collaterals .cart_totals {
  background: #212940;
  border-radius: 28;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
  width: 100%;
  float: none;
}

body.tbw-cart-page .cart-collaterals .cart_totals h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 16px;
  color: #B38756;
}

body.tbw-cart-page .cart_totals table.shop_table {
  border: none;
  width: 100%;
}

body.tbw-cart-page .cart_totals table.shop_table tr th,
body.tbw-cart-page .cart_totals table.shop_table tr td {
  border: none;
  padding: 10px 0;
  font-size: 0.95rem;
  background: transparent;
}

body.tbw-cart-page .cart_totals table.shop_table tr th {
  font-weight: 600;
  color: #fff !important;
  text-align: start;
  width: 55%;
}

body.tbw-cart-page .cart_totals table.shop_table tr td {
  text-align: end;
  font-weight: 700;
  color: #B38756 !important;
}

body.tbw-cart-page .cart_totals table.shop_table tr td .amount,
body.tbw-cart-page .cart_totals table.shop_table tr td .woocommerce-Price-amount,
body.tbw-cart-page .cart_totals table.shop_table tr td .woocommerce-Price-currencySymbol {
  color: inherit !important;
}

body.tbw-cart-page .cart_totals table.shop_table tr.cart-subtotal th,
body.tbw-cart-page .cart_totals table.shop_table tr.tbw-summary-row th {
  color: #fff !important;
}

body.tbw-cart-page .cart_totals table.shop_table tr.cart-subtotal td,
body.tbw-cart-page .cart_totals table.shop_table tr.tbw-summary-row td {
  color: #B38756 !important;
}

body.tbw-cart-page .cart_totals table.shop_table tr.order-total th,
body.tbw-cart-page .cart_totals table.shop_table tr.order-total td {
  font-size: 1.1rem;
  font-weight: 800;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

body.tbw-cart-page .cart_totals table.shop_table tr.order-total th {
  color: #fff !important;
}

body.tbw-cart-page .cart_totals table.shop_table tr.order-total td {
  color: #B38756 !important;
}

body.tbw-cart-page .tbw-summary-highlight th {
  color: #fff !important;
  font-weight: 700;
}

body.tbw-cart-page .tbw-summary-highlight td {
  color: #B38756 !important;
  font-weight: 700;
}

body.tbw-cart-page .tbw-summary-row th small {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

body.tbw-cart-page .tbw-summary-note-row td {
  padding-top: 0 !important;
}

body.tbw-cart-page .summary-deposit-note {
  margin: 0;
}

body.tbw-cart-page .wc-proceed-to-checkout {
  padding: 0;
  margin-top: 16px;
}

body.tbw-cart-page .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  margin-top: 0;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  border-radius: 50px;
  padding: 14px 24px;
  font-weight: 700;
  text-align: center;
  display: block;
  color: var(--white) !important;
}

body.tbw-cart-page .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

body.tbw-cart-page .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  body.tbw-cart-page .tbw-cart-layout {
    grid-template-columns: 1fr;
  }

  body.tbw-cart-page .tbw-cart-layout > .cart-collaterals {
    grid-column: 1;
    grid-row: auto;
  }

  body.tbw-cart-page .cart-collaterals .cart_totals {
    position: static;
  }
}

@media (max-width: 768px) {
  body.tbw-cart-page .tbw-cart-table-header {
    display: none;
  }

  body.tbw-cart-page .woocommerce-cart-form {
    border-radius: var(--radius-md);
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.woocommerce-cart-form__cart-item,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "product remove"
      "qty qty"
      "price-full price-full"
      "price-deposit price-deposit";
    gap: 0;
    padding: 16px;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.woocommerce-cart-form__cart-item td,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table tbody tr.cart_item td {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    border: none;
    padding: 0;
    background: transparent !important;
    float: none !important;
    clear: none !important;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-name {
    grid-area: product;
    padding: 0 0 12px;
    align-self: start;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-remove {
    grid-area: remove;
    padding: 0;
    align-self: start;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table .product-remove a.remove {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: none;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-quantity {
    grid-area: qty;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-quantity::before {
    content: attr(data-title);
    display: block !important;
    font-size: 0.85rem;
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 0;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-price {
    grid-area: price-full;
    display: block !important;
    padding: 10px 0 2px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    color: #B38756;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal {
    grid-area: price-deposit;
    display: block !important;
    padding: 2px 0 0;
    border-top: none;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    color: #B38756;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-price::before,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal::before {
    display: none !important;
    content: none !important;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-price .woocommerce-Price-amount,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-amount,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-price .amount,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal .amount {
    display: inline;
    white-space: nowrap;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-price .woocommerce-Price-amount bdi,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-amount bdi,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-price .woocommerce-Price-currencySymbol,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-currencySymbol {
    display: inline;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal small {
    display: none;
  }

  body.tbw-cart-page .tbw-cart-product-title,
  body.tbw-cart-page .tbw-cart-product-title a {
    color: #fff;
  }

  body.tbw-cart-page .tbw-cart-vendor,
  body.tbw-cart-page .tbw-cart-meta-line {
    color: rgba(255, 255, 255, 0.65);
  }

  body.tbw-cart-page .tbw-cart-date-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
  }

  body.tbw-cart-page .tbw-cart-type-badge {
    background: rgba(179, 135, 86, 0.2);
    color: var(--accent);
  }

  body.tbw-cart-page .tbw-cart-product-thumb img,
  body.tbw-cart-page .tbw-cart-thumb-img {
    width: 80px;
    height: 64px;
    border-radius: 12px;
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-control {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-minus,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-plus {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
  }

  body.tbw-cart-page .woocommerce-cart-form table.shop_table .quantity .qty,
  body.tbw-cart-page .woocommerce-cart-form table.shop_table .tbw-qty-input {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
  }

  body.tbw-cart-page .woocommerce-cart-form td.actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 16px;
    gap: 10px 12px;
    background: rgba(11, 15, 26, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.tbw-cart-page .woocommerce-cart-form td.actions > input[type="hidden"] {
    display: none !important;
    grid-row: 99;
    height: 0;
    margin: 0;
    padding: 0;
  }

  body.tbw-cart-page .woocommerce-cart-form td.actions .coupon {
    display: contents;
  }

  body.tbw-cart-page .woocommerce-cart-form td.actions .coupon label {
    display: none !important;
  }

  body.tbw-cart-page .woocommerce-cart-form td.actions .coupon input.input-text {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    border-radius: 12px;
    padding: 12px 14px;
  }

  body.tbw-cart-page .woocommerce-cart-form td.actions .coupon .button,
  body.tbw-cart-page .woocommerce-cart-form td.actions button[name="apply_coupon"] {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-height: 48px;
    border-radius: 50px;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    margin: 0;
  }

  body.tbw-cart-page .woocommerce-cart-form td.actions button[name="update_cart"] {
    grid-column: 2;
    grid-row: 2;
    margin-inline-start: 0;
    width: 100%;
    min-height: 48px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
  }

  body.tbw-cart-page .woocommerce-cart-form .actions button[name="update_cart"]:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(179, 135, 86, 0.1);
  }

  body.tbw-cart-page .cart-collaterals .cart_totals {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
}

/* ——— Checkout (checkout.html) ——— */
body.tbw-checkout-page .tbw-shop-container.container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
}

body.tbw-checkout-page .tbw-checkout-layout {
  display: block;
}

body.tbw-checkout-page form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 32px;
  align-items: start;
  margin: 0;
}

body.tbw-checkout-page .tbw-checkout-main {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

body.tbw-checkout-page #order_review_heading {
  display: none !important;
}

body.tbw-checkout-page #order_review {
  grid-column: 2;
  grid-row: 1;
  background: #212940;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
}

body.tbw-checkout-page #order_review::before {
  content: 'ملخص الطلب';
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 16px;
  color: #B38756;
}

body.tbw-checkout-page .tbw-checkout-section {
  background: #212940;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

body.tbw-checkout-page .tbw-checkout-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #B38756;
}

body.tbw-checkout-page .tbw-checkout-section h2 .step-num {
  width: 28px;
  height: 28px;
  background: #FFFFFF2E;
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

body.tbw-checkout-page .tbw-payment-lead {
  font-size: 0.85rem;
  color: #fff;
  margin: -8px 0 16px;
  line-height: 1.6;
}

body.tbw-checkout-page #customer_details {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

body.tbw-checkout-page #customer_details .col-1,
body.tbw-checkout-page #customer_details .col-2 {
  width: 100%;
  float: none;
  padding: 0;
}

body.tbw-checkout-page #customer_details .col-2 {
  display: none;
}

body.tbw-checkout-page #customer_details h3 {
  display: none;
}

body.tbw-checkout-page .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.tbw-checkout-page .woocommerce-billing-fields .form-row {
  margin: 0;
  padding: 0;
  width: 100% !important;
  float: none !important;
  clear: none !important;
}

body.tbw-checkout-page .woocommerce-billing-fields .form-row-wide,
body.tbw-checkout-page .woocommerce-billing-fields .form-row.form-row-wide {
  grid-column: 1 / -1;
}

body.tbw-checkout-page .woocommerce-billing-fields label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #B38756;
  margin-bottom: 6px;
}

body.tbw-checkout-page .woocommerce-billing-fields label .required {
    color: #B38756;
}

/* Phone is required — never show WooCommerce "(اختياري)" / "(optional)" next to it. */
body.tbw-checkout-page #billing_phone_field label .optional,
body.woocommerce-checkout #billing_phone_field label .optional {
  display: none !important;
}

body.tbw-checkout-page .woocommerce-billing-fields input.input-text,
body.tbw-checkout-page .woocommerce-billing-fields select,
body.tbw-checkout-page .woocommerce-billing-fields textarea {
  width: 100%;
  padding: 12px 16px;
  border: none !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #fff;
  background: #FFFFFF2E;
  box-sizing: border-box;
}

body.tbw-checkout-page .woocommerce-billing-fields input:focus,
body.tbw-checkout-page .woocommerce-billing-fields select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 110, 138, 0.1);
}

body.tbw-checkout-page .woocommerce-checkout-payment {
  background: transparent;
  padding: 0;
}

body.tbw-checkout-page #payment {
  background: transparent !important;
  border-radius: 0;
}

body.tbw-checkout-page #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.tbw-checkout-page #payment ul.payment_methods li {
  margin: 0;
  padding: 0;
  border: 0;
}

body.tbw-checkout-page #payment ul.payment_methods li.wc_payment_method {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

body.tbw-checkout-page #payment ul.payment_methods li input[type="radio"] {
  accent-color: #B38756;
  margin: 0;
  flex-shrink: 0;
  order: 1;
}

body.tbw-checkout-page #payment ul.payment_methods li label {
  align-items: center;
  gap: 12px;
  flex: 1;
  order: 2;
  font-weight: 700;
  color: #B38756;
  cursor: pointer;
  margin: 0;
}

body.tbw-checkout-page #payment ul.payment_methods li .payment_box {
  order: 3;
  width: 100%;
  flex-basis: 100%;
  margin-top: 0;
}

body.tbw-checkout-page #payment div.payment_box {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.6;
  background-color: transparent;
}

body.tbw-checkout-page #payment div.payment_box::before {
  display: none;
}

body.tbw-checkout-page #payment .place-order {
  margin: 0;
  padding: 0;
  border: 0;
}

body.tbw-checkout-page #payment .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

body.tbw-checkout-page #place_order {
  width: 100%;
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  border-radius: 50px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white) !important;
  cursor: pointer;
  transition: var(--transition);
}

body.tbw-checkout-page #place_order:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

body.tbw-checkout-page #order_review .place-order {
  margin-top: 16px;
  padding-top: 0;
  border: 0;
}

body.tbw-checkout-page #order_review .place-order::after {
  content: '🔒 دفع آمن ومشفّر';
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 10px;
}

body.tbw-checkout-page #order_review .place-order .woocommerce-privacy-policy-text p {
    color: white;
}

body.tbw-checkout-page #order_review .place-order ~ .place-order {
  display: none !important;
}

body.tbw-checkout-page:has(#order_review .place-order) #payment .place-order {
  display: none !important;
}

body.tbw-checkout-page .tbw-checkout-payment #payment .place-order {
  display: none;
}

body.tbw-checkout-page .woocommerce-form-coupon-toggle,
body.tbw-checkout-page .checkout_coupon {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

body.tbw-checkout-page .woocommerce-info,
body.tbw-checkout-page .woocommerce-message {
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
}

body.tbw-checkout-page .tbw-checkout-previews {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

body.tbw-checkout-page .tbw-checkout-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.tbw-checkout-page .tbw-checkout-preview-thumb {
  flex-shrink: 0;
  line-height: 0;
}

body.tbw-checkout-page .tbw-checkout-preview-img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

body.tbw-checkout-page .tbw-checkout-preview-body strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 2px;
}

body.tbw-checkout-page .tbw-checkout-preview-body small {
  color: #fff;
  font-size: 0.8rem;
}

body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table {
  width: 100%;
  border: 0;
  margin: 0 0 8px;
}

body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table thead {
  display: none;
}

body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tbody {
  display: none;
}

body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tfoot th,
body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tfoot td {
  border: 0;
  padding: 10px 0;
  font-size: 0.95rem;
  background: transparent;
}

body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tfoot th {
  font-weight: 600;
  color: #FFF !important;
  text-align: start;
  width: 55%;
}

body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tfoot td {
  text-align: end;
  font-weight: 700;
  color: #B38756 !important;
}

body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td {
  padding-top: 0;
}

body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.tbw-checkout-page #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  border-top: 2px solid var(--gray-100);
  padding-top: 16px;
}

body.tbw-checkout-page #order_review .tbw-checkout-deposit-row th,
body.tbw-checkout-page #order_review .tbw-checkout-deposit-row td {
  color: var(--accent-dark);
  font-weight: 700;
}

body.tbw-checkout-page #order_review .tbw-checkout-note-row td {
  padding-top: 0;
}

body.tbw-checkout-page #order_review .summary-deposit-note {
  margin: 0;
}

@media (max-width: 1024px) {
  body.tbw-checkout-page form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr;
  }

  body.tbw-checkout-page #order_review {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}

/* Qeematech InstaPay / Vodafone Cash — dark checkout theme */
body.tbw-checkout-page .qt-instapay-description,
body.woocommerce-order-pay .qt-instapay-description {
  margin: 0 0 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

body.tbw-checkout-page .qt-instapay-box,
body.woocommerce-order-pay .qt-instapay-box,
body.woocommerce-checkout .qt-instapay-box {
  margin-top: 0 !important;
  padding: 18px 16px !important;
  border: none;
  border-radius: var(--radius-md, 16px) !important;
  background: transparent;
  direction: rtl;
  color: #fff !important;
  font-family: var(--font-main, 'Cairo', sans-serif);
}

body.tbw-checkout-page .qt-instapay-simple-title,
body.woocommerce-order-pay .qt-instapay-simple-title {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

body.tbw-checkout-page .qt-instapay-step,
body.woocommerce-order-pay .qt-instapay-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 10px;
}

body.tbw-checkout-page .qt-step-number,
body.woocommerce-order-pay .qt-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
}

body.tbw-checkout-page .qt-instapay-step strong,
body.woocommerce-order-pay .qt-instapay-step strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

body.tbw-checkout-page .qt-instapay-step small,
body.woocommerce-order-pay .qt-instapay-step small,
body.tbw-checkout-page .qt-instapay-box small,
body.woocommerce-order-pay .qt-instapay-box small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

body.tbw-checkout-page .qt-instapay-retry-alert,
body.woocommerce-order-pay .qt-instapay-retry-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  line-height: 1.7;
}

body.tbw-checkout-page .qt-instapay-plan-grid,
body.tbw-checkout-page .qt-instapay-method-grid,
body.woocommerce-order-pay .qt-instapay-plan-grid,
body.woocommerce-order-pay .qt-instapay-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.tbw-checkout-page .qt-instapay-plan-card,
body.tbw-checkout-page .qt-instapay-method-card,
body.woocommerce-order-pay .qt-instapay-plan-card,
body.woocommerce-order-pay .qt-instapay-method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: var(--transition);
  color: #fff;
}

body.tbw-checkout-page .qt-instapay-method-card,
body.woocommerce-order-pay .qt-instapay-method-card {
  align-items: center;
  justify-content: center;
  min-height: 58px;
  font-weight: 800;
}

body.tbw-checkout-page .qt-instapay-plan-card input,
body.tbw-checkout-page .qt-instapay-method-card input,
body.woocommerce-order-pay .qt-instapay-plan-card input,
body.woocommerce-order-pay .qt-instapay-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.tbw-checkout-page .qt-instapay-plan-card.is-selected,
body.tbw-checkout-page .qt-instapay-method-card.is-selected,
body.woocommerce-order-pay .qt-instapay-plan-card.is-selected,
body.woocommerce-order-pay .qt-instapay-method-card.is-selected {
  border-color: var(--accent);
  background: rgba(179, 135, 86, 0.18);
  box-shadow: 0 0 0 2px rgba(179, 135, 86, 0.15);
}

body.tbw-checkout-page .qt-plan-name,
body.woocommerce-order-pay .qt-plan-name {
  font-weight: 800;
  color: #fff;
}

body.tbw-checkout-page .qt-instapay-plan-card strong,
body.woocommerce-order-pay .qt-instapay-plan-card strong {
  font-size: 1.1rem;
  color: var(--accent);
}

body.tbw-checkout-page .qt-instapay-plan-card small,
body.woocommerce-order-pay .qt-instapay-plan-card small {
  color: rgba(255, 255, 255, 0.65);
}

body.tbw-checkout-page .qt-instapay-plan-grid.is-locked .qt-instapay-plan-card,
body.woocommerce-order-pay .qt-instapay-plan-grid.is-locked .qt-instapay-plan-card {
  cursor: default;
}

body.tbw-checkout-page .qt-instapay-locked-note,
body.woocommerce-order-pay .qt-instapay-locked-note {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

body.tbw-checkout-page .qt-instapay-account,
body.woocommerce-order-pay .qt-instapay-account {
  position: relative;
  margin-top: 12px;
  padding: 16px;
  border: 2px dashed rgba(179, 135, 86, 0.55);
  border-radius: var(--radius-md);
  background: rgba(179, 135, 86, 0.08);
  text-align: center;
}

body.tbw-checkout-page .qt-account-label,
body.woocommerce-order-pay .qt-account-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

body.tbw-checkout-page .qt-account-number,
body.woocommerce-order-pay .qt-account-number {
  margin: 6px 0;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent);
  word-break: break-all;
}

body.tbw-checkout-page .qt-copy-transfer-number,
body.woocommerce-order-pay .qt-copy-transfer-number {
  margin: 4px auto 8px !important;
  background: transparent !important;
  border: 1px solid var(--accent) !important;
  border-radius: 50px !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  transition: var(--transition);
}

body.tbw-checkout-page .qt-copy-transfer-number:hover,
body.woocommerce-order-pay .qt-copy-transfer-number:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
}

body.tbw-checkout-page .qt-account-warning,
body.woocommerce-order-pay .qt-account-warning {
  margin: 9px 0 0 !important;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(179, 135, 86, 0.2);
  color: #f5e6d3;
  font-weight: 700;
}

body.tbw-checkout-page .qt-account-missing,
body.woocommerce-order-pay .qt-account-missing {
  padding: 10px;
  color: #fca5a5;
  font-weight: 800;
}

body.tbw-checkout-page .qt-method-instructions,
body.woocommerce-order-pay .qt-method-instructions,
body.woocommerce-checkout .qt-method-instructions {
  margin-top: 10px;
  padding: 13px 14px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

body.tbw-checkout-page .qt-method-instructions .qt-instructions-title,
body.woocommerce-order-pay .qt-method-instructions .qt-instructions-title,
body.woocommerce-checkout .qt-method-instructions .qt-instructions-title,
body.tbw-checkout-page .qt-method-instructions > strong,
body.woocommerce-order-pay .qt-method-instructions > strong,
body.woocommerce-checkout .qt-method-instructions > strong {
  color: var(--accent, #B38756);
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

body.tbw-checkout-page .qt-method-instructions .qt-instructions-list,
body.woocommerce-order-pay .qt-method-instructions .qt-instructions-list,
body.woocommerce-checkout .qt-method-instructions .qt-instructions-list {
  display: block;
  margin: 0;
  padding: 0;
}

body.tbw-checkout-page .qt-method-instructions .qt-instruction-row,
body.woocommerce-order-pay .qt-method-instructions .qt-instruction-row,
body.woocommerce-checkout .qt-method-instructions .qt-instruction-row {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

body.tbw-checkout-page .qt-method-instructions .qt-instruction-row:last-child,
body.woocommerce-order-pay .qt-method-instructions .qt-instruction-row:last-child,
body.woocommerce-checkout .qt-method-instructions .qt-instruction-row:last-child {
  margin-bottom: 0 !important;
}

body.tbw-checkout-page .qt-method-instructions .qt-instruction-num,
body.woocommerce-order-pay .qt-method-instructions .qt-instruction-num,
body.woocommerce-checkout .qt-method-instructions .qt-instruction-num {
  flex: 0 0 auto;
  min-width: 1.4em;
  font-weight: 900;
  color: var(--accent, #B38756);
  line-height: 1.75;
}

body.tbw-checkout-page .qt-method-instructions .qt-instruction-text,
body.woocommerce-order-pay .qt-method-instructions .qt-instruction-text,
body.woocommerce-checkout .qt-method-instructions .qt-instruction-text {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  line-height: 1.75;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

body.tbw-checkout-page .qt-method-instructions .qt-instruction-text b,
body.woocommerce-order-pay .qt-method-instructions .qt-instruction-text b,
body.woocommerce-checkout .qt-method-instructions .qt-instruction-text b,
body.tbw-checkout-page .qt-method-instructions .qt-instruction-text strong,
body.woocommerce-order-pay .qt-method-instructions .qt-instruction-text strong,
body.woocommerce-checkout .qt-method-instructions .qt-instruction-text strong {
  display: inline !important;
  margin: 0 !important;
  font-weight: 800;
  color: inherit;
}

/* Legacy ol markup fallback */
body.tbw-checkout-page .qt-method-instructions ol,
body.woocommerce-order-pay .qt-method-instructions ol,
body.woocommerce-checkout .qt-method-instructions ol {
  list-style: decimal !important;
  list-style-position: outside !important;
  margin: 8px 0 0 0 !important;
  padding: 0 1.5em 0 0 !important;
}

body.tbw-checkout-page .qt-method-instructions li,
body.woocommerce-order-pay .qt-method-instructions li,
body.woocommerce-checkout .qt-method-instructions li {
  display: list-item !important;
  margin: 8px 0 !important;
  padding: 0 !important;
  line-height: 1.75;
}

body.tbw-checkout-page .qt-method-instructions li::before,
body.woocommerce-order-pay .qt-method-instructions li::before,
body.woocommerce-checkout .qt-method-instructions li::before,
body.tbw-checkout-page .qt-method-instructions li::marker,
body.woocommerce-order-pay .qt-method-instructions li::marker,
body.woocommerce-checkout .qt-method-instructions li::marker {
  content: none !important;
  display: none !important;
  counter-increment: none;
}

body.tbw-checkout-page .qt-method-instructions code,
body.woocommerce-order-pay .qt-method-instructions code,
body.woocommerce-checkout .qt-method-instructions code {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent, #B38756);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Hide recipient name if old plugin markup is still present */
body.tbw-checkout-page .qt-instapay-account > p:not(.qt-account-warning),
body.woocommerce-order-pay .qt-instapay-account > p:not(.qt-account-warning),
body.woocommerce-checkout .qt-instapay-account > p:not(.qt-account-warning) {
  display: none !important;
}

body.tbw-checkout-page .qt-instapay-summary,
body.woocommerce-order-pay .qt-instapay-summary {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

body.tbw-checkout-page .qt-instapay-summary p,
body.woocommerce-order-pay .qt-instapay-summary p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

body.tbw-checkout-page .qt-instapay-summary p:last-child,
body.woocommerce-order-pay .qt-instapay-summary p:last-child {
  border-bottom: 0;
}

body.tbw-checkout-page .qt-instapay-summary .qt-instapay-pay-now,
body.woocommerce-order-pay .qt-instapay-summary .qt-instapay-pay-now {
  background: rgba(179, 135, 86, 0.15);
  font-size: 1.05em;
}

body.tbw-checkout-page .qt-instapay-summary strong,
body.woocommerce-order-pay .qt-instapay-summary strong,
body.tbw-checkout-page .qt-instapay-summary .woocommerce-Price-amount,
body.woocommerce-order-pay .qt-instapay-summary .woocommerce-Price-amount {
  color: var(--accent);
  font-weight: 800;
}

body.tbw-checkout-page .qt-instapay-box .form-row,
body.woocommerce-order-pay .qt-instapay-box .form-row {
  margin: 0 0 14px;
  padding: 0;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

body.tbw-checkout-page .qt-instapay-box label,
body.woocommerce-order-pay .qt-instapay-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

body.tbw-checkout-page .qt-instapay-box label .required,
body.woocommerce-order-pay .qt-instapay-box label .required {
  color: var(--accent);
}

body.tbw-checkout-page .qt-instapay-box .input-text,
body.woocommerce-order-pay .qt-instapay-box .input-text {
  width: 100%;
  padding: 12px 16px;
  border: none !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #fff;
  background: #FFFFFF2E;
  box-sizing: border-box;
}

body.tbw-checkout-page .qt-instapay-box .input-text:focus,
body.woocommerce-order-pay .qt-instapay-box .input-text:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(179, 135, 86, 0.35);
}

body.tbw-checkout-page .qt-instapay-box .input-text::placeholder,
body.woocommerce-order-pay .qt-instapay-box .input-text::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body.tbw-checkout-page .qt-instapay-upload-row input[type="file"],
body.woocommerce-order-pay .qt-instapay-upload-row input[type="file"] {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px dashed rgba(179, 135, 86, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-main);
  box-sizing: border-box;
}

body.tbw-checkout-page .qt-instapay-upload-row input[type="file"]::file-selector-button,
body.woocommerce-order-pay .qt-instapay-upload-row input[type="file"]::file-selector-button {
  margin-left: 10px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
}

body.tbw-checkout-page .qt-instapay-upload-status,
body.woocommerce-order-pay .qt-instapay-upload-status {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

body.tbw-checkout-page .qt-instapay-upload-status.is-loading,
body.woocommerce-order-pay .qt-instapay-upload-status.is-loading {
  color: #fcd34d;
}

body.tbw-checkout-page .qt-instapay-upload-status.is-success,
body.woocommerce-order-pay .qt-instapay-upload-status.is-success,
body.tbw-checkout-page .qt-copy-success,
body.woocommerce-order-pay .qt-copy-success {
  color: #86efac;
}

body.tbw-checkout-page .qt-instapay-upload-status.is-error,
body.woocommerce-order-pay .qt-instapay-upload-status.is-error {
  color: #fca5a5;
}

body.tbw-checkout-page .qt-instapay-final-note,
body.woocommerce-order-pay .qt-instapay-final-note {
  clear: both;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(179, 135, 86, 0.15);
  border: 1px solid rgba(179, 135, 86, 0.3);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

body.tbw-checkout-page .qt-instapay-final-note strong,
body.woocommerce-order-pay .qt-instapay-final-note strong {
  color: var(--accent);
}

@media (max-width: 767px) {
  body.tbw-checkout-page .qt-instapay-box,
  body.woocommerce-order-pay .qt-instapay-box {
    padding: 14px 12px;
  }

  body.tbw-checkout-page .qt-instapay-plan-grid,
  body.tbw-checkout-page .qt-instapay-method-grid,
  body.woocommerce-order-pay .qt-instapay-plan-grid,
  body.woocommerce-order-pay .qt-instapay-method-grid {
    grid-template-columns: 1fr;
  }

  body.tbw-checkout-page .qt-account-number,
  body.woocommerce-order-pay .qt-account-number {
    font-size: 1.35rem;
  }

  body.tbw-checkout-page .qt-method-instructions,
  body.woocommerce-order-pay .qt-method-instructions,
  body.woocommerce-checkout .qt-method-instructions {
    padding: 12px;
    text-align: right;
  }

  body.tbw-checkout-page .qt-method-instructions .qt-instruction-row,
  body.woocommerce-order-pay .qt-method-instructions .qt-instruction-row,
  body.woocommerce-checkout .qt-method-instructions .qt-instruction-row {
    margin-bottom: 14px !important;
    gap: 8px;
  }

  body.tbw-checkout-page .qt-method-instructions .qt-instruction-text,
  body.woocommerce-order-pay .qt-method-instructions .qt-instruction-text,
  body.woocommerce-checkout .qt-method-instructions .qt-instruction-text {
    font-size: 0.92rem;
    line-height: 1.8;
  }
}

/* Empty cart + shared empty states */
body.tbw-cart-page .cart-empty.woocommerce-info,
body.tbw-checkout-page .cart-empty.woocommerce-info {
  display: none !important;
}

/* Hide default WooCommerce "Return to shop" button on empty cart */
body.tbw-cart-page .return-to-shop,
body.tbw-cart-page .return-to-shop .wc-backward,
body.tbw-checkout-page .return-to-shop,
body.tbw-checkout-page .return-to-shop .wc-backward {
  display: none !important;
}

.tbw-empty-state,
.tw-empty-state {
  text-align: center;
  padding: 56px 24px 64px;
  font-family: var(--font-main, 'Cairo', sans-serif);
}

.tbw-empty-state__icon,
.tw-empty-state__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  color: var(--accent, #B38756);
}

.tbw-empty-state__icon svg,
.tw-empty-state__icon svg {
  width: 100%;
  height: 100%;
}

.tbw-empty-state__title,
.tw-empty-state__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--accent, #B38756);
}

.tbw-empty-state__desc,
.tw-empty-state__desc {
  margin: 0 auto 28px;
  max-width: 480px;
  color: var(--white, #FFFFFF);
  line-height: 1.8;
  font-size: 1rem;
}

.tbw-empty-state__cta,
.tw-empty-state__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  background: var(--accent, #B38756);
  color: var(--white, #fff) !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition, 0.25s ease);
  box-shadow: 0 4px 16px rgba(179, 135, 86, 0.35);
}

.tbw-empty-state__cta:hover,
.tw-empty-state__cta:hover {
  background: var(--accent-dark, #9A7045);
  transform: translateY(-2px);
}

.tw-wishlist-page .tw-empty-state {
  padding: 48px 16px 32px;
}

@media (max-width: 600px) {
  .tbw-empty-state,
  .tw-empty-state {
    padding: 40px 16px 48px;
  }
}

@media (max-width: 768px) {
  body.tbw-checkout-page .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  body.tbw-checkout-page .tbw-checkout-section {
    padding: 20px;
  }
}

/* ——— Order received / thank you ——— */
body.tbw-order-received-page .woocommerce-order {
  margin: 0 0 24px;
  background: transparent;
  border-radius: var(--radius-lg, 24px);
  padding: 32px;
}

body.tbw-order-received-page .woocommerce-order-details,
body.tbw-order-received-page .woocommerce-customer-details {
  background: #212940;
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-card, 0 4px 20px rgba(0, 0, 0, 0.08));
  padding: 32px;
  margin-bottom: 24px;
}

body.tbw-order-received-page .tbw-order-received-layout {
  margin: 0 auto;
}

body.tbw-order-received-page .tbw-order-received-card {
  display: none;
}

body.tbw-order-received-page .woocommerce-notice--success.woocommerce-thankyou-order-received {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md, 16px);
  background: #212940;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

body.tbw-order-received-page .woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border: none;
  box-sizing: border-box;
  float: none;
}

body.tbw-order-received-page .woocommerce-order-overview::before,
body.tbw-order-received-page .woocommerce-order-overview::after {
  content: none !important;
  display: none !important;
}

body.tbw-order-received-page .woocommerce-order-overview li {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm, 8px);
  background: #212940;
  font-size: 0.85rem;
  color: #fff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  float: none !important;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.tbw-order-received-page .woocommerce-order-overview li strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: #B38756;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.tbw-order-received-page .woocommerce-order-overview__email strong {
  direction: ltr;
  unicode-bidi: plaintext;
}

body.tbw-order-received-page .tbw-order-received-deposit {
  margin: 0 0 28px;
  padding: 20px;
  border-radius: var(--radius-md, 16px);
  background: #212940;
}

body.tbw-order-received-page .tbw-order-received-deposit .summary-deposit-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.6;
}

body.tbw-order-received-page .tbw-order-received-deposit__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: #fff;
}

body.tbw-order-received-page .tbw-order-received-deposit__row--highlight {
  font-weight: 700;
}

body.tbw-order-received-page .tbw-order-received-deposit__row span {
    color: var(--white);
}

body.tbw-order-received-page .tbw-order-received-deposit__row .woocommerce-Price-amount.amount, body.tbw-order-received-page .tbw-order-received-deposit__row .woocommerce-Price-currencySymbol{
    color: var(--accent);
}


body.tbw-order-received-page .woocommerce-order-details {
  margin-top: 8px;
}

body.tbw-order-received-page .woocommerce-order-details__title,
body.tbw-order-received-page .woocommerce-column__title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #B38756;
}

body.tbw-order-received-page .woocommerce-table--order-details,
body.tbw-order-received-page .woocommerce-customer-details address,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table {
  border: none;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  width: 100%;
}

body.tbw-order-received-page .woocommerce-table--order-details th,
body.tbw-order-received-page .woocommerce-table--order-details td,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table th,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table td {
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

/* Keep native table layout (do not break into stacked boxes on mobile) */
body.tbw-order-received-page .woocommerce-table--order-details,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table {
  display: table !important;
  width: 100% !important;
  table-layout: auto;
}

body.tbw-order-received-page .woocommerce-table--order-details thead,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table thead {
  display: table-header-group !important;
}

body.tbw-order-received-page .woocommerce-table--order-details tbody,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table tbody {
  display: table-row-group !important;
}

body.tbw-order-received-page .woocommerce-table--order-details tfoot {
  display: table-footer-group !important;
}

body.tbw-order-received-page .woocommerce-table--order-details tr,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table tr {
  display: table-row !important;
}

body.tbw-order-received-page .woocommerce-table--order-details th,
body.tbw-order-received-page .woocommerce-table--order-details td,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table th,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table td {
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
}

/* Labels (right in RTL) = secondary, values (left in RTL) = white */
body.tbw-order-received-page .woocommerce-table--order-details th,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table th {
  color: var(--accent, #B38756) !important;
  font-weight: 700;
  background: transparent;
}

body.tbw-order-received-page .woocommerce-table--order-details td,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table td,
body.tbw-order-received-page .woocommerce-table--order-details td a,
body.tbw-order-received-page .woocommerce-table--order-details td .woocommerce-Price-amount,
body.tbw-order-received-page .woocommerce-table--order-details td .woocommerce-Price-currencySymbol,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table td .woocommerce-Price-amount,
body.tbw-order-received-page .qt-instapay-customer-summary .woocommerce-table td .woocommerce-Price-currencySymbol {
  color: #fff !important;
}

body.tbw-order-received-page .woocommerce-table--order-details tfoot th {
  color: var(--accent, #B38756) !important;
}

body.tbw-order-received-page .woocommerce-table--order-details tfoot td {
  color: #fff !important;
}

body.tbw-order-received-page .woocommerce-customer-details {
  margin-top: 28px;
}

body.tbw-order-received-page .woocommerce-customer-details address {
  padding: 20px;
  background: #212940;
  font-style: normal;
  line-height: 1.8;
  color:#fff;
}

body.tbw-order-received-page .woocommerce-customer-details--phone,
body.tbw-order-received-page .woocommerce-customer-details--email {
  display: none;
}

body.tbw-order-received-page .tbw-billing-address-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.tbw-order-received-page .tbw-billing-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  line-height: 1.9;
  margin-bottom: 4px;
}

body.tbw-order-received-page .tbw-billing-label {
  color: #fff !important;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

body.tbw-order-received-page .tbw-billing-value {
  color: var(--accent, #B38756) !important;
  font-weight: 600;
}

body.tbw-order-received-page .woocommerce-order > p,
body.tbw-order-received-page .woocommerce-thankyou-order-received + p,
body.tbw-order-received-page .woocommerce-order .woocommerce-notice {
  color: #fff !important;
}

body.tbw-order-received-page .tbw-order-received-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body.tbw-order-received-page .tbw-order-received-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition, 0.25s ease);
}

body.tbw-order-received-page .tbw-order-received-actions__primary {
  background: var(--accent, #b38756);
  color: var(--white, #fff) !important;
  box-shadow: 0 4px 16px rgba(179, 135, 86, 0.35);
}

body.tbw-order-received-page .tbw-order-received-actions__primary:hover {
  background: var(--accent-dark, #9a7045);
  transform: translateY(-2px);
}

body.tbw-order-received-page .tbw-order-received-actions__secondary {
  background: #212940;
  color: #fff !important;
}


@media (max-width: 992px) {
  body.tbw-order-received-page .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tbw-order-received-page .woocommerce-order-overview li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  body.tbw-order-received-page .woocommerce-order,
  body.tbw-order-received-page .woocommerce-order-details,
  body.tbw-order-received-page .woocommerce-customer-details {
    padding: 20px;
  }

  body.tbw-order-received-page .woocommerce-order-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.tbw-order-received-page .woocommerce-order-overview li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
  }

  body.tbw-order-received-page .woocommerce-order-overview li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  body.tbw-order-received-page .woocommerce-order-overview li strong {
    display: inline-block;
    margin-top: 0;
    text-align: start;
    max-width: 65%;
    line-height: 1.45;
  }

  body.tbw-order-received-page .tbw-order-received-actions {
    flex-direction: column;
  }

  body.tbw-order-received-page .tbw-order-received-actions .btn {
    width: 100%;
  }
}