.input-container {
  position: relative;
}

myNavSlideDown input {
  height: 48px;
  width: 250px;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  box-sizing: border-box;
  padding: 16px;
  border-color: grey; 
}

.label {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

myNavSlideDown input, .label .text {
  font-family: 'Segoe UI';
  font-size: 16px;
}

myNavSlideDown .label .text {
  transition: all 0.15s ease-out;
  color: grey;
}

input:focus {
  outline: none;
  border: 2px solid #b3b000;
}

input:focus + .label .text, :not(input[value=""]) + .label .text {
  font-size: 12px;
  transform: translate(0, -150%);
  background-color: white;
  padding-left: 4px;
  padding-right: 4px;
}

input:focus + .label .text {
  color: #3d3b00;
}

/* Flexbox container for side-by-side fields */
.flex-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive design: when screen is too narrow 

flex-direction: column;:

It changes the layout direction of Flexbox children from the default row (horizontal) to column (vertical).

So, instead of children being placed side by side, they will stack vertically.
*/
@media (max-width: 600px) {
  .flex-container {
    flex-direction: column;
  }
}

/* Black text for time and date fields */
#MgtRecipe input[type="date"], 
#MgtRecipe input[type="time"] {
  color: black;
}

#MgtRecipe .label .text {
  color: black; /* Ensures label text for time and date fields is black */
}

MgtRecipe .label .text .date {
  transition: all 0.15s ease-out;
  color: rgb(10, 2, 2);
}


/******************** FOR CENTERING *************************/

/* Centering all elements inside Recipegroup */
#Recipegroup {
  display: flex;
  justify-content: center; /* Centers the flex-container within Recipegroup */
  flex-direction: column; /* Ensures the flex containers stack vertically */
  align-items: center; /* Centers the elements horizontally */
}

/* Flexbox container for side-by-side fields within Recipegroup */
#Recipegroup .flex-container {
  display: flex;
  justify-content: space-between; /* Ensures elements are distributed evenly */
  width: 100%; /* Ensure that the flex container takes full width */
  max-width: 600px; /* Optional: limits the width of flex container */
}

/* Schedule: legacy 4-up grid (if used elsewhere) */
#Recipegroup .cibo-schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  width: 100%;
  max-width: 600px;
}

#Recipegroup .cibo-schedule-sections {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Same horizontal band as schedule + description so section titles line up */
#Recipegroup .cibo-form-column {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Direct children each own a full row (avoids pickup text sitting beside ingredient chips) */
#Recipegroup .cibo-form-column > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

#Recipegroup .cibo-form-column .ingred-search-wrap {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: block;
}

#Recipegroup .cibo-form-column .selected-items-container {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  clear: both;
}

#Recipegroup .cibo-form-column .selected-items-container li {
  margin-right: 0;
  margin-bottom: 0;
  flex: 0 0 auto;
}

#Recipegroup .cibo-form-column .cibo-pickup-row {
  max-width: none;
  width: 100%;
}

#Recipegroup .cibo-form-column #frmIngredList + .cibo-form-section {
  margin-top: 16px;
}

#Recipegroup .cibo-form-section {
  width: 100%;
}

#Recipegroup .cibo-form-section--ingred {
  margin-bottom: 2px;
}

#Recipegroup .cibo-section-heading {
  font-size: 0.78rem;
  margin: 0 0 5px 0;
  line-height: 1.25;
  text-align: left;
  transition: none;
}

#Recipegroup .cibo-section-hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6f6c5f;
  margin: 0 0 10px 0;
  max-width: 38em;
}

#Recipegroup .cibo-schedule-grid--pair {
  grid-template-columns: 1fr 1fr;
  max-width: 600px;
}

#Recipegroup .cibo-schedule-grid .cibo-schedule-cell {
  width: 100%;
  min-width: 0;
}

#Recipegroup .cibo-schedule-grid .cibo-schedule-cell input[type="date"],
#Recipegroup .cibo-schedule-grid .cibo-schedule-cell input[type="time"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  height: 42px;
}

/* Override atcmplt fixed width inside schedule cells */
#Recipegroup .cibo-schedule-grid .autocomplete {
  width: 100%;
  max-width: none;
}

/* Price row: currency + price + orders — one line (override atcmplt 250px × 2 > 600px) */
#Recipegroup .flex-container--price-row {
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

#Recipegroup .flex-container.flex-container--price-row > .autocomplete {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

#Recipegroup .flex-container.flex-container--price-row > .autocomplete input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  height: 42px;
  font-size: 14px;
  padding: 9px 12px;
}

#Recipegroup .flex-container.flex-container--price-row > .currency-field-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* Currency dropdown: minimal footprint (row uses align-items: center vs ~42px siblings) */
#Recipegroup .currency-field-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
}

#Recipegroup .currency-field-wrap .label {
  left: 7px;
}

#Recipegroup .currency-select {
  display: block;
  width: 100%;
  min-height: 30px;
  height: 30px;
  padding: 1px 16px 1px 6px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 9px;
  line-height: 1.2;
  color: #111;
  background-color: #fff;
  border: 2px solid #9a9700;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(26, 25, 18, 0.06);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 8px 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#Recipegroup .currency-select:hover {
  border-color: #b3b000;
}

#Recipegroup .currency-select:focus {
  outline: none;
  border: 2px solid #7a7700;
  padding: 1px 16px 1px 6px;
  box-shadow: 0 0 0 4px rgba(179, 176, 0, 0.32);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23b3b000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 4px center;
}

#Recipegroup .currency-select option {
  font-size: 9px;
}

/* Floating “Currency” label (always raised — value always selected) */
#Recipegroup .currency-field-wrap .label .text {
  font-size: 9px;
  transform: translate(0, -150%);
  background-color: #fff;
  padding-left: 4px;
  padding-right: 4px;
  color: #3d3b00;
}

#Recipegroup .currency-field-wrap select:focus + .label .text {
  color: #3d3b00;
}

/* Ensures alignment of left and right elements within flex-container */
#Recipegroup .flex-container .left,
#Recipegroup .flex-container .right {
  display: flex;
  flex-direction: column; /* Stacks items in a column */
  align-items: flex-start; /* Aligns items to the left (on both sides) */
}

#Recipegroup .flex-container .right {
  align-items: flex-end; /* Ensures the right side is aligned to the right */
}

/* Responsive design: stack elements on narrow screens */
@media (max-width: 600px) {
  #Recipegroup .flex-container {
    flex-direction: column; /* Stack items vertically on smaller screens */
    align-items: center; /* Center items on smaller screens */
  }

  /* Price row: undo row flex-grow so stacked fields don’t stretch oddly */
  #Recipegroup .flex-container.flex-container--price-row > .autocomplete {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  #Recipegroup .cibo-schedule-grid:not(.cibo-schedule-grid--pair) {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  #Recipegroup .cibo-schedule-grid--pair {
    grid-template-columns: 1fr;
  }
  #Recipegroup .cibo-schedule-grid:not(.cibo-schedule-grid--pair) {
    grid-template-columns: 1fr;
  }
}

/* CIBO creation: match search bar accent (#b3b000) on focus */
#MgtRecipe textarea:focus {
  outline: none;
  border: 2px solid #b3b000;
}

#MgtRecipe select:focus {
  outline: none;
  border: 2px solid #b3b000;
}

#MgtRecipe .search-input:focus {
  outline: none;
  border: 2px solid #b3b000;
}

/* Ingredient search: same floating label + field chrome as other CIBO inputs */
#Recipegroup .ingred-search-wrap {
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

#Recipegroup .ingred-search-wrap .search-input {
  display: block;
  width: 100%;
  height: 42px;
  border: 3px solid #b3b000;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 7px 10px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  background-color: #fff;
}

/* Same gold contour as header search pill on focus (must follow base rule — higher specificity) */
#Recipegroup .ingred-search-wrap .search-input:focus {
  outline: none;
  border: 3px solid #6b6800;
  box-shadow: 0 0 0 4px rgba(179, 176, 0, 0.35);
}

#Recipegroup .ingred-search-wrap .suggestions-box {
  left: 0;
  right: 0;
  width: 100%;
}

/* Float label when focused or when field has text (class set in ingredwidgets.js) */
#Recipegroup .ingred-search-wrap .label .text {
  font-size: 14px;
}

#Recipegroup .ingred-search-wrap input:focus + .label .text {
  color: #3d3b00;
  font-size: 11px;
}

#Recipegroup .ingred-search-wrap.is-filled .label .text {
  font-size: 11px;
  transform: translate(0, -150%);
  background-color: white;
  padding-left: 4px;
  padding-right: 4px;
  color: #3d3b00;
}

/* ========== CIBO creation — page presence (warmer card, unified fields) ========== */
#MgtRecipe.mgt-recipe-surface {
  box-sizing: border-box;
  background: linear-gradient(165deg, #f5f4ee 0%, #ffffff 42%, #fffdf8 100%);
  padding: 28px 18px 56px;
}

#sliderdiv.sliderdiv--cibo-creation #MgtRecipe.mgt-recipe-surface {
  padding-top: 8px;
}

#MgtRecipe .mgt-recipe-inner {
  max-width: 720px;
  margin: 0 auto;
}

#MgtRecipe .cibo-create-hero {
  text-align: center;
  margin-bottom: 8px;
}

#MgtRecipe .cibo-create-title {
  margin: 0;
}

#MgtRecipe .cibo-create-sub {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--cs-body);
  margin: 0.2rem auto 0;
  max-width: 26em;
  font-weight: 400;
}

#MgtRecipe .cibo-create-sub::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: var(--cs-heading);
}

#MgtRecipe .cibo-photo-upload {
  display: inline-block;
  margin-top: 18px;
  cursor: pointer;
  padding: 10px;
  border-radius: 16px;
  border: 2px dashed rgba(179, 176, 0, 0.42);
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#MgtRecipe .cibo-photo-upload:hover {
  border-color: #b3b000;
  background: rgba(179, 176, 0, 0.08);
  box-shadow: 0 8px 28px rgba(179, 176, 0, 0.15);
}

#MgtRecipe .cibo-photo-upload img {
  display: block;
  border-radius: 10px;
  vertical-align: middle;
}

#Recipegroup .cibo-form-divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  margin: 6px auto;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(179, 176, 0, 0.35) 50%,
    transparent 100%
  );
}

/* Tighter vertical rhythm between field rows */
#Recipegroup.cibo-form-body > .flex-container {
  margin-top: 8px;
  margin-bottom: 0;
}

#Recipegroup.cibo-form-body > .cibo-form-divider + .flex-container {
  margin-top: 0;
}

#Recipegroup.cibo-form-body > .cibo-schedule-grid,
#Recipegroup.cibo-form-body > .cibo-schedule-sections {
  margin-top: 8px;
  margin-bottom: 0;
}

#Recipegroup.cibo-form-body > .cibo-form-divider + .cibo-schedule-grid,
#Recipegroup.cibo-form-body > .cibo-form-divider + .cibo-schedule-sections {
  margin-top: 0;
}

#Recipegroup.cibo-form-body > .cibo-form-divider + .cibo-form-column {
  margin-top: 0;
}

/* Pick-up / delivery toggle + address field — one row */
#Recipegroup .cibo-pickup-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  max-width: 600px;
  margin-top: 6px;
  flex-wrap: wrap;
}

#Recipegroup .cibo-form-section + .cibo-pickup-row {
  margin-top: 4px;
}

#Recipegroup .cibo-pickup-row #btn-wrapper {
  margin-top: 0;
  margin-left: 0;
  flex: 0 0 auto;
  text-align: left;
}

#Recipegroup .cibo-fulfillment-toggle-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

#Recipegroup .cibo-pickup-row #postalcode_iddiv {
  margin-top: 0;
  flex: 1 1 220px;
  min-width: 0;
  width: auto;
  max-width: none;
}

#Recipegroup .cibo-pickup-row .cibo-pickup-address input[type="text"] {
  width: 100%;
}

#Recipegroup .cibo-pickup-address.cibo-address--delivery-mode input[type="text"] {
  border-style: dashed;
  border-color: #9a9700;
  background-color: #fafaf8;
}

#Recipegroup .cibo-description-block {
  width: 100%;
  max-width: 600px;
  margin: 14px auto 0;
}

#Recipegroup .cibo-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d3b33;
  margin-bottom: 5px;
}

#Recipegroup .cibo-description-block .cibo-section-hint {
  margin-bottom: 8px;
}

#Recipegroup .cibo-char-count {
  font-size: 0.75rem;
  color: #8a877a;
  text-align: right;
  margin-top: 5px;
  margin-bottom: 0;
}

#Recipegroup.cibo-form-body .cibo-dish-name-row {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2px;
}

#Recipegroup.cibo-form-body .cibo-dish-name-field {
  width: 100%;
  max-width: 600px;
}

/* CIBO fields: same gold as #search (2px #b3b000), stronger default weight */
#Recipegroup.cibo-form-body .input-container input[type="text"],
#Recipegroup.cibo-form-body .input-container input[type="date"],
#Recipegroup.cibo-form-body .input-container input[type="time"] {
  background-color: #fff;
  border: 3px solid #b3b000;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(26, 25, 18, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 42px;
  height: 42px;
  font-size: 14px;
  padding: 7px 10px;
  box-sizing: border-box;
}

#Recipegroup.cibo-form-body .input-container .label .text {
  font-size: 14px;
}

#Recipegroup.cibo-form-body .input-container input:focus + .label .text,
#Recipegroup.cibo-form-body .input-container input:not([value=""]) + .label .text {
  font-size: 11px;
}

#Recipegroup.cibo-form-body .input-container input[type="text"]:hover:not(:focus),
#Recipegroup.cibo-form-body .input-container input[type="date"]:hover:not(:focus),
#Recipegroup.cibo-form-body .input-container input[type="time"]:hover:not(:focus) {
  border-color: #9a9700;
}

#Recipegroup.cibo-form-body .input-container input[type="text"]:focus,
#Recipegroup.cibo-form-body .input-container input[type="date"]:focus,
#Recipegroup.cibo-form-body .input-container input[type="time"]:focus {
  border-color: #6b6800;
  box-shadow: 0 0 0 4px rgba(179, 176, 0, 0.32);
}

#Recipegroup .ingred-search-wrap {
  max-width: 600px;
}

#Recipegroup .ingred-search-wrap .search-input {
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#Recipegroup .ingred-search-wrap .search-input:hover:not(:focus) {
  border-color: #9a9700;
}

#Recipegroup .ingred-search-wrap .search-input:focus {
  border-color: #6b6800;
  box-shadow: 0 0 0 4px rgba(179, 176, 0, 0.32);
}

#Recipegroup .cibo-description-input {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 10px auto 0;
  min-height: 100px;
  padding: 10px 12px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #1a1914;
  background: #fff;
  border: 3px solid #b3b000;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(26, 25, 18, 0.06);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#Recipegroup .cibo-description-input:hover:not(:focus) {
  border-color: #9a9700;
}

#Recipegroup .cibo-description-input:focus {
  outline: none;
  border-color: #6b6800;
  box-shadow: 0 0 0 4px rgba(179, 176, 0, 0.32);
}

#Recipegroup .cibo-save-btn {
  margin-top: 12px;
  background: linear-gradient(180deg, #d8d42a 0%, #b3b000 100%);
  color: #1c1b10;
  border: 1px solid #9a9700;
  box-shadow: 0 4px 16px rgba(179, 176, 0, 0.32);
  font-weight: 700;
  min-width: 180px;
}

#Recipegroup .cibo-save-btn:hover,
#Recipegroup .cibo-save-btn:focus {
  color: #1c1b10;
  border-color: #858200;
  box-shadow: 0 6px 22px rgba(179, 176, 0, 0.4);
  filter: brightness(1.04);
}

#Recipegroup .cibo-save-btn:active {
  filter: brightness(0.97);
  transform: translateY(0);
}

#Recipegroup .switch input:focus-visible + .slider {
  outline: 2px solid #b3b000;
  outline-offset: 3px;
}

#Recipegroup .selected-items-container {
  max-width: 600px;
  margin-top: 6px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  border: 1px solid #e0ddd4;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(26, 25, 18, 0.06);
}

#Recipegroup .selected-items-container li {
  background: linear-gradient(180deg, #faf9f4 0%, #ebe8df 100%);
  border: 1px solid #d2cec2;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8125rem;
}

#Recipegroup .suggestion-btn:hover,
#Recipegroup .suggestion-btn.autocomplete-active {
  background-color: #2a2918;
  color: #fff;
}

