/* ========================
   Layout
======================== */
.ybx-bento-container {
  display: block;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #222;
  min-height: 600px;
}

.ybx-wizard {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.ybx-wizard-steps { grid-column: 1; }

#ybx-summary {
  grid-column: 2;
  position: sticky;
  top: 16px;
  border: none;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  /* box-shadow: 0 4px 24px rgba(0,0,0,.06); */
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  /* transition: box-shadow .2s ease; */
  border: 1px solid #dddddd;
}
.ybx-summary:hover {
  /* box-shadow: 0 6px 28px rgba(0,0,0,.1); */
}

#ybx-summary-list {
    margin-top: 15px;
}


@media (max-width: 960px) {
  .ybx-wizard { grid-template-columns: 1fr; }
  .ybx-summary {
    grid-column: auto;
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    margin-top: 16px;
    box-shadow: none;
    border: 1px solid #eee;
  }
}

#ybx-summary h3 {
    text-align: center;   
}


/* ========================
   Steps & Controls
======================== */
.ybx-wizard .ybx-step { 
  margin-bottom: 32px; 
}

.ybx-step h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.ybx-type-grid { 
  display: flex; 
  gap: 14px; 
}

.ybx-type {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #ddd;
  cursor: pointer;
  background: linear-gradient(145deg,#fafafa,#f4f4f4);
  transition: all .2s ease;
  text-align: center;
  font-weight: 600;
}
.ybx-type:hover {
  background: #fff;
  
}

.ybx-type.selected {
  background: #fff;
  border: 2px solid #52CDDC;
  /* box-shadow: 0 4px 12px rgba(0,0,0,.1); */
  transform: translateY(-2px);
  color: #333;
}


/* ========================
   Buttons
======================== */
.ybx-btn {
  padding: 10px 18px;
  margin: 5px auto;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}

.ybx-btn.small {
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 8px;
  margin-left: 5px;
}

.ybx-btn.medium {
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 8px;
  margin-left: 5px;
  background: #52CDDC;
  color: #fff;
  transition: all 0.2s ease;
}

.ybx-btn.medium:hover {
  color: #ffffff;
  background: #3BAAB8; /* darker teal */
  transform: translateY(-1px);
}

.ybx-primary {
  background: #52CDDC;
  color: #fff;
  transition: all 0.2s ease;
}

.ybx-primary:hover {
  color: #ffffff;
  background: #3BAAB8; /* darker teal */
  transform: translateY(-1px);
}


.ybx-secondary {
  background: #f8f8f8;
  color: #333;
}
.ybx-secondary:hover {
  background: #f0f0f0;
}

.ybx-btn.ybx-skip.small {
  background: #f7f7f7;
  color: #666;
}
.ybx-btn.ybx-remove.small {
  background: none;
  color: #c00;
}




/* ========================
   Cards
======================== */
/* Shared grid layout for main + subcategory grids */
.ybx-grid,
.ybx-grid-sub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Cap each card width so they don’t stretch full row */
.ybx-card {
  border: 1px solid #dddddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
  margin-bottom: 5px;
  max-width: 246px; /* ✅ keeps proportional grid */
  width: 100%;
}

.ybx-card:hover {
  transform: translateY(0px);
}

.ybx-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #f7f7f7;
}

.ybx-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ybx-card-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: #222;
}

.ybx-card-price { 
  font-size: 16px; 
  opacity: .8; 
}

.ybx-card.selected { 
  border: 2px solid #52cddc; 
}

/* Subcategory section styling */
.ybx-subcat {
  margin-top: 20px;
  border-bottom: 1px solid #ddd;
}

.ybx-subcat h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #444;
}

/* ========================
   Subcategories
======================== */
.ybx-subcat {
  margin-bottom: 24px;
}
.ybx-subcat h4 {
  margin: 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: #777;
  border-left: 0px solid #111;
  padding-left: 8px;
}


/* ========================
   Modal
======================== */
.ybx-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.ybx-modal[aria-hidden=true] { display: none; }

.ybx-modal-content {
  position: relative;
  background: #fff;
  padding: 28px;
  border-radius: 20px;
  min-width: 320px;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.ybx-modal-content h3 { margin-top: 0; font-size: 20px; font-weight: 700; }

/* General Close Button Styling */
.ybx-modal-close {
    position: absolute;
    top: 10px; /* Reduced from 15px for a slightly tighter look */
    right: 10px; /* Reduced from 15px */
    width: 36px; /* Slightly larger touch target */
    height: 36px; /* Slightly larger touch target */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666; /* A bit darker for better initial contrast */
    border-radius: 50%;
    z-index: 10000;
    background-color: rgba(255, 255, 255, 0.2); /* Subtle translucent background */
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-size: 24px; /* Increased size for better visibility */
    line-height: 1;
    transition: all 0.2s ease-in-out; /* Smoother transition */
    padding: 0; /* Reset padding */
    pointer-events: auto !important; 
}

.ybx-modal-close:hover {
    color: #333;
    background-color: rgba(255, 255, 255, 0.5); /* Darker hover background */
    transform: scale(1.1); /* Slight scale on hover */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

/* The 'X' Symbol */
.ybx-modal-close::before {
    content: "✕"; /* Use a proper multiplication symbol */
    font-size: 24px; /* Increased size to match button */
    line-height: 1;
    color: #666; /* Ensure color matches initial state */
}

.ybx-modal-close:hover::before {
    color: #333; /* Ensure color matches hover state */
}

/* Optional: Add focus state styling for accessibility */
.ybx-modal .ybx-modal-close:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Add a custom focus ring */
}


.ybx-modal label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.ybx-modal input[type="text"],
.ybx-modal select,
.ybx-modal input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: border-color .2s ease;
  font-size: 12pt;
}
.ybx-modal input:focus, .ybx-modal select:focus {
  border-color: #111;
  outline: none;
}

.ybx-help { opacity: .7; margin: 0 0 10px; font-size: 12px; }


#ybx-add-to-cart {
    padding: 20px;
    font-size: 16px;
}


.c1 {
    width: auto;
    font-size: 12pt;
    font-weight: normal;
}



/* Sticky order bar */
.yb-bento-order-bar {
  position: sticky;
  top: 0; /* overridden dynamically by JS to sit under header */
  background: #fff;
  color: #000;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: normal;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 999; /* JS will try to place it under header's z-index when possible */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: top 0.12s ease;
}

.yb-bento-order-bar__inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.yb-bento-order-bar__label {
  opacity: 0.85;
}

.yb-bento-order-bar__when {
  font-weight: 700;
}

/* Start Over button */
.yb-bento-start-over-btn {
  background: transparent;
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 8px;
}

.yb-bento-start-over-btn:hover,
.yb-bento-start-over-btn:focus {
  background: rgba(255,107,107,0.08);
  outline: none;
}



.ybx-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff9800;
  color: #fff;
  padding: 3px 7px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}
.ybx-card {
  position: relative; /* needed for absolute badge */
}