/**
 * Brunch Box Customization Page Styles
 * WordPress Plugin Ready - Vanilla CSS
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Annuler les contraintes de largeur WordPress */
.is-layout-constrained > .brunchy-customize-wrapper,
.is-layout-constrained .brunchy-customize-wrapper {
  max-width: none !important;
}

/* Container */
.brunchy-customize-wrapper {
  min-height: 100vh;
  background-color: #f9fafb;
  padding: 2rem 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: -2rem 0 0 0 !important; /* Annuler les marges WordPress */
  width: 100vw !important;
  max-width: none !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.brunchy-customize-wrapper * {
  box-sizing: border-box;
}

/* Réinitialiser les styles WordPress qui peuvent interférer */
.brunchy-customize-wrapper p,
.brunchy-customize-wrapper h1,
.brunchy-customize-wrapper h2,
.brunchy-customize-wrapper h3,
.brunchy-customize-wrapper h4 {
  margin: 0;
  padding: 0;
}

.brunchy-customize-wrapper img {
  max-width: 100%;
  height: auto;
}

/* Back Button */
.brunchy-back-button {
  margin: 0 auto 1.5rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

@media (min-width: 1440px) {
  .brunchy-back-button {
    max-width: 1600px;
  }
}

.back-link {
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: #000;
}

/* Breadcrumb */
.brunchy-breadcrumb {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 1400px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .brunchy-breadcrumb {
    margin: 0 2rem 2rem 2rem;
  }
}

@media (min-width: 1440px) {
  .brunchy-breadcrumb {
    max-width: 1600px;
  }
}

.breadcrumb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 42rem;
  margin: 0 auto;
}

.breadcrumb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #d1d5db;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.breadcrumb-step.completed .step-circle,
.breadcrumb-step.active .step-circle {
  background-color: #000;
  color: #fff;
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.breadcrumb-step.active .step-label {
  color: #000;
}

.step-line {
  height: 2px;
  flex: 1;
  background-color: #d1d5db;
  margin: 0 1rem;
  /* align-self: flex-start; */
  margin-top: 1.25rem;
}

.step-line.active {
  background-color: #000;
}

/* Main Grid */
.brunchy-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .brunchy-grid-container {
    grid-template-columns: 1fr 380px;
    gap: 3rem;
  }
}

@media (min-width: 1440px) {
  .brunchy-grid-container {
    max-width: 1600px;
    gap: 4rem;
  }
}

/* Left Column */
.brunchy-left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.box-image-container {
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.box-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Box Info Card */
.box-info-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.box-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0;
  color: #111827;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.box-base-price {
  text-align: right;
  flex-shrink: 0;
}

.price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.price-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.box-description {
  color: #6b7280;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.box-included {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
}

.included-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.included-list li:last-child {
  margin-bottom: 0;
}

.included-list li::before {
  content: "✓";
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

/* Order Summary Card */
.order-summary-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 1.5rem;
}

.summary-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  color: #111827;
  letter-spacing: -0.01em;
}

/* Box Quantity Selector */
.box-quantity-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.quantity-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.qty-btn:hover:not(:disabled) {
  border-color: #000;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-display {
  font-size: 1.125rem;
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

/* Summary Details */
.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: 500;
  color: #000;
}

.item-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.item-price {
  font-weight: 600;
  color: #000;
}

.summary-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 0.75rem;
}

.selected-extras-section,
.selected-sauces-section {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 0.875rem;
  margin-bottom: 0.75rem;
}

.extras-section-title,
.sauces-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.625rem 0;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.summary-extra-item,
.summary-sauce-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #4b5563;
  padding: 0.375rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.summary-extra-item:last-child,
.summary-sauce-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-extra-item span:last-child,
.summary-sauce-item span:last-child {
  font-weight: 600;
  color: #111827;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-item-small {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.delivery-label {
  color: #6b7280;
}

.delivery-price {
  font-weight: 500;
  color: #000;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #000;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.total-label {
  font-size: 1.25rem;
  font-weight: 700;
}

.total-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: #000;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  background: #000;
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.3s;
}

.add-to-cart-btn:hover {
  background: #1f2937;
}

.delivery-info {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Right Column */
.brunchy-right-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Accordion */
.accordion-item {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: #f9fafb;
}

.accordion-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

.count-badge {
  background: #000;
  color: white;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
}

.accordion-icon {
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.open {
  max-height: 2000px;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}

/* Items Grid (2 columns) */
.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border-color 0.3s;
}

.item-card:hover {
  border-color: #9ca3af;
}

.item-details {
  flex: 1;
  padding-right: 0.75rem;
}

.item-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.item-description {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.375rem 0;
  line-height: 1.4;
}

.item-price-label {
  font-size: 0.8125rem;
  color: #4b5563;
  font-weight: 600;
}

/* Summary Totals */
.summary-totals {
  border-top: 2px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #4b5563;
}

.total-row span:last-child {
  font-weight: 600;
  color: #111827;
}

.total-final {
  border-top: 2px solid #e5e7eb;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1rem;
}

.total-final strong {
  color: #111827;
  font-weight: 700;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #111827;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-to-cart-btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* Delivery Options */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.delivery-option:hover {
  border-color: #9ca3af;
}

.delivery-option input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.delivery-option input[type="radio"]:checked ~ .option-content {
  font-weight: 500;
}

.delivery-option:has(input:checked) {
  border-color: #000;
  background: #f9fafb;
}

.option-content {
  flex: 1;
}

.option-title {
  font-weight: 600;
  color: #000;
  margin-bottom: 0.25rem;
}

.option-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.option-price {
  font-size: 0.875rem;
  font-weight: 500;
}

.delivery-option[data-method="retrait"] .option-price {
  color: #10b981;
}

.delivery-option[data-method="livraison"] .option-price {
  color: #374151;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .brunchy-customize-wrapper {
    padding: 1rem 0.5rem;
  }
  
  .brunchy-grid-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .brunchy-breadcrumb {
    margin: 0 1rem 1.5rem 1rem;
  }
  
  .brunchy-back-button {
    padding: 0 1rem;
  }

  .step-circle {
    width: 2rem;
    height: 2rem;
  }

  .order-summary-card {
    position: static;
  }
  
  .box-info-card,
  .section-card {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .box-header {
    flex-direction: column;
  }

  .box-base-price {
    text-align: left;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .item-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-details {
    padding-right: 0;
    margin-bottom: 0.75rem;
    width: 100%;
  }

  .item-quantity {
    width: 100%;
    justify-content: flex-end;
  }

  .breadcrumb-step {
    font-size: 0.75rem;
  }

  .step-label {
    display: none;
  }
}

/* Loading State */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* Section Cards (Accordions) */
.section-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-rows: auto 0fr;
}

.section-card:has(.section-content.open) {
  grid-template-rows: auto 1fr;
}

.section-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s;
}

.section-header:hover {
  background: #f9fafb;
}

.section-header:focus {
  outline: none;
}

.header-content {
  flex: 1;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.accordion-icon {
  flex-shrink: 0;
}

.section-content {
  overflow: hidden;
}

.section-content.open > * {
  padding: 1rem 1.5rem 1.5rem;
}

/* Items Grid - Now displays subcategories in columns */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Subcategory Column */
.subcategory-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subcategory-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.625rem 0;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subcategory-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Item Card */
.item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  transition: border-color 0.3s;
}

.item-card:hover {
  border-color: #9ca3af;
}

.item-details {
  flex: 1;
  padding-right: 0.75rem;
}

.item-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
  margin: 0 0 0.25rem 0;
}

.item-description {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.item-price-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
}

.qty-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-value {
  font-weight: 600;
  font-size: 0.875rem;
  color: #000;
  min-width: 1.5rem;
  text-align: center;
}

/* Delivery Options */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.delivery-option:hover {
  border-color: #9ca3af;
}

.delivery-option input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.delivery-option input[type="radio"]:checked {
  accent-color: #000;
}

.delivery-label {
  flex: 1;
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}

.delivery-info-text {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* WordPress Admin Bar Adjustment */
.admin-bar .order-summary-card {
  top: calc(1.5rem + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .order-summary-card {
    top: calc(1.5rem + 46px);
  }
}

/* ==================== Delivery/Pickup Section ==================== */

.delivery-question {
  margin-bottom: 2rem;
}

.delivery-question-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.delivery-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delivery-option-card {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.delivery-option-card:hover {
  border-color: #d1d5db;
}

.delivery-option-card input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  margin-right: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.delivery-option-card input[type="radio"]:checked {
  accent-color: #111827;
}

.delivery-option-card:has(input:checked) {
  border-color: #111827;
  background: #f9fafb;
}

.option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.option-info {
  display: flex;
  flex-direction: column;
}

.option-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: #111827;
}

.option-price {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Pickup Date Section */
.pickup-date-section {
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
}

.pickup-date-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.date-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.pickup-date-input {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #111827;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pickup-date-input:hover {
  border-color: #d1d5db;
}

.pickup-date-input:focus {
  outline: none;
  border-color: #111827;
}

.calendar-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
}

/* Pickup Time Info */
.pickup-time-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.info-icon {
  color: #6b7280;
  flex-shrink: 0;
}

.info-text {
  color: #6b7280;
}

.info-value {
  color: #111827;
  font-weight: 600;
  margin-left: 0.25rem;
}

/* jQuery UI Datepicker Custom Styling */
.ui-datepicker {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  border: none !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  padding: 1rem !important;
  width: auto !important;
}

.ui-datepicker-header {
  background: #111827 !important;
  border: none !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem !important;
  margin-bottom: 0.5rem !important;
}

.ui-datepicker-title {
  color: white !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  cursor: pointer !important;
  top: 0.75rem !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
  background-color: white !important;
}

.ui-datepicker th {
  color: #6b7280 !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  padding: 0.5rem 0.25rem !important;
}

.ui-datepicker td {
  padding: 0.125rem !important;
}

.ui-datepicker td a {
  padding: 0.5rem !important;
  text-align: center !important;
  border-radius: 0.375rem !important;
  border: none !important;
  background: transparent !important;
  color: #111827 !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
}

.ui-datepicker td a:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.ui-datepicker td .ui-state-active {
  background: #111827 !important;
  color: white !important;
}

.ui-datepicker .ui-state-disabled {
  opacity: 0.3 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .pickup-date-section {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .delivery-option-card {
    padding: 0.875rem 1rem;
  }
  
  .option-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Date Closed (Lundi fermé) */
.ui-datepicker td.date-closed {
  pointer-events: auto !important;
}

.ui-datepicker td.date-closed span {
  background: #e5e7eb !important;
  color: #6b7280 !important;
  cursor: help !important;
  pointer-events: auto !important;
}

.ui-datepicker td.date-closed span:hover {
  background: #d1d5db !important;
  color: #4b5563 !important;
}

/* Date Full (Complet - ≥30 commandes) */
.ui-datepicker td.date-full {
  pointer-events: auto !important;
}

.ui-datepicker td.date-full span {
  background: #fee2e2 !important;
  color: #991b1b !important;
  cursor: help !important;
  pointer-events: auto !important;
  font-weight: 600 !important;
}

.ui-datepicker td.date-full span:hover {
  background: #fecaca !important;
  color: #991b1b !important;
}

/* Date Warning (27-29 commandes) */
.ui-datepicker td.date-warning {
  pointer-events: auto !important;
}

.ui-datepicker td.date-warning a {
  background: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 600 !important;
  cursor: help !important;
  pointer-events: auto !important;
}

.ui-datepicker td.date-warning a:hover {
  background: #fde68a !important;
  color: #78350f !important;
}

/* Tooltip personnalisé Brunchy */
.brunchy-custom-tooltip {
  background: rgba(17, 24, 39, 0.95);
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  white-space: nowrap;
  animation: tooltipFadeIn 0.2s ease-in-out;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delivery Option Disabled */
.delivery-option-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f3f4f6;
  border-color: #e5e7eb !important;
}

.delivery-option-card.disabled:hover {
  border-color: #e5e7eb !important;
  background: #f3f4f6;
}

.delivery-option-card.disabled input[type="radio"] {
  cursor: not-allowed;
}

.delivery-option-card .option-price.soon-available {
  color: #f59e0b;
  font-weight: 600;
  font-style: italic;
  font-size: 0.8125rem;
}

/* Customize Action Buttons */
.customize-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: white;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: #374151;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}

/* Back Button */
.btn-back {
  color: #6b7280;
  border-color: #d1d5db;
}

.btn-back:hover {
  color: #111827;
  border-color: #9ca3af;
  background: #f9fafb;
}

.btn-back:hover svg {
  transform: translateX(-4px);
}

/* Reset Button */
.btn-reset {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-reset:hover {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fee2e2;
}

.btn-reset:hover svg {
  transform: rotate(-180deg);
}

/* Responsive pour les boutons d'action */
@media (max-width: 768px) {
  .customize-actions {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
  }
}
