/* RRM Product Options — matches the [rrm_product_page] styles in the Divi child theme */

.rrm-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 20px;
}

/* ---------- Dropdown options ---------- */
.rrm-option-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #D0D3DB;
  border-radius: 50px;
  padding: 10px 36px 10px 16px;
  font-family: 'Zilla Slab', sans-serif !important;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border: 0 none;
  text-align: center;
  cursor: pointer;
}
.rrm-option-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232,118,138,.25);
}
.rrm-option-select option { color: #1A1A1A; }

/* ---------- Flavours block (product description) ---------- */
.rrm-flavours {
  margin: 4px 0 8px;
  padding: 14px 18px;
  background: #fdf3f5;
  border-radius: 10px;
}
.rrm-flavours__title {
  font-family: 'Zilla Slab', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700;
  color: #360A00;
  margin-bottom: 8px !important;
  padding: 0 !important;
}
.rrm-flavours__list {
  list-style: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rrm-flavours__list li {
  position: relative;
  padding-left: 20px !important;
  font-size: 15px;
  line-height: 1.5;
  color: #4a4a4a;
  list-style: none !important;
}
.rrm-flavours__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EBA2B1;
}
.rrm-flavours__list strong { color: #360A00; }

/* ---------- Dynamic price ---------- */
.rrm-price--dynamic .rrm-price-label {
  color: #808080;
  font-weight: 400;
  font-size: 18px;
}
.rrm-price--dynamic .rrm-price-sep { color: #808080; font-weight: 400; }
.rrm-price--dynamic .rrm-price-each {
  display: inline-block;
  color: #808080;
  font-weight: 400;
  font-size: 15px;
}

/* ---------- Mixed pack selector ---------- */
.rrm-mix__head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.rrm-mix__title {
  flex: 1 1 100%;
  font-family: 'Zilla Slab', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700;
  color: #360A00;
  padding: 0 !important;
}
.rrm-mix__status {
  flex: 1 1 auto;
  font-size: 15px;
  color: #4a4a4a;
  padding: 0 !important;
}
.rrm-mix.is-complete .rrm-mix__status { color: #2e7d4f; font-weight: 700; }
.rrm-mix.is-over .rrm-mix__status { color: #c0392b; }
.rrm-mix__progress {
  flex: 1 1 100%;
  height: 8px;
  background: #F2F2F2;
  border-radius: 8px;
  overflow: hidden;
}
.rrm-mix__bar {
  display: block;
  height: 100%;
  width: 0;
  background: #FE8A8A;
  transition: width .2s;
}
.rrm-mix.is-complete .rrm-mix__bar { background: #5bb584; }
.rrm-mix__filters {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #808080;
}
.rrm-mix__filter {
  border: 1px solid #e8e0d8;
  background: #fff;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}
.rrm-mix__filter.is-active { background: #EBA2B1; border-color: #EBA2B1; color: #fff; }
.rrm-mix__clear {
  font-size: 14px;
  color: #808080 !important;
  text-decoration: underline;
}

.rrm-mix__grid {
  list-style: none !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px !important;
}
.rrm-mix__item {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 12px;
  border: 2px solid #F2F2F2;
  border-radius: 10px;
  text-align: center;
  transition: border-color .15s;
}
.rrm-mix__item.is-selected { border-color: #EBA2B1; background: #fdf3f5; }
.rrm-mix__img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
}
.rrm-mix__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #1A1A1A;
  flex: 1;
}
.rrm-mix__badges { display: flex; gap: 4px; }
.rrm-mix__badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e3f3ea;
  color: #2e7d4f;
}
.rrm-mix__counter {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rrm-mix__minus,
.rrm-mix__plus {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #F2F2F2;
  color: #1A1A1A;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.rrm-mix__plus:not(:disabled) { background: #FE8A8A; color: #fff; }
.rrm-mix__minus:disabled,
.rrm-mix__plus:disabled { opacity: .4; cursor: not-allowed; }
.rrm-mix__qty {
  width: 36px;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  -moz-appearance: textfield;
}
.rrm-mix__qty::-webkit-outer-spin-button,
.rrm-mix__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 480px) {
  .rrm-mix__grid { grid-template-columns: repeat(2, 1fr); max-height: none; overflow: visible; }
  .rrm-mix__img { width: 72px; height: 72px; }
}

/* ---------- Mixed pack: copy-driven additions ---------- */
.rrm-mix__title-row {
  flex: 1 1 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.rrm-mix__title-row .rrm-mix__title { flex: 0 1 auto; font-size: 24px !important; }
.rrm-mix__count {
  font-family: 'Zilla Slab', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FE8A8A;
  white-space: nowrap;
}
.rrm-mix.is-complete .rrm-mix__count { color: #2e7d4f; }
.rrm-mix__help {
  flex: 1 1 100%;
  font-size: 14px;
  color: #808080;
  padding: 0 !important;
}
.rrm-mix__filters { flex-wrap: wrap; }

.rrm-mix__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  flex: 1;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
}
.rrm-mix__tile:disabled { cursor: default; }
.rrm-mix__tile:focus-visible { outline: 2px solid #FE8A8A; outline-offset: 4px; border-radius: 8px; }
.rrm-mix__label {
  font-size: 12px;
  line-height: 1.35;
  color: #808080;
}

/* How It Works — three steps, horizontal on desktop */
.rrm-steps {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 8px !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rrm-steps li { list-style: none !important; }
.rrm-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EBA2B1;
  color: #fff;
  font-family: 'Zilla Slab', sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}
.rrm-steps strong { display: block; font-style: normal !important; color: #360A00 !important; }
@media (max-width: 767px) {
  .rrm-steps { grid-template-columns: 1fr; }
}

.rrm-description--after-form { margin-top: 20px; }
.rrm-description--after-form h2,
.rrm-description--after-form h3 {
  font-family: 'Zilla Slab', sans-serif !important;
  color: #360A00;
  margin: 16px 0 6px !important;
  padding: 0 !important;
}
.rrm-reassure { font-size: 14px; color: #808080; text-align: center; }

/* Filter tabs: sized for touch */
.rrm-mix .rrm-mix__filter {
  font-family: 'Zilla Slab', sans-serif;
  font-size: 15px !important;
  line-height: 1.2;
  padding: 8px 14px !important;
  min-height: 36px;
  color: #360A00;
}
.rrm-mix .rrm-mix__filter.is-active { color: #fff; }
.rrm-mix__filters { gap: 8px; }

/* ---------- Even form rows: variation selects + option selects ---------- */
/* Same grid on every row: label | field | "Clear" slot (kept empty on option rows) */
.rrm-atc-form .rrm-variation-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 48px;
  align-items: center;
  column-gap: 12px;
  margin: 0 0 14px;
}
.rrm-atc-form .rrm-variation-row label {
  min-width: 0;
  font-size: 17px;
  line-height: 1.25;
}
.rrm-atc-form .rrm-select-wrap { min-width: 0; width: 100%; }
.rrm-atc-form .rrm-clear-variation { font-size: 16px; justify-self: start; }
.rrm-options { gap: 0; margin: 0 0 6px; }

.rrm-atc-form .rrm-variation-select,
.rrm-atc-form .rrm-option-select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  font-size: 18px;
  line-height: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rrm-atc-form .rrm-select-arrow {
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  line-height: 0;
}

@media (max-width: 600px) {
  .rrm-atc-form .rrm-variation-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    row-gap: 6px;
  }
  .rrm-atc-form .rrm-variation-row label { grid-column: 1 / -1; }
  .rrm-atc-form .rrm-variation-select,
  .rrm-atc-form .rrm-option-select { font-size: 16px; }
}
