/* ==========================================
   ORDER SECTION STYLING
========================================== */

/* Collapsible animation container */
.order-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

/* Active state */
.order-section.active {
  max-height: 500px; /* Enough for current content */
  opacity: 1;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}


/* ==========================================
   SIZE OPTIONS LAYOUT
========================================== */

.size-options-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}


/* ==========================================
   QUANTITY INPUT CONTAINER
========================================== */

#quantity-input-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ==========================================
   REUSABLE CUSTOM CHECKBOX COMPONENT
========================================== */

.custom-checkbox {
  display: inline-flex;
  align-items: flex-end;   /* 👈 base alignment */
  gap: 12px;               /* 👈 more space */
  cursor: pointer;
  user-select: none;
}


/* Remove native appearance */
.custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 18px;        /* Medium size */
  height: 18px;

  border: 2px solid #2e7d32; /* Green border */
  background-color: #ffffff;

  margin: 0;
  padding: 0;

  display: inline-block;
  position: relative;

  cursor: pointer;
  transition: all 0.15s ease;
}


/* Checked state */
.custom-checkbox input[type="checkbox"]:checked {
  background-color: #2e7d32;
  border-color: #2e7d32;
}


/* White checkmark */
.custom-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;

  left: 4px;
  top: 1px;

  width: 5px;
  height: 10px;

  border: solid #ffffff;
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}


/* Label text */
.custom-checkbox span {
  left: 4px;
  font-size: 15px;     /* 👈 slightly bigger */
  font-weight: 500;    /* 👈 stronger presence */
  line-height: 18px;   /* 👈 match checkbox height */
  color: #2d5016;
}

/* Quantity input animation */
/* Quantity input animation */
.quantity-item {
  display: flex;              /* 👈 horizontal layout */
  align-items: center;        /* 👈 vertical alignment */
  gap: 12px;                  /* 👈 spacing between text and input */

  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quantity-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Label inline */
.quantity-item label {
  font-weight: 600;
  color: #2d5016;
  white-space: nowrap;        /* 👈 prevent wrapping */
  margin: 0;                  /* 👈 remove previous margin */
}

/* Input sizing */
.quantity-item input {
  flex: 1;                    /* 👈 take remaining width */
  max-width: 220px;           /* 👈 optional width limit */
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

/* Override global label block rule */
.form-group .custom-checkbox {
  display: inline-flex !important;
  align-items: flex-end;
  gap: 6px;
}
