/* --- Cart & Checkout --- */
.cart-checkout-container {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.cart-section {
  background-color: #333; /* Changed to solid black-gray */
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  color: #fff; /* Changed to white for readability */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cart-section h1 {
  text-align: center;
  margin-top: -1rem; /* Lift up the heading */
}

.checkout-section h1 {
  text-align: center;
}

.cart-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 1.5rem; /* Added gap between heading and buttons */
  margin-bottom: 20px;
}

.cart-controls .clear-btn,
.cart-controls .continue-btn {
  flex: 1;
  max-width: 250px;
  padding: 5px 20px; /* Changed from 8px to 5px */
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.clear-btn {
  background-color: #ffc107;
  color: #333;
}

.continue-btn {
  background-color: #ff5722;
  color: white;
  text-decoration: none;
}

.empty-cart-message {
  text-align: center;
  padding: 2rem 0;
}

.empty-cart-message p {
  font-size: 1rem;
  margin-bottom: 1rem;
}



.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  border-bottom: 1px solid #ccc;
  color: #fff; /* Changed from #000 to #fff */
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quantity-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.quantity-btn:hover {
  background-color: #f5f5f5;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ff3333;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: #cc0000;
  transform: scale(1.1);
}

.cart-item span {
  font-size: 0.7rem;
  font-weight: normal;
}

.cart-item .cart-item-info .cart-item-name,
.cart-item .cart-item-price,
.cart-item .cart-item-quantity,
.cart-item-options {
  color: #fff; /* Changed from #000 to #fff */
}

.order-summary {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem; /* Space when stacked on mobile */
  color: #fff;
}

.cart-summary {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: 1rem;
}

.cart-summary-block .delivery-options {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-label {
  color: #fff; /* Changed from #000 to #fff */
}

.summary-row span:not(.summary-label) {
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.summary-row.total {
  font-size: 0.8rem;
  font-weight: bold; /* Assuming user wants total to be bold */
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.checkout-btn, .pay-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1.2rem; /* Changed from 0.3rem to 0.6rem */
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1.2rem;
  text-align: center;
}

.checkout-btn:hover, .pay-btn:hover {
  background-color: #e04a2d;
  transform: translateY(-2px);
}

.delivery-options {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.delivery-option-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f3f3f3;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
}

.delivery-option-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.form-group {
  margin-bottom: 0.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 500;
  text-align: left !important;
  font-size: 0.85rem; /* Added */
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.2rem; /* Further reduced for smaller height */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.9rem; /* Added */
  color: var(--dark-text);
}

  color: var(--dark-text);
  color: var(--dark-text);
  color: var(--dark-text);
  color: var(--dark-text);
  color: var(--dark-text);

.form-group select {
  background: #333;
  color: #fff;
}

.form-group select option {
  background: #333;
  color: #fff;
}

.stripe-card-element {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.stripe-card-errors {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.customer-info h2 {
  margin-bottom: 0.8rem; /* Reduced */
  text-align: center;
  font-size: 1.2rem; /* Added */
}

/* Checkout Grid Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to single column on small screens */
  gap: 1.5rem; /* Space between sections */
  margin-top: 1.5rem; /* Add some top top */
}

@media (min-width: 768px) { /* For tablets and desktops */
  .checkout-grid {
    grid-template-columns: 1fr 1fr; /* Equal width columns */
    gap: 2rem;
  }
}

/* Adjust margin for order-summary on larger screens */
@media (min-width: 768px) {

}

/* Styling for individual form sections within checkout */
.customer-info, .payment-section {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem; /* Space when stacked on mobile */
  color: #fff;
}

.customer-info h2, .payment-section h3 {
  color: #fff;
}

.form-group label {
  color: #fff;
}

/* Remove bottom margin for the last section in customer-forms */
.customer-forms .payment-section:last-child {
  margin-bottom: 0;
}

/* Adjust padding for checkout-section if needed, to avoid double padding */
.checkout-section {
  padding: 1rem;
  background: none;
  box-shadow: none;
}

/* Ensure form content is left-aligned */
.customer-info form {
  text-align: left;
}

.cart-item-info {
  line-height: 1.2;
}

.suggest-heading {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Styles for After Hours Notice */
.after-hours-notice {
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  border: 1px solid #ff9800; /* Orange border */
  padding: 25px; /* Increased padding for better overlay look */
  border-radius: 8px;
  text-align: center;
  position: absolute; /* Changed to absolute */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for true centering */
  z-index: 1000; /* Ensure it's on top */
  max-width: 80%; /* Limit width to prevent overflow on small screens */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.after-hours-notice p {
  color: #d32f2f; /* Red text */
  font-weight: bold;
  margin: 0;
  font-size: 0.72em; /* Reduced by 40% from 1.2em */
}

.delivery-distance-notice {
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  border: 1px solid #ff9800; /* Orange border */
  padding: 25px; /* Increased padding for better overlay look */
  border-radius: 8px;
  text-align: center;
  position: absolute; /* Changed to absolute */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for true centering */
  z-index: 1000; /* Ensure it's on top */
  max-width: 80%; /* Limit width to prevent overflow on small screens */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.delivery-distance-notice p {
  color: #d32f2f; /* Red text */
  font-weight: bold;
  margin: 0;
  font-size: 0.72em; /* Reduced by 40% from 1.2em */
}

.close-notice-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #d32f2f; /* Red color for the X */
  font-weight: bold;
}

.close-notice-btn:hover {
  color: #b71c1c; /* Darker red on hover */
}

@keyframes cart-blast {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

.sticky-cart-icon.cart-blast {
  animation: cart-blast 0.5s ease-out;
}





.go-to-menu-button {
    background-color: #ffc107; /* Example color, adjust to theme */
    color: #333;
}

.customer-info .form-group-row {
    display: flex;
    gap: 0.5rem;
}

.customer-info .form-group-row .form-group-half {
    flex: 1;
    display: flex;
    align-items: center;
}

.customer-info .form-group-row .form-group-half input,
.customer-info .form-group-row .form-group-half select {
    width: 100%;
    box-sizing: border-box;
}

.schedule-container {
    margin-bottom: 1rem;
}

.schedule-header {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
}

.schedule-header h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.schedule-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.low-opacity-placeholder::placeholder {
  opacity: 0.6;
}

@media (max-width: 767px) {
  #pickup-form .form-group input,
  #pickup-form .form-group select,
  #delivery-form .form-group input,
  #delivery-form .form-group select,
  #delivery-form #location-type,
  .payment-section #name-on-card {
    padding: 0.6rem; /* Increased padding for larger height */
    font-size: 1rem; /* Increased font size */
  }
}
