.cart-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
}

.bag b {
  margin-left: 1px;
}

.info button b .cart-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

@media (max-width: 600px) {
  .bag {
    font-size: 12px;
  }

  .bag span {
    display: inline;
  }

  .info button b {
    width: 30px;
    height: 30px;
  }

  .info button b .cart-icon {
    width: 16px;
    height: 16px;
  }
}

/* Size picker on product cards; disabled sizes are sold out on plans with inventory. */
/* .info > div in styles.css would otherwise spread the sizes apart. */
.info > .sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  margin: 4px 0 2px;
}

.sizes button {
  min-width: 38px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.sizes button:hover:not(:disabled) {
  border-color: var(--ink);
}

.sizes button.active {
  border-color: var(--berry);
  background: var(--berry);
  color: #fff;
}

.sizes button:disabled {
  color: #b5aeaa;
  text-decoration: line-through;
  cursor: not-allowed;
}

.size-hint {
  display: block;
  margin-top: 4px;
  color: #b3261e;
  font-size: 11px;
  font-weight: 600;
}

.info button.sold-out {
  padding: 7px 12px;
  border-radius: 99px;
  background: #f1efed;
  color: var(--muted);
  font-size: 11px;
  cursor: not-allowed;
}

.card.is-sold-out .photo img {
  filter: grayscale(0.6);
  opacity: 0.75;
}

.line-variant {
  color: var(--ink) !important;
  font-weight: 600;
}

.cart-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fdf0ef;
  color: #8c1d18;
  font-size: 12px;
}

@media (max-width: 600px) {
  .info button.sold-out {
    font-size: 11px;
  }
}

/* The drawer now holds the cart and the shopper's details, so it scrolls as a whole. */
.drawer {
  overflow-y: auto;
}

/* Keep sections at full height inside the scrolling flex column. */
.drawer > * {
  flex-shrink: 0;
}

.drawer .lines {
  max-height: none;
  overflow: visible;
}

.customer-form {
  margin: 4px 0 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.customer-form h3 {
  margin: 0 0 14px;
  font: 600 18px "Playfair Display", serif;
}

.customer-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
}

.customer-form label small {
  color: var(--muted);
  font-weight: 400;
}

.customer-form input:not([type="radio"]),
.customer-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font: 400 13px "DM Sans", sans-serif;
}

.customer-form textarea {
  resize: vertical;
}

.customer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.delivery-options legend {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.delivery-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.delivery-options input {
  accent-color: var(--berry);
}

/* Share button on each product photo. */
.photo .share-product {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #ffffffe6;
  color: var(--ink);
  box-shadow: 0 4px 14px #0000001f;
  cursor: pointer;
}

.photo .share-product:hover {
  color: var(--berry);
}

.photo .share-product svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Highlights the product opened from a shared link. */
.card.is-shared {
  box-shadow: 0 0 0 3px var(--berry);
}

@media (max-width: 600px) {
  .customer-row {
    grid-template-columns: 1fr;
  }
}

/* "Mis pedidos" in the storefront header, shown once this device has orders. */
.my-orders {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.my-orders:hover {
  color: var(--berry);
}

/* Secondary action under "Abrir WhatsApp" on the confirmation view. */
.success a.track-order {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

/* Short privacy notice in the cart and legal links in the storefront footer. */
.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-note a,
.legal-links a {
  color: inherit;
}

/* The footer wraps so the legal links get their own row instead of squeezing the logo, city, and icons. */
footer {
  flex-wrap: wrap;
  gap: 18px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

#storeFooter {
  flex: 1 1 220px;
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  flex-wrap: nowrap;
  margin: 0;
}

.taluki-footer-icon {
  flex-shrink: 0;
}

.legal-links {
  flex-basis: 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* Phones stack the footer in a column, where a flex-basis would turn into empty height. */
@media (max-width: 600px) {
  #storeFooter {
    flex: none;
  }

  .legal-links {
    width: 100%;
    text-align: left;
  }
}

/* Shipping and total lines in the cart summary. */
.summary .summary-row {
  margin: 6px 0 0;
}

.summary .summary-row span {
  color: var(--muted);
}

.summary .summary-row b {
  font-size: 16px;
}

.summary .summary-total b {
  font-size: 24px;
}

.customer-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font: 400 13px "DM Sans", sans-serif;
}

/* Discount code entry and line in the cart summary (Pro stores). */
.discount-box {
  margin-bottom: 14px;
}

.discount-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.discount-entry {
  display: flex;
  gap: 8px;
}

.discount-entry input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  text-transform: uppercase;
}

.discount-entry button {
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.discount-box small {
  display: block;
  min-height: 1em;
  margin-top: 6px;
  color: var(--muted);
}

.discount-box small.is-error {
  color: #a2382b;
}

.discount-box small.is-applied {
  color: #2f6f4f;
}

.summary .discount-row b {
  color: #2f6f4f;
}
