/* Carrito de pedidos */
button,
input,
select,
textarea {
  font: inherit;
}

.addToCart,
.addConfigured,
.extraButton {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.bowl .addToCart {
  width: 100%;
  margin-top: auto;
  padding: 12px;
  border-radius: 9px;
  background: #ffffff18;
  color: inherit;
  text-align: left;
}

.bowl .addToCart:hover,
.bowl .addToCart:focus-visible {
  background: #fff;
  color: #111;
}

.bowl.gold .addToCart {
  background: #00000013;
}

.addToCart.added,
.addConfigured.added {
  background: var(--lime) !important;
  color: var(--ink) !important;
}

.optionControls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 18px;
}

.optionControls label {
  align-self: center;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.optionControls select {
  min-width: 0;
  padding: 9px 7px;
  border: 1px solid #ffffff2e;
  border-radius: 8px;
  background: #1d211e;
  color: #fff;
}

.optionControls select option {
  color: #111;
}

.optionControls button {
  grid-column: 1 / -1;
  margin-top: 3px;
  padding: 11px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
}

.lightControls select {
  border-color: #ddd0be;
  background: #fff;
  color: var(--ink);
}

.lightControls button {
  background: var(--forest);
  color: #fff;
}

.extraButton {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid #0003;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.extraButton:hover {
  text-decoration: underline;
}

.cartSection {
  padding: 95px clamp(22px, 5vw, 78px);
  background: #f2eadc;
}

.cartIntro {
  max-width: 1240px;
  margin: 0 auto 34px;
}

.cartIntro h2 {
  margin: 0;
  font: 400 clamp(48px, 6vw, 82px)/.92 Impact, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

.cartIntro > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.cartLayout {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}

.cartCard,
.checkoutCard {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px #3c2d1710;
}

.cartTitle {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid #eadfce;
}

.cartTitle small,
.checkoutCard > small {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.cartTitle h3,
.checkoutCard h3 {
  margin: 5px 0 0;
  font-size: 28px;
}

.textButton {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
}

.textButton:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.cartItems {
  min-height: 150px;
}

.emptyCart {
  margin: 0;
  padding: 55px 10px;
  color: #918879;
  font-size: 13px;
  text-align: center;
}

.cartItem {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #eee4d5;
}

.cartItem > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cartItem strong {
  font-size: 14px;
}

.cartItem small {
  color: var(--muted);
  font-size: 11px;
}

.quantityControl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantityControl button {
  width: 30px;
  height: 30px;
  border: 1px solid #dfd4c5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.quantityControl b {
  min-width: 20px;
  font-size: 13px;
  text-align: center;
}

.quantityControl .removeItem {
  margin-left: 6px;
  border-color: transparent;
  color: #a33;
}

.cartFooter {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 18px;
  font-size: 12px;
}

.cartFooter strong {
  color: var(--forest);
}

.checkoutCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ink);
  color: #fff;
}

.checkoutCard h3 {
  margin-bottom: 12px;
}

.checkoutCard label {
  margin-top: 8px;
  color: #c9c5bc;
  font-size: 11px;
  font-weight: 800;
}

.checkoutCard input,
.checkoutCard select,
.checkoutCard textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ffffff30;
  border-radius: 9px;
  background: #171b18;
  color: #fff;
  outline: none;
}

.checkoutCard textarea {
  resize: vertical;
}

.checkoutCard input:focus,
.checkoutCard select:focus,
.checkoutCard textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px #b8ff3d20;
}

.checkoutCard ::placeholder {
  color: #777;
}

.hiddenField {
  display: none;
}

.hiddenField.isVisible {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paymentNotice {
  margin-top: 12px;
  padding: 14px;
  border-radius: 9px;
  background: #ffffff0d;
  color: #c7c7c7;
  font-size: 11px;
  line-height: 1.5;
}

.paymentNotice b {
  color: var(--lime);
}

.sendOrder {
  margin-top: 8px;
  padding: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.sendOrder:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.formHelp {
  margin: 0;
  color: #7d827e;
  font-size: 10px;
  text-align: center;
}

.bowl.customBowlCard {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 34px;
  align-items: center;
  background: var(--forest);
}

.customBowlIntro h3 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 4vw, 58px);
}

.customBowlIntro p {
  max-width: 470px;
  font-size: 14px;
  line-height: 1.6;
}

.customBowlBuilder {
  display: grid;
  gap: 12px;
}

.customBowlBuilder fieldset {
  margin: 0;
  padding: 13px;
  border: 1px solid #ffffff30;
  border-radius: 11px;
}

.customBowlBuilder legend {
  padding: 0 7px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.checkGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.checkOption {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff0d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.checkOption input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--lime);
}

.checkOption:has(input:checked) {
  background: var(--lime);
  color: var(--ink);
}

.customBowlButton {
  width: 100%;
  padding: 14px;
  border-radius: 9px;
}

.customError {
  min-height: 15px;
  margin: -4px 0 0 !important;
  color: #ffd2bd;
  font-size: 11px !important;
  font-weight: 800;
}

.addToCart:focus-visible,
.addConfigured:focus-visible,
.extraButton:focus-visible,
.quantityControl button:focus-visible,
.sendOrder:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .cartLayout {
    grid-template-columns: 1fr;
  }

  .details article {
    min-height: auto;
  }

  .optionControls {
    max-width: 360px;
  }

  .bowl.customBowlCard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .cartSection {
    padding: 70px 17px 105px;
  }

  .cartCard,
  .checkoutCard {
    padding: 20px;
  }

  .cartItem {
    align-items: flex-start;
  }

  .cartFooter {
    flex-direction: column;
  }

  .optionControls {
    grid-template-columns: 1fr;
  }

  .optionControls button {
    grid-column: auto;
  }

  .details article {
    padding: 23px;
  }

  .bowl .addToCart {
    padding: 14px;
  }

  .quantityControl {
    gap: 3px;
  }

  .quantityControl button {
    width: 28px;
    height: 28px;
  }

  .checkGrid {
    grid-template-columns: 1fr;
  }
}
