/* WooCommerce Styles */


/* Container max-width */
.container {
  max-width: 1540px;
}

/* Header */
.main-header {
  height: var(--header-height);
  background: transparent;
  border-bottom: none;
  transition: all 0.3s ease;
}
.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.main-header.scrolled button:not(.view-order-btn),
.main-header.scrolled input {
  color: #202125 !important;
}
.main-header.scrolled svg {
  fill: #202125;
}
.main-header.scrolled .view-order-btn,
.main-header.scrolled .view-order-btn * {
  color: #fff !important;
}
.navbar-brand svg { height: 24px; }
.navbar-brand img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
.main-header.scrolled .navbar-brand img {
  filter: none;
}

/* Search input styles */
.search-wrapper {
  width: 260px;
  max-width: 700px;
  height: 2.5rem;
  border-radius: 1.25rem;
  position: relative;
  color: #fff;
  backdrop-filter: blur(8px);
}


.search-input {
  box-sizing: border-box;
  color: inherit;
  width: 100%;
  max-width: 100%;
  height: 2.5rem;
  caret-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 1.25rem;
  margin: 0;
  padding: 0;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  font-size: 1rem;
  transition: background-color 0.15s linear;
  border: none;
  outline: none;
  box-shadow: 0 0 0 3px transparent;
}

.search-input:hover {
  background: rgba(255, 255, 255, 0.28);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.28);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s linear;
}

.search-input:focus::placeholder {
  color: transparent;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 0.15s linear;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: block;
}

.search-clear-btn {
  border-radius: 50%;
  cursor: pointer;
  width: 100%;
  height: 100%;
  color: inherit;
  transform: scale(0);
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.1s ease-in;
}

.search-clear-btn:not(:disabled) {
  transform: scale(1);
}

.search-clear-btn:hover:not(:disabled) {
  opacity: 0.88;
}

.search-clear-btn:active:not(:disabled) {
  opacity: 0.72;
}

/* Hide duplicate clear buttons if any */
.search-clear-btn:nth-of-type(n+2) {
  display: none !important;
}

/* Hide browser's default search clear button */
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* For Firefox */
.search-input[type="search"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* For IE/Edge */
.search-input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

/* Language Selector Styles */
#languageDropdown {
  transition: all 0.2s ease;
}

#languageDropdown:hover {
  background: rgba(255, 255, 255, 0.24) !important;
}

.language-text {
  font-weight: 600;
  font-size: 0.875rem;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  margin-top: 8px;
}

.dropdown-item {
  padding: 8px 16px;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item:active {
  background-color: #e9ecef;
}

.flag-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Scrolled header language selector */
.main-header.scrolled #languageDropdown {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #202125 !important;
}

.main-header.scrolled #languageDropdown:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

.main-header.scrolled #languageDropdown svg {
  fill: #202125;
}

.main-header.scrolled .search-input {
  background: rgba(0, 0, 0, 0.05);
  color: #202125;
}

.main-header.scrolled .search-input:hover {
  background: rgba(0, 0, 0, 0.08);
}

.main-header.scrolled .search-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.main-header.scrolled .search-wrapper {
  color: #202125;
}

/* View order button */
.view-order-btn-wrapper {
  margin-left: 12px;
}
.view-order-btn {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  max-width: 100%;
  padding: 0 var(--cb-space-regular-xlarge);
  border-radius: var(--cb-corner-radius-medium);
  box-shadow: none;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  min-height: 46px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0 1.25rem;
  border-radius: 8px;
}
.view-order-btn-bg {
  background: var(--primary-color);
  position: absolute;
  inset: 0;
  transition: background 0.15s linear;
}
.view-order-btn:hover .view-order-btn-bg {
  background: var(--primary-hover);
}
.view-order-btn:active .view-order-btn-bg {
  background: var(--primary-active);
}
.view-order-btn-content {
  z-index: 1;
  opacity: 1;
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 0.75rem;
}
.view-order-count {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.view-order-text {
  display: flex;
  flex-direction: column;
}
.view-order-label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
}
.view-order-price {
  font-size: 1rem;
  font-weight: 700;
}

/* Mobile responsive styles for view order button */
@media (max-width: 991.98px) {
  .view-order-btn-wrapper {
    margin-left: 8px;
  }
  
  .view-order-btn {
    min-height: 40px;
    padding: 0 0.875rem;
    font-size: 0.875rem;
  }
  
  .view-order-btn-content {
    gap: 0.5rem;
  }
  
  .view-order-count {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
  }
  
  .view-order-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .view-order-price {
    font-size: 0.875rem;
  }
}

@media (max-width: 575.98px) {
  .view-order-btn-wrapper {
    margin-left: 4px;
  }
  
  .view-order-btn {
    min-height: 36px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }
  
  .view-order-btn-content {
    gap: 0.375rem;
  }
  
  .view-order-count {
    width: 1.125rem;
    height: 1.125rem;
    font-size: 0.6875rem;
  }
  
  .view-order-label {
    font-size: 0.8125rem;
    line-height: 1.125rem;
  }
  
  .view-order-price {
    font-size: 0.8125rem;
  }
}

/* Hero venue header */
.venue-hero {
  position: relative;
  height: clamp(330px, 20vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  overflow: hidden;
}
.venue-hero-img {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(360px, 20vh, 620px) !important;
  max-width: auto !important;
  object-fit: cover;
  transform: translateY(-50%);
  z-index: 0;
}
.venue-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}
.venue-logo {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.venue-info {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.5rem 0;
}
.venue-info h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #fff;
}
.venue-info p {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 0;
}
.venue-toolbar {
  background: #fff;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
@media (max-width: 639px) {
  .venue-hero {
    height: auto;
    min-height: 360px;
  }
  .venue-hero-img {
    height: clamp(360px, 20vh, 620px);
  }
}

/* Sticky category nav */
.sticky-category-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 1020;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0.75rem 0;
}
.category-nav-wrapper {
  position: relative;
}
.category-nav-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 2;
  border: none;
  background: #fff;
  color: #202125;
}
.category-nav-btn svg {
  width: 20px;
  height: 20px;
}
.category-nav-btn:hover:not(:disabled) {
  color: var(--primary-color);
}
.category-nav-btn:disabled {
  display: none !important;
  pointer-events: none;
  cursor: default;
}
#categoryPrevBtn {
  left: 0;
  padding-left: 0;
  padding-right: 12px;
  justify-content: flex-end;
  background: linear-gradient(to right, #fff 50%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0) 100%);
}
#categoryNextBtn {
  right: 0;
  padding-left: 12px;
  padding-right: 0;
  justify-content: flex-start;
  background: linear-gradient(to left, #fff 50%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0) 100%);
}
.category-chips-container {
  overflow: hidden;
}
.category-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  position: relative;
}

a.category-chip img.emoji {
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  flex: 0 0 1em !important;         
  margin: 0 !important;
  vertical-align: middle !important;
  object-fit: contain !important;
}

.category-chips.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.category-chips::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .category-nav-btn { display: none; }
}
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  color: #202125;
  text-decoration: none;
  transition: all 0.2s;
  pointer-events: auto;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.category-chip:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.category-chip.active {
  background: #ebf7fd;
  color: var(--primary-color);
  font-weight: bold;
}

/* Search bar */
.search-container {
  padding: 1rem 0;
  background: #fff;
}

/* Discount banners */
.discount-banners {
  padding: 2rem 0 1rem;
}
.discount-card {
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.45, 0, .55, 1);
}
.discount-card:hover {
  transform: scale(1.03);
}
.discount-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

/* Horizontal scroll section */
.horizontal-scroll-section {
  padding: 2rem 0;
}
.horizontal-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

/* Item cards */
.item-card {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  cursor: pointer;
  min-width: 280px;
  flex-shrink: 0;
}
.item-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.item-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.item-card-body {
  padding: 1rem;
}
.item-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.item-card-desc {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card-price {
  font-weight: 600;
  font-size: 1rem;
}

/* Menu sections */
.menu-section {
  padding: 2rem 0;
}
.menu-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.menu-item {
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0;
  transition: transform .25s cubic-bezier(.45, 0, .55, 1), box-shadow 0.2s;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.08);
  min-height: 140px;
}
.menu-item:hover {
  box-shadow: 0 0 6px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.08);
  transform: scale(1.03);
}
.menu-item .flex-grow-1 {
  display: flex;
  flex-direction: column;
}
.menu-item .flex-grow-1 > div:last-child {
  margin-top: auto;
}
.menu-item-img-wrapper {
  border-radius: 12px;
  width: 10.875rem;
  height: 7.25rem;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.menu-item-img {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

/* Add to cart button */
.menu-item-add-btn-wrapper {
  position: absolute;
  top: 0.75rem;
  right: 0;
  z-index: 2;
  padding: 0;
}
@media (min-width: 640px) {
  .menu-item-add-btn-wrapper {
    right: 0.75rem;
  }
}
.menu-item-add-btn {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: none;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 24px;
  width: 2.875rem;
  height: 2.75rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.15s linear;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.menu-item-add-btn svg {
  width: 2rem;
  height: 2rem;
  padding: 0.375rem;
  border-radius: 50%;
  transition: transform 50ms cubic-bezier(.4,0,.2,1);
  transform: scale(1);
}
.menu-item-add-btn:hover svg {
  transform: scale(1.08);
}
.menu-item-add-btn:active svg {
  transform: scale(0.8);
}

/* Quantity badge */
.menu-item-quantity-badge {
  background-color: var(--primary-color);
  border-top-right-radius: 12px;
  border-bottom-left-radius: 24px;
  width: 2.875rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s linear;
}
.menu-item-quantity-badge:hover {
  background-color: var(--primary-hover);
}
.quantity-number {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

/* Cart Error States - Copy exact from asia-ho-theme */
.woocommerce-cart-error {
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.woocommerce-cart-error-header {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    background: rgba(255, 243, 205, 0.1);
    border: 1px solid rgba(255, 234, 167, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.woocommerce-cart-error-icon {
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.woocommerce-cart-error-message {
    font-size: 16px;
    color: #e74c3c;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
    font-family: Poppins, sans-serif;
}

/* Opening Hours - Simple styling */
.woocommerce-opening-hours {
    margin-top: 15px;
    color: #333;
}

.woocommerce-opening-hours h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.woocommerce-hours-item {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.woocommerce-hours-item strong {
    font-weight: 600;
    color: #333;
}

.woocommerce-next-opening {
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

/* Cart Warning - Some items unavailable */
.woocommerce-cart-warning {
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
}

.woocommerce-cart-warning-header {
    display: flex;
    align-items: flex-start;
}

.woocommerce-cart-warning-icon {
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.woocommerce-cart-warning-message {
    font-size: 14px;
    color: #856404;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

/* Unavailable items */
.cart-item.unavailable {
    opacity: 0.7;
}

.woocommerce-unavailable-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

.woocommerce-unavailable-overlay small {
    font-size: 11px;
    font-weight: 600;
}

/* Cart styles */
.wolt-plus-badge {
  background: linear-gradient(125deg, #AF65E3 15%, #17498F 76%);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
}

/* Cart sidebar */
.cart-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: fit-content;
}

@media (max-width: 991px) {
  .cart-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1rem;
  }
}

/* Cart item animation */
.cart-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Variable Product Modal */
#variableProductModal .modal-content {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#variableProductModal .modal-header {
  padding: 1rem 1.5rem;
  position: relative;
}

#variableProductModal .modal-header .btn-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  padding: 0.75rem;
  margin: 0;
  width: 40px;
  height: 40px;
  background-size: 18px;
  opacity: 0.8;
  border-radius: 50%;
  transition: all 0.2s ease;
}

#variableProductModal .modal-header .btn-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

#variableProductModal .modal-header .btn-close:active {
  transform: scale(0.95);
}

#variableProductModal .modal-body {
  padding: 1.5rem 2rem 2rem;
}

#variableProductModal .variation-option {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid #dee2e6;
}

#variableProductModal .variation-option:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--primary-light);
}

#variableProductModal .variation-option.active {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
}

#variableProductModal .variation-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

#variableProductModal #variationQuantity {
  border-left: none;
  border-right: none;
}

#variableProductModal #addVariationToCart:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  #variableProductModal .modal-dialog {
    margin: 0.5rem;
  }
  
  #variableProductModal .modal-body {
    padding: 1rem;
  }
}

/* Checkout Styles */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Checkout Form */
.checkout-section {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #202125;
}

.form-label {
  font-weight: 600;
  color: #202125;
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.75rem;
  font-size: 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 157, 224, 0.25);
}

/* Order Summary */
.order-summary {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.order-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.order-item-image-placeholder {
  width: 60px;
  height: 60px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.order-item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.order-item-quantity {
  color: #666;
  font-size: 0.875rem;
}

.order-total {
  padding-top: 1rem;
  border-top: 2px solid #202125;
  margin-top: 1rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.total-row.final {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Payment Methods */
.payment-method {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method:hover {
  border-color: var(--primary-color);
}

.payment-method.active {
  border-color: var(--primary-color);
  background: rgba(0, 157, 224, 0.05);
}

.payment-method input[type="radio"] {
  margin-right: 0.75rem;
}

.payment_box {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Back to Home Button */
.checkout-header-actions {
  margin-bottom: 1.5rem;
}

.btn-back-home {
  display: inline-block;
  padding: 10px 20px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid #dee2e6;
}

.btn-back-home:hover {
  background: #e9ecef;
  color: #000;
  text-decoration: none;
  border-color: #adb5bd;
}

.woocommerce-order-back-home-wrapper {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: right;
}

.woocommerce-order-back-home-wrapper .btn-back-home {
  display: inline-block;
  padding: 10px 20px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid #dee2e6;
}

.woocommerce-order-back-home-wrapper .btn-back-home:hover {
  background: #e9ecef;
  color: #000;
  text-decoration: none;
  border-color: #adb5bd;
}

/* Place Order Button */
.btn-place-order {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  transition: background 0.2s;
  cursor: pointer;
}

.btn-place-order:hover {
  background: var(--primary-hover);
}

.btn-place-order:active {
  background: var(--primary-active);
}

.btn-place-order:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Delivery Time */
.delivery-time-option {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.delivery-time-option:hover {
  border-color: var(--primary-color);
}

.delivery-time-option.active {
  border-color: var(--primary-color);
  background: rgba(0, 157, 224, 0.05);
}

.delivery-time-option input[type="radio"] {
  margin-right: 0.75rem;
}

.scheduled-delivery-fields {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Checkout Fields */
.checkout-fields .form-row {
  margin-bottom: 1rem;
}

.checkout-fields .form-row-wide {
  width: 100%;
}

.checkout-fields .form-row-first,
.checkout-fields .form-row-last {
  width: 48%;
  display: inline-block;
}

.checkout-fields .form-row-first {
  margin-right: 4%;
}

.checkout-fields input[type="text"],
.checkout-fields input[type="email"],
.checkout-fields input[type="tel"],
.checkout-fields select,
.checkout-fields textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.checkout-fields input:focus,
.checkout-fields select:focus,
.checkout-fields textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 157, 224, 0.25);
  outline: none;
}

/* Shipping Methods */
.shipping-methods ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shipping-methods li {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.shipping-methods li:hover {
  border-color: var(--primary-color);
}

.shipping-methods li input[type="radio"]:checked + label {
  color: var(--primary-color);
  font-weight: 600;
}

.shipping-methods li:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background: rgba(0, 157, 224, 0.05);
}

.shipping-methods input[type="radio"] {
  margin-right: 0.75rem;
}

.shipping-methods label {
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Place Order Button - Bootstrap Style */
#place_order {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  text-transform: none;
  letter-spacing: normal;
}

#place_order:hover {
  background: #0088cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 157, 224, 0.3);
}

#place_order:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 157, 224, 0.2);
}

#place_order:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Coupon Form */
.checkout_coupon.woocommerce-form-coupon {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.checkout_coupon .form-row {
  margin: 0;
  flex: 1;
}

.checkout_coupon .form-row-first {
  flex: 2;
}

.checkout_coupon .form-row-last {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.checkout_coupon .input-text {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.3s ease;
}

.checkout_coupon .input-text:focus {
  outline: none;
  border-color: #009de0;
  box-shadow: 0 0 0 3px rgba(0, 157, 224, 0.1);
}

.checkout_coupon .button,
.checkout_coupon button[name="apply_coupon"] {
  width: 100% !important;
  padding: 0.75rem 1.5rem !important;
  background: #009de0 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
}

.checkout_coupon .button:hover,
.checkout_coupon button[name="apply_coupon"]:hover {
  background: #007bb8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 157, 224, 0.3) !important;
}

.checkout_coupon .clear {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout_coupon.woocommerce-form-coupon {
    flex-direction: column;
    gap: 1rem;
  }
  
  .checkout_coupon .form-row-first,
  .checkout_coupon .form-row-last {
    flex: none;
  }
}

/* Terms and Conditions */
.woocommerce-terms-and-conditions-wrapper {
  margin: 1rem 0;
}

.woocommerce-terms-and-conditions-checkbox-text {
  font-size: 0.875rem;
  color: #666;
}

/* Hide duplicate elements */
.store-info-section:not(:first-of-type) {
  display: none !important;
}

.order-summary #payment {
  display: none !important;
}


.checkout-page-content .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 1rem 2rem;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-page-content .woocommerce {
    padding: 0 0.5rem 1rem;
  }
  
  .order-summary {
    position: static;
    margin-top: 2rem;
  }
  
  .checkout-fields .form-row-first,
  .checkout-fields .form-row-last {
    width: 100%;
    margin-right: 0;
  }
  
  .checkout-section {
    padding: 1rem;
  }
}

/* Order Received / Thank You Page Styling - Neutral Theme */
.woocommerce-order {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Thank You Notice - Neutral */
.woocommerce-notice--success.woocommerce-thankyou-order-received {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.2);
}

/* Order Overview */
.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
}

.woocommerce-order-overview li {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #6b7280;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
}

.woocommerce-order-overview li strong {
  display: block;
  font-size: 1.2rem;
  color: #374151;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Order Details Section */
.woocommerce-order-details {
  margin: 2rem 0;
}

.woocommerce-order-details__title {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6b7280;
  font-weight: 600;
}

/* Order Details Table */
.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.woocommerce-table--order-details thead th {
  background: #374151;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce-table--order-details tbody tr:hover {
  background: #f8f9fa;
}

.woocommerce-table--order-details .product-name a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.woocommerce-table--order-details .product-name a:hover {
  color: #6b7280;
}

.woocommerce-table--order-details .product-quantity {
  color: #9ca3af;
  font-weight: normal;
}

.woocommerce-table--order-details .product-total {
  text-align: right;
  font-weight: 600;
  color: #374151;
}

/* Table Footer */
.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
  background: #f8f9fa;
  font-weight: 600;
  border-bottom: none;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
  background: #374151;
  color: white;
  font-size: 1.1rem;
}

/* Customer Details */
.woocommerce-customer-details {
  margin: 2rem 0;
}

.woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.woocommerce-column__title {
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6b7280;
  font-weight: 600;
}

.woocommerce-customer-details address {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #6b7280;
  line-height: 1.6;
  font-style: normal;
  border: 1px solid #e5e7eb;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
  margin-top: 0.5rem;
  font-weight: 500;
  color: #374151;
}

/* Set width for billing address column */
.woocommerce-column.col-1,
.woocommerce-column.col-2 {
  width: 100%;
}

.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
  float: none;
  width: 100%;
}

.woocommerce ul.order_details::after, .woocommerce ul.order_details::before,
.woocommerce .col2-set::after, .woocommerce .col2-set::before, .woocommerce-page .col2-set::after, .woocommerce-page .col2-set::before {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .woocommerce-order {
    padding: 1rem;
    margin: 1rem;
  }
  
  .woocommerce-order-overview {
    grid-template-columns: 1fr;
  }
  
  .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .woocommerce-table--order-details {
    font-size: 0.9rem;
  }
  
  .woocommerce-table--order-details th,
  .woocommerce-table--order-details td {
    padding: 0.75rem 0.5rem;
  }
}
.woocommerce-content {
  background-color: #f9f9f9;
}

.woocommerce form .form-row textarea {
  height: 6rem !important;
}

.woocommerce form .woocommerce-shipping-fields {
  display: none !important;
}

.woocommerce-billing-fields h3 {
  display: none !important;
}

/* Checkout Methods Row - Shipping & Payment in same row */
.checkout-methods-row {
  display: flex;
  gap: 2rem;
}

.checkout-section-half {
  flex: 1;
  min-width: 0; /* Prevent flex items from overflowing */
}

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
  .checkout-methods-row {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Payment Method Styling - Match FTD Neutral Theme */
.method-column {
  flex: 1;
  min-width: 0;
}

.checkout .title {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.checkout .title .title-icon {
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout .title .title-icon svg {
  color: inherit;
  height: 1.2rem;
  width: 1.2rem;
}

/* Payment methods container */
.woocommerce-checkout-payment {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
}

.payment-methods {
  margin: 0;
}

/* Hide default WooCommerce coupon toggle */
.woocommerce-form-coupon-toggle {
  display: none !important;
}

/* Coupon Section - Simple styling */
.coupon-form-wrapper {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Force coupon elements to be visible - no form tag in structure */
.coupon-form-wrapper,
.coupon-form-wrapper .form-row,
.coupon-form-wrapper input,
.coupon-form-wrapper button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

/* Ensure form fields are inline */
.coupon-form-wrapper .form-row {
  display: inline-block !important;
}

.coupon-form-wrapper .form-row-first,
.coupon-form-wrapper .form-row-last {
  display: inline-block;
  vertical-align: top;
  margin: 0;
}

.coupon-form-wrapper .form-row-first {
  width: 70% !important;
  margin-right: 0.75rem !important;
}

.coupon-form-wrapper .form-row-last {
  width: calc(30% - 0.75rem) !important;
}

.coupon-form-wrapper input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: #ffffff;
  box-sizing: border-box;
}

.coupon-form-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.coupon-form-wrapper button {
  width: 100%;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.coupon-form-wrapper button:hover {
  background: #2563eb;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .coupon-form-wrapper .form-row-first,
  .coupon-form-wrapper .form-row-last {
    display: block;
    width: 100% !important;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .coupon-form-wrapper .form-row-last {
    margin-bottom: 0;
  }
}