/* ==========================================================================
   Bouquet Composer – Bergamotte-inspired design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (theming)
   -------------------------------------------------------------------------- */
:root {
  --bc-primary: #2d6a4f;
  --bc-primary-hover: #1b4332;
  --bc-primary-light: #d8f3dc;
  --bc-text: #1a1a1a;
  --bc-text-muted: #6b7280;
  --bc-text-light: #9ca3af;
  --bc-bg: #ffffff;
  --bc-bg-alt: #fafaf8;
  --bc-border: #e5e7eb;
  --bc-border-light: #f0f0ec;
  --bc-error: #dc2626;
  --bc-error-bg: #fef2f2;
  --bc-success: #16a34a;
  --bc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --bc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --bc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --bc-radius: 12px;
  --bc-radius-sm: 8px;
  --bc-radius-full: 9999px;
  --bc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bc-transition: 0.25s ease;
  --bc-sidebar-width: 440px;
}

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
.bc-composer {
  font-family: var(--bc-font);
  color: var(--bc-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  scroll-margin-top: 120px; /* offset for fixed/sticky site header */
  box-sizing: border-box;
}

.bc-composer *,
.bc-composer *::before,
.bc-composer *::after {
  box-sizing: border-box;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--bc-radius-sm);
  cursor: pointer;
  font-family: var(--bc-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 24px;
  transition: background-color var(--bc-transition), transform 0.1s;
}

.bc-btn:active {
  transform: scale(0.98);
}

.bc-btn--primary {
  background-color: var(--bc-primary);
  color: #fff;
}

.bc-btn--primary:hover {
  background-color: var(--bc-primary-hover);
}

.bc-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bc-btn--lg {
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--bc-radius);
}

.bc-btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Step Indicator
   -------------------------------------------------------------------------- */
.bc-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 0 40px;
}

.bc-step-indicator__step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
}

.bc-step-indicator__step--completed {
  cursor: pointer;
}

.bc-step-indicator__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--bc-radius-full);
  background-color: var(--bc-border);
  color: var(--bc-text-muted);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--bc-transition);
}

.bc-step-indicator__step--current .bc-step-indicator__number {
  background-color: var(--bc-primary);
  color: #fff;
}

.bc-step-indicator__step--completed .bc-step-indicator__number {
  background-color: var(--bc-primary-light);
  color: var(--bc-primary);
}

.bc-step-indicator__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bc-text-muted);
  transition: color var(--bc-transition);
}

.bc-step-indicator__step--current .bc-step-indicator__label {
  color: var(--bc-text);
  font-weight: 600;
}

.bc-step-indicator__step--completed .bc-step-indicator__label {
  color: var(--bc-primary);
}

.bc-step-indicator__line {
  width: 60px;
  height: 2px;
  background-color: var(--bc-border);
  margin: 0 12px;
  transition: background-color var(--bc-transition);
}

.bc-step-indicator__line--active {
  background-color: var(--bc-primary);
}

/* --------------------------------------------------------------------------
   Step 1 – Size Selector
   -------------------------------------------------------------------------- */
.bc-size-selector {
  text-align: center;
  padding-bottom: 48px;
}

.bc-size-selector__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--bc-text);
}

.bc-size-selector__subtitle {
  font-size: 16px;
  color: var(--bc-text-muted);
  margin: 0 0 32px;
}

.bc-size-selector__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Size Card
   -------------------------------------------------------------------------- */
.bc-size-card {
  background: var(--bc-bg);
  border: 2px solid var(--bc-border-light);
  border-radius: var(--bc-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--bc-transition), box-shadow var(--bc-transition), transform 0.15s;
  text-align: left;
}

.bc-size-card:hover {
  border-color: var(--bc-primary);
  box-shadow: var(--bc-shadow-md);
  transform: translateY(-2px);
}

.bc-size-card--selected {
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 2px var(--bc-primary-light), var(--bc-shadow-md);
}

.bc-size-card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 ratio */
  background-color: var(--bc-bg-alt);
  overflow: hidden;
}

.bc-size-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bc-size-card:hover .bc-size-card__image {
  transform: scale(1.03);
}

.bc-size-card__content {
  padding: 20px;
}

.bc-size-card__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--bc-text);
}

.bc-size-card__price {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--bc-text);
}

.bc-size-card__price-prefix {
  color: var(--bc-text-muted);
  font-weight: 400;
}

.bc-size-card__price-value {
  font-weight: 700;
}

.bc-size-card__description {
  font-size: 14px;
  color: var(--bc-text-muted);
  margin: 0;
  line-height: 1.5;
}

.bc-size-card__description p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Step 2 – Addon Picker
   -------------------------------------------------------------------------- */
.bc-addon-picker {
  padding-bottom: 48px;
}

.bc-addon-picker__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px;
  text-align: center;
  color: var(--bc-text);
}

.bc-addon-picker__footer {
  text-align: center;
  padding-top: 32px;
}

/* --------------------------------------------------------------------------
   Delivery Section
   -------------------------------------------------------------------------- */
.bc-delivery {
  background: var(--bc-bg-alt);
  border-radius: var(--bc-radius);
  padding: 24px;
  margin-bottom: 40px;
}

.bc-delivery__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--bc-text);
}

.bc-delivery__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bc-delivery__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.bc-delivery__address-field {
  background: var(--bc-bg);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: border-color var(--bc-transition);
}

.bc-delivery__address-field:hover {
  border-color: var(--bc-primary);
}

.bc-delivery__address-text {
  font-size: 14px;
  color: var(--bc-text);
  line-height: 1.4;
}

.bc-delivery__address-placeholder {
  font-size: 14px;
  color: var(--bc-text-light);
}

.bc-delivery-date__input {
  width: 100%;
  background: var(--bc-bg);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--bc-font);
  color: var(--bc-text);
  cursor: pointer;
  transition: border-color var(--bc-transition);
}

.bc-delivery-date__input:hover,
.bc-delivery-date__input:focus {
  border-color: var(--bc-primary);
  outline: none;
}

.bc-delivery__date-display {
  display: block;
  font-size: 13px;
  color: var(--bc-primary);
  margin-top: 6px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Addon Category
   -------------------------------------------------------------------------- */
.bc-addon-category {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--bc-border-light);
}

.bc-addon-category:last-child {
  border-bottom: none;
}

.bc-addon-category--error {
  border-color: var(--bc-error);
}

/* Category header – styled bar (matches Bergamotte design) */
.bc-addon-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 20px;
  border-radius: var(--bc-radius-sm);
  background-color: #8b7355;
  transition: background-color var(--bc-transition);
}

.bc-addon-category__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.bc-addon-category__mandatory {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 4px;
  font-weight: 700;
}

/* Counter inside header – white text */
.bc-addon-category__header .bc-counter {
  color: #fff;
}

/* Error state – red header */
.bc-addon-category--error .bc-addon-category__header {
  background-color: var(--bc-error);
}

.bc-addon-category--error .bc-addon-category__mandatory {
  color: rgba(255, 255, 255, 0.85);
}

.bc-addon-category__subtitle {
  font-size: 14px;
  color: var(--bc-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Subtitle must NOT turn red on validation error */
.bc-addon-category--error .bc-addon-category__subtitle {
  color: var(--bc-text-muted);
}

.bc-addon-category__description {
  font-size: 14px;
  color: var(--bc-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.bc-addon-category__items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Selection Counter  (plain text, e.g. "0/3")
   -------------------------------------------------------------------------- */
.bc-counter {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--bc-text-muted);
  white-space: nowrap;
}

.bc-counter--full {
  color: var(--bc-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Addon Item – portrait card layout (Bergamotte-style)
   -------------------------------------------------------------------------- */
.bc-addon-item {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  transition: opacity var(--bc-transition), filter var(--bc-transition);
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
}

.bc-addon-item--selected {
  border-color: var(--bc-text);
}

.bc-addon-item--dimmed {
  opacity: 0.45;
  filter: blur(0.5px);
  cursor: pointer;
}

.bc-addon-item__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 125%; /* 4:5 portrait ratio */
  overflow: hidden;
  background: #f0ece4;
  flex-shrink: 0;
}

.bc-addon-item__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bc-addon-item__image--loaded {
  opacity: 1;
}

.bc-addon-item__image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f0ece4;
}

/* Info (i) button – bottom-left inside image */
.bc-addon-item__info-btn {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: var(--bc-radius-full);
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.85);
  color: var(--bc-text-muted);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--bc-transition);
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.bc-addon-item__info-btn:hover {
  background: var(--bc-bg);
  border-color: var(--bc-text-muted);
  color: var(--bc-text);
}

/* X remove button – top-right inside image (only on selected) */
.bc-addon-item__remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: var(--bc-radius-full);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--bc-transition);
  padding: 0;
  z-index: 2;
}

.bc-addon-item__remove-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Content below image */
.bc-addon-item__content {
  padding: 8px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bc-addon-item__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--bc-text);
  line-height: 1.3;
}

.bc-addon-item--selected .bc-addon-item__name {
  font-weight: 700;
}

.bc-addon-item__price {
  font-size: 12px;
  color: var(--bc-text-muted);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Overlays & Sidebars (shared)
   -------------------------------------------------------------------------- */
.bc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000001;
  display: flex;
  animation: bc-fadeIn 0.2s ease;
}

.bc-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

@keyframes bc-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bc-slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes bc-slideInBottom {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Info Sidebar
   -------------------------------------------------------------------------- */
.bc-info-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--bc-sidebar-width);
  max-width: 100%;
  height: 100%;
  background: var(--bc-bg);
  box-shadow: var(--bc-shadow-lg);
  display: flex;
  flex-direction: column;
  animation: bc-slideInRight 0.3s ease;
  z-index: 1;
}

.bc-info-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bc-border-light);
}

.bc-info-sidebar__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.bc-info-sidebar__close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--bc-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.bc-info-sidebar__close:hover {
  color: var(--bc-text);
}

.bc-info-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.bc-info-sidebar__image {
  width: 100%;
  border-radius: var(--bc-radius);
  margin-bottom: 20px;
}

.bc-info-sidebar__item-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.bc-info-sidebar__description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bc-text-muted);
}

.bc-info-sidebar__description p {
  margin: 0 0 12px;
}

.bc-info-sidebar__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--bc-primary);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Address Sidebar
   -------------------------------------------------------------------------- */
.bc-address-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--bc-sidebar-width);
  max-width: 100%;
  height: 100%;
  background: var(--bc-bg);
  box-shadow: var(--bc-shadow-lg);
  display: flex;
  flex-direction: column;
  animation: bc-slideInRight 0.3s ease;
  z-index: 1;
}

.bc-address-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bc-border-light);
}

.bc-address-sidebar__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.bc-address-sidebar__close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--bc-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.bc-address-sidebar__close:hover {
  color: var(--bc-text);
}

.bc-address-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.bc-address-sidebar__field {
  margin-bottom: 20px;
}

.bc-address-sidebar__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-text);
  margin-bottom: 6px;
}

.bc-address-sidebar__required {
  color: var(--bc-error);
  margin-left: 2px;
}

.bc-address-sidebar__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  font-size: 14px;
  font-family: var(--bc-font);
  color: var(--bc-text);
  transition: border-color var(--bc-transition);
  background: var(--bc-bg);
}

.bc-address-sidebar__input:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 2px var(--bc-primary-light);
}

.bc-address-sidebar__input--error {
  border-color: var(--bc-error);
}

.bc-address-sidebar__input--error:focus {
  box-shadow: 0 0 0 2px var(--bc-error-bg);
}

.bc-address-sidebar__error {
  display: block;
  font-size: 12px;
  color: var(--bc-error);
  margin-top: 4px;
}

.bc-address-sidebar__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--bc-border-light);
}

/* --------------------------------------------------------------------------
   Review Sidebar
   -------------------------------------------------------------------------- */
.bc-overlay--review {
  justify-content: flex-end;
}

.bc-review-sidebar {
  position: relative;
  width: var(--bc-sidebar-width);
  max-width: 100%;
  height: 100%;
  background: var(--bc-bg);
  box-shadow: var(--bc-shadow-lg);
  display: flex;
  flex-direction: column;
  animation: bc-slideInRight 0.3s ease;
  z-index: 1;
}

.bc-review-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bc-border-light);
}

.bc-review-sidebar__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.bc-review-sidebar__close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--bc-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.bc-review-sidebar__close:hover {
  color: var(--bc-text);
}

.bc-review-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.bc-review-sidebar__section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bc-border-light);
}

.bc-review-sidebar__section:last-child {
  border-bottom: none;
}

.bc-review-sidebar__section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bc-text-muted);
  margin: 0 0 12px;
}

.bc-review-sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bc-review-sidebar__item:last-child {
  margin-bottom: 0;
}

.bc-review-sidebar__item-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--bc-radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bc-bg-alt);
}

.bc-review-sidebar__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bc-review-sidebar__item-details {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bc-review-sidebar__item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bc-text);
}

.bc-review-sidebar__item-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--bc-text-muted);
  white-space: nowrap;
}

.bc-review-sidebar__delivery-address,
.bc-review-sidebar__delivery-date {
  font-size: 14px;
  color: var(--bc-text);
  margin: 0 0 6px;
  line-height: 1.4;
}

/* Price Breakdown */
.bc-review-sidebar__breakdown {
  padding: 20px 0;
}

.bc-review-sidebar__line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--bc-text-muted);
}

.bc-review-sidebar__line--total {
  border-top: 2px solid var(--bc-text);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--bc-text);
}

.bc-review-sidebar__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--bc-border-light);
}

/* --------------------------------------------------------------------------
   Error Toast (centered red) + Info Toast (bottom-right dark)
   -------------------------------------------------------------------------- */
.bc-error-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000002;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bc-error);
  color: #fff;
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: bc-toastIn 0.3s ease;
  max-width: calc(100vw - 32px);
}

/* Info variant – bottom-right, dark background (for max-reached notice) */
.bc-error-toast.bc-error-toast--info {
  left: auto;
  right: 24px;
  transform: none;
  background: var(--bc-bg);
  color: var(--bc-text);
  border: 1px solid var(--bc-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  max-width: 340px;
  animation: bc-toastInfoIn 0.3s ease;
}

.bc-error-toast.bc-error-toast--info .bc-error-toast__close {
  color: var(--bc-text-muted);
}

.bc-error-toast.bc-error-toast--info .bc-error-toast__close:hover {
  color: var(--bc-text);
}

@keyframes bc-toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes bc-toastInfoIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bc-error-toast__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
  line-height: 1;
  flex-shrink: 0;
}

.bc-error-toast__close:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive – Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bc-size-selector__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }

  .bc-addon-category__items {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   Responsive – Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .bc-composer {
    padding: 0 12px;
  }

  .bc-step-indicator {
    padding: 20px 0 24px;
  }

  .bc-step-indicator__label {
    display: none;
  }

  .bc-step-indicator__line {
    width: 32px;
    margin: 0 8px;
  }

  .bc-size-selector__title,
  .bc-addon-picker__title {
    font-size: 22px;
  }

  .bc-size-selector__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Horizontal layout for size cards on mobile */
  .bc-size-card {
    display: flex;
    flex-direction: row;
  }

  .bc-size-card__image-wrap {
    width: 120px;
    min-width: 120px;
    padding-top: 0;
    height: auto;
    aspect-ratio: 1;
  }

  .bc-size-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Delivery stacked on mobile */
  .bc-delivery__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bc-delivery {
    padding: 16px;
  }

  /* Addon items on mobile */
  .bc-addon-category__items {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .bc-addon-item__name {
    font-size: 11px;
  }

  .bc-addon-item__price {
    font-size: 10px;
  }

  .bc-addon-item__info-btn {
    width: 22px;
    height: 22px;
    font-size: 11px;
    bottom: 6px;
    left: 6px;
  }

  .bc-addon-item__remove-btn {
    width: 22px;
    height: 22px;
    top: 4px;
    right: 4px;
  }

  /* Info toast – full-width at bottom on mobile */
  .bc-error-toast.bc-error-toast--info {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  /* Sidebars: bottom sheet on mobile */
  .bc-info-sidebar,
  .bc-address-sidebar,
  .bc-review-sidebar {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 85vh;
    height: auto;
    border-radius: var(--bc-radius) var(--bc-radius) 0 0;
    animation: bc-slideInBottom 0.3s ease;
  }

  .bc-review-sidebar__body {
    max-height: calc(85vh - 140px);
  }
}

/* --------------------------------------------------------------------------
   jQuery UI Datepicker overrides (delivery calendar)
   -------------------------------------------------------------------------- */
.ui-datepicker {
  font-family: var(--bc-font) !important;
  border-radius: var(--bc-radius-sm) !important;
  border: 1px solid var(--bc-border) !important;
  box-shadow: var(--bc-shadow-md) !important;
  padding: 12px !important;
}

.ui-datepicker .ui-datepicker-header {
  background: var(--bc-bg) !important;
  border: none !important;
  padding: 8px 0 !important;
}

.ui-datepicker .ui-datepicker-title {
  font-weight: 600 !important;
  color: var(--bc-text) !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
  text-align: center !important;
  border-radius: var(--bc-radius-full) !important;
}

.ui-datepicker td a.ui-state-active {
  background: var(--bc-primary) !important;
  color: #fff !important;
  border: none !important;
}

.ui-datepicker td a.ui-state-hover {
  background: var(--bc-primary-light) !important;
  color: var(--bc-primary) !important;
  border: none !important;
}

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