/* The shop's buttons and links use --pins-strong (main-v1.x.css), the darker
   shade of the PINS pink, so white text on it, and it as text on white or the
   basket summary's cream, are readable */

/* # SHOP */

.shop-detail__introduction {
  color: var(--pins-strong);
  font-family: var(--font--primary);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .shop-detail__introduction {
    font-size: 1.625rem;
    line-height: 1.15;
  }
}

/* #checkout reminder, directly under the shipping method */
.shop-shipping-reminder {
  color: var(--bs-danger);
  font-weight: 700;
  margin-bottom: 20px;
}

.shop-shipping-reminder a {
  color: inherit;
  text-decoration: underline;
}

/* #sale banner, and prices before the sale: in the sale's red */
:root {
  --sale: #b3261e;
}

/* Test mode (SHOP_TEST_MODE): impossible to miss, black on amber stripes */
.shop-test-banner {
  background: repeating-linear-gradient(
    -45deg,
    #ffc107,
    #ffc107 24px,
    #ffb000 24px,
    #ffb000 48px
  );
  border-top: 6px solid #1a1a1a;
  border-bottom: 6px solid #1a1a1a;
  color: #1a1a1a;
  text-align: center;
  padding: 14px 0;
}

.shop-test-banner p {
  margin: 0;
  color: #1a1a1a;
  font-weight: 600;
}

.shop-test-banner__title {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-sale-banner {
  background-color: var(--sale);
  text-align: center;
  padding: 12px 0;
  margin-bottom: 12px;
}

.shop-sale-banner p {
  margin: 0;
  /* (the site sets every p's colour, so it isn't inherited) */
  color: var(--white);
}

.shop-sale-banner__title,
.shop-sale-banner__content,
.shop-sale-banner__end {
  display: block;
}

.shop-sale-banner__title {
  font-family: var(--font--primary);
  font-size: 1.5rem;
}

.shop-sale-banner__end {
  font-size: 0.875rem;
}

/* #basket icon, in the header's navigation row: at the far right, and before
   the mobile menu button on smaller screens */
.navigation__basket {
  order: 1;
  margin-left: auto;
}

.navigation:has(.navigation__basket) .navigation__mobile-toggle {
  order: 2;
  margin-left: 12px;
}


/* #product ---- Listing Card ---- */
.product-listing-card {
  margin-bottom: 40px;
}

.product-listing-card__meta {
  border-collapse: separate;
  border-spacing: 5px;
}

.product-listing-card__container {
  padding-top: 20px;
  padding-bottom: 40px;
}

.product-listing-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.product-listing-card__title {
  color: var(--pins-strong);
  margin-top: 0;
}

.product-listing-card__meta-category {
  color: var(--grey);
  font-size: 0.875rem;
  line-height: 1.57;
  padding-right: 10px;
  vertical-align: top;
}

.product-listing-card__meta-content {
  color: var(--pins-strong);
  font-size: 0.875rem;
  line-height: 1.57;
  vertical-align: top;
}

.product-listing-card__meta-row:last-child {
  margin-bottom: 0;
}

.product-listing-card__image {
  width: 100%;
  overflow: hidden;
  margin: 0;
  max-width: 180px;
  max-height: 180px;
}

.product-listing-card__image img {
  transition: transform ease 0.2s;
}

.product-listing-card:hover .product-listing-card__image img {
  transform: scale(1.05);
}

.shop-form input[type='submit'],
.shop-form button[type='submit']
{
  border: none;
  color: var(--white);
  background-color: var(--pins-strong);
  font-weight: 700;
  padding: 10px 15px;
  display: inline-block;
  vertical-align: middle;
  transition-duration: 0.1s;
  width: max-content;
}

.shop-form input[type='submit']:hover,
.shop-form button[type='submit'].basket-btn-danger:hover {
  background-color: var(--pins-strong);
}

.shop-form input[type='submit'].basket-btn,
.shop-form button[type='submit'].basket-btn {
  padding: 0px 10px;
  margin-left: 2px;
}

.shop-form button[type='submit'].basket-btn-danger {
  background-color: darkred;
}

@media (min-width: 768px) {
  .product-listing-card__container {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .product-listing-card__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
  }

  .product-listing-card__image {
    width: 100%;
    overflow: hidden;
    margin: 0;
    max-width: 180px;
    max-height: 180px;
  }

  .product-listing-card__meta-category,
  .product-listing-card__meta-content {
    font-size: var(--font-sm);
    line-height: 1.5;
  }

}

.layer {
  background-color: rgba(248, 247, 216, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.form-control.quantity {
  width: 50px;
  /* no up/down arrows: the -/+ buttons do that */
  appearance: textfield;
  -moz-appearance: textfield;
}

.form-control.quantity::-webkit-outer-spin-button,
.form-control.quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hero image area */
.shop > .hero {
  padding: 100px 0 0;
  position: relative;
  margin: 0 0 10px;
}

.shop > .hero-image {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .shop > .hero {
    padding: 100px 0 0;
    margin: 0;
  }

}


.shop__hero__container {
  width: 100%;
  padding: 30px 20px 100px;
  background-color: rgba(207,148,131);
  margin: 0 auto;
}


@media (min-width: 768px) {
  .shop__hero__container {
    background-color: transparent;
    max-width: 1400px;
    padding: 0 40px;
  }
}


.shop__hero__title {
  color: var(--white);
  font-weight: 400;
  font-size: 2.875rem;
  line-height: 1.09;
  margin: 0;
  width: 100%;
}

  @media (min-width: 768px) {
    .shop__hero__title {
      background-color: rgba(207,148,131, 0.7);
      width: max-content;
      max-width: 100%;
      font-size: 6.25rem;
      line-height: 0.64;
      padding: 40px 30px;
      position: absolute;
      bottom: 0;
      left: 0;
    }
  }


/* The carousel shrinks with its grid column (like the "no photo" image), rather
   than having a fixed width, so cards with and without images line up */
.carousel.shop-carousel {
  width: 100%;
  max-width: 180px;
}

/* the product page shows larger images */
.carousel.shop-carousel--detail,
.shop-carousel--detail .product-listing-card__image {
  max-width: 300px;
  max-height: 300px;
}

.carousel-control-next,
.carousel-control-prev, 
.carousel-indicators {
    filter: invert(100%);
}

.carousel-indicators {
  bottom: -40px;
}


.basket-countdown-alert {
  margin: 10px auto 10px;
  max-width: 1400px;
  border-radius: 0;
  background-color: var(--pins-transparent);
  color: var(--dark-blue);
  padding: 10px;
  font-family: var(--font--primary);
}

.text-strikethrough {
  text-decoration: line-through;
}


/* #payment in progress ---- Buttons ---- */
/* The site's a.btn styles make link buttons larger than form buttons;
   give the link and form buttons the same (bootstrap) size */
.shop-payment-actions .btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
}

.shop-payment-actions a.btn {
  background-color: var(--bs-btn-bg);
  color: var(--bs-btn-color);
}

.shop-payment-actions a.btn:hover {
  background-color: var(--bs-btn-hover-bg);
  color: var(--bs-btn-hover-color);
}


/* #shop ---- Product cards and grid (shop and category pages) ---- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  padding: 16px 0 40px;
}

@media (min-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (min-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-card__image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f7d8;
}

.shop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform ease 0.2s;
}

.shop-card:hover .shop-card__image img {
  transform: scale(1.03);
}

.shop-no-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  background: #f8f7d8;
}

.shop-card__image .shop-no-photo img,
.shop-no-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.3;
}

.shop-no-photo span {
  position: absolute;
  margin: 0 8px;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  background: rgba(255, 255, 255, 0.85);
}

.shop-card__name {
  font-size: 1.15rem;
  margin: 4px 0 0;
  line-height: 1.3;
}

.shop-card__name a {
  color: inherit;
  text-decoration: none;
}

.shop-card__name a:hover {
  text-decoration: underline;
}

.shop-card__price {
  margin: 0;
}

.shop-was-price,
.shop-card__price s {
  color: var(--sale);
  margin-right: 4px;
}

.shop-card__stock {
  margin: 0;
  font-size: 0.9rem;
  color: #a5520a;
}

.shop-card__stock--out {
  color: darkred;
}

.shop-card .shop-form,
.shop-product .shop-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-card__buy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-card__buy .input-group.quantity {
  width: auto;
  flex-wrap: nowrap;
}

.shop-card__buy .input-group.quantity .btn {
  min-width: 44px;
  min-height: 44px;
}

.shop-card__buy .form-control.quantity {
  width: 56px;
  min-height: 44px;
  text-align: center;
}

.shop-form .shop-card__buy input[type='submit'].basket-btn {
  flex: 1 1 auto;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 4px;
}

/* the product's own page */
.shop-product {
  padding-top: 24px;
  padding-bottom: 48px;
}

.shop-product .shop-card__price {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.shop-product__description {
  margin-top: 24px;
}

/* #shop ---- Search, filters and categories ---- */
.shop-filters {
  margin: 16px 0;
}

.shop-filters__search {
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.shop-filters__search input[type='search'] {
  min-height: 44px;
}

.shop-filters__search .btn {
  min-height: 44px;
  color: var(--white);
  background-color: var(--pins-strong);
  border: none;
  padding: 0 16px;
}



.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.shop-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--pins-strong);
  border-radius: 22px;
  color: var(--pins-strong);
  text-decoration: none;
}

.shop-categories a[aria-current='true'] {
  background-color: var(--pins-strong);
  color: var(--white);
}

.shop-category__title {
  margin-top: 24px;
}

.shop-detail__empty {
  margin: 24px 0 48px;
  font-size: 1.1rem;
}

/* Products with a choice of options: on phones, "Choose options" (their page)
   rather than a drop-down that doesn't fit */
/* (more specific than Bootstrap's .btn) */
.shop-card .shop-card__choose {
  display: none;
}

@media (max-width: 767.98px) {
  .shop-card--options .shop-form {
    display: none;
  }

  .shop-card--options .shop-card__choose {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--white);
    background-color: var(--pins-strong);
    border: none;
  }
}


/* The cards' buttons: one style ("Add to basket" and "Choose options"), at
   the bottom of each card, so they line up across a row */
.shop-card .shop-form,
.shop-card .shop-card__choose {
  margin-top: auto;
}

.shop-card .shop-form input[type='submit'].basket-btn,
.shop-card .shop-card__choose,
.shop-product .shop-form input[type='submit'].basket-btn {
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 16px;
  border-radius: 4px;
}

.shop-results {
  margin: 8px 0 0;
}

/* (the "Added!" message's place, after the form: no gap while it's empty, so
   the buttons line up with "Choose options") */
.shop-card > div:empty {
  display: none;
}

/* Phones: the category buttons on one line, scrolling sideways */
@media (max-width: 767.98px) {
  .shop-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin: 4px 0 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .shop-categories::-webkit-scrollbar {
    display: none;
  }

  .shop-categories a {
    flex: none;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

/* The "Added!" message (or a problem adding), over the bottom of the card's
   image */
.shop-card__media {
  position: relative;
}

.shop-card__media [id^='added_'] {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  margin: 0 !important;
  padding: 6px 8px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  color: #0f5132;
  background: #d1e7dd;
}

.shop-card__media .alert-danger[id^='added_'] {
  color: #842029;
  background: #f8d7da;
}

.shop-card__media [id^='added_'] a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.shop-card__media [id^='added_']:empty {
  display: none;
}

.shop-category__description {
  margin-bottom: 12px;
}

/* Basket and checkout: items, with a summary (totals, delivery, the main
   button) beside them on wider screens */
.shop-basket .basket-countdown-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: inherit;
  background-color: #faf8f3;
}

.basket-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 992px) {
  .basket-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: start;
  }

  /* checkout: details, then the summary on the right */
  .basket-layout--checkout {
    grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  }

  .basket-layout--checkout .checkout-summary {
    order: 2;
  }
}

/* The checkout's order summary, collapsed on phones: "Order summary £x" */
.checkout-summary__toggle {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #faf8f3;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.checkout-summary__toggle::-webkit-details-marker {
  display: none;
}

.checkout-summary__toggle span:first-child::after {
  content: " \25BE";
  /* (not read out) */
  content: " \25BE" / "";
}

.checkout-summary[open] .checkout-summary__toggle span:first-child::after {
  content: " \25B4";
  content: " \25B4" / "";
}

@media (min-width: 992px) {
  /* (always open, see checkout.js) */
  .checkout-summary__toggle {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .checkout-summary[open] .checkout-summary__toggle {
    border-radius: 6px 6px 0 0;
  }

  .checkout-summary .basket-summary {
    border-radius: 0 0 6px 6px;
  }

  /* (the toggle says it) */
  .checkout-summary .basket-summary__title {
    display: none;
  }
}

.basket-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas:
    'image name price'
    'image controls controls'
    'image message message';
  gap: 4px 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.basket-item:not(.basket-item--editable) {
  grid-template-areas:
    'image name price'
    'image quantity quantity';
}

@media (min-width: 768px) {
  .basket-item--editable {
    grid-template-columns: 80px minmax(0, 1fr) auto 7em;
    grid-template-areas:
      'image name controls price'
      'image message message message';
    align-items: center;
  }
}

.basket-item__image {
  grid-area: image;
}

.basket-item__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: #f8f7d8;
}

.basket-item__placeholder {
  opacity: 0.4;
}

.basket-item__name {
  grid-area: name;
  display: flex;
  flex-direction: column;
}

.basket-item__variant,
.basket-item__note,
.basket-item__quantity {
  font-size: 0.9rem;
  color: #666;
}

.basket-item__quantity {
  grid-area: quantity;
}

.basket-item__price {
  grid-area: price;
  text-align: right;
  white-space: nowrap;
}

.basket-item__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 8px;
}

.basket-item__controls .input-group.quantity {
  width: auto;
  flex-wrap: nowrap;
}

.basket-item__controls .input-group.quantity .btn {
  min-width: 44px;
  min-height: 44px;
}

.basket-item__controls .form-control.quantity {
  width: 56px;
  min-height: 44px;
  text-align: center;
}

.shop-form button[type='submit'].basket-item__remove {
  min-width: 44px;
  min-height: 44px;
  color: #8b0000;
  background: none;
  border: 1px solid transparent;
}

.shop-form button[type='submit'].basket-item__remove:hover,
.shop-form button[type='submit'].basket-item__remove:focus-visible {
  border-color: #8b0000;
}

/* (by id: htmx replaces the element, without its class) */
.basket-item > [id^='updated_'] {
  grid-area: message;
  font-size: 0.9rem;
}

.basket-item > [id^='updated_']:empty {
  display: none;
}

.basket-continue {
  margin: 16px 0;
}

.basket-summary {
  padding: 16px;
  border-radius: 6px;
  background: #faf8f3;
}

.basket-summary__title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.basket-summary .basket-item {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.basket-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 6px 0;
}

.basket-line--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 1.25rem;
  font-weight: 600;
}

.basket-discount {
  margin: 12px 0;
}

.basket-discount__field {
  display: flex;
  gap: 8px;
}

.basket-discount__field .btn {
  min-height: 44px;
}

.basket-options__group {
  margin: 12px 0;
}

.basket-options__group legend {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.basket-options__help {
  font-size: 0.9rem;
  color: #666;
}

.basket-options__help.basket-options__warning {
  color: #842029;
}

.basket-options .form-check {
  margin-bottom: 6px;
}

/* (below the Checkout button: the FAQs aren't only about delivery) */
.basket-options__faqs {
  margin: 12px 0 0;
  text-align: center;
}

/* The page's main action (Checkout, Pay now) */
.btn.shop-main-btn,
.shop-form input[type='submit'].shop-main-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--pins-strong);
  border: none;
  border-radius: 4px;
}

.basket-details h2 {
  font-size: 1.4rem;
}

.basket-payment-note {
  margin-top: 8px;
}

.basket-discount__message {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.basket-discount__message--success {
  color: #0f5132;
}

.basket-discount__message--error {
  color: #842029;
}

/* The quantity -/+ buttons: no hover colour on touch screens (where it would
   stick after a tap); a brief colour while pressed */
.input-group.quantity .btn {
  --bs-btn-color: #444;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #6c757d;
  --bs-btn-hover-color: #444;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #6c757d;
  --bs-btn-active-color: #444;
  --bs-btn-active-bg: #e9e4da;
  --bs-btn-active-border-color: #6c757d;
}

@media (hover: hover) {
  .input-group.quantity .btn {
    --bs-btn-hover-bg: #f3f0ea;
  }
}

/* (the quantity field is in a wrapper, which Bootstrap's input group doesn't
   square off) */
.input-group.quantity .form-control.quantity {
  border-radius: 0;
}

/* Messages after adding to the basket or changing a quantity: green, or red if
   it couldn't be done (on the product page and in the basket; on the shop page
   they're over the card's image) */
.shop-product [id^='added_']:not(:empty),
.basket-item > [id^='updated_']:not(:empty) {
  margin-top: 6px;
  font-size: 0.9rem;
}

.shop-product [id^='added_'].alert-success,
.basket-item > [id^='updated_'].alert-success {
  color: #0f5132;
}

.shop-product [id^='added_'].alert-danger,
.basket-item > [id^='updated_'].alert-danger {
  color: #842029;
}

.shop-product [id^='added_'] a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.basket-item > [id^='updated_'].alert-info {
  color: #444;
}

/* "N in your basket", by the product's form */
.shop-in-basket {
  margin: 0;
  font-size: 0.9rem;
}

.shop-in-basket a {
  color: #0f5132;
}

.shop-in-basket a::before {
  content: "\2713\00a0";
}

/* The order status page */
.order-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
}

.order-details dt {
  font-weight: 600;
}

.order-details dd {
  margin: 0;
}

.basket-item__status {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.85rem;
  background: #ece7dc;
  color: #333;
}

/* A main button that isn't full width (e.g. "Continue to payment") */
.btn.shop-main-btn--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 0 20px;
}

.btn.shop-main-btn:hover,
.btn.shop-main-btn:focus-visible {
  color: var(--white);
  background-color: var(--pins-strong);
  filter: brightness(0.95);
}

.shop-secondary-btn {
  min-height: 48px;
}

/* The header's basket link */
.btn.shop-basket-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--white);
  background-color: var(--pins-strong);
  border: none;
  border-radius: 4px;
}

.btn.shop-basket-link:hover,
.btn.shop-basket-link:focus-visible {
  color: var(--white);
  background-color: var(--pins-strong);
  filter: brightness(0.95);
}

.shop-basket-link__label {
  display: none;
}

.shop-basket-link__count {
  min-width: 1.5em;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pins-strong);
  background: var(--white);
}

@media (min-width: 768px) {
  .shop-basket-link__label {
    display: inline;
  }
}

/* (the card's short version is only for phones, where its form is hidden) */
.shop-card .shop-in-basket--compact {
  display: none;
}

@media (max-width: 767.98px) {
  .shop-card--options .shop-in-basket--compact:not([hidden]) {
    display: block;
    margin-top: auto;
  }

  /* (the note takes the space above the button instead) */
  .shop-card--options .shop-in-basket--compact:not([hidden]) + .shop-card__choose {
    margin-top: 4px;
  }
}

/* The shop's pink buttons (Choose options, Search, Checkout...): pink in every
   state, so they don't turn Bootstrap grey when pressed, or when the page is
   shown again with the button still focused (e.g. going back); slightly
   darker on hover, only where there's a mouse */
.btn.basket-btn {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--pins-strong);
  --bs-btn-border-color: var(--pins-strong);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--pins-strong);
  --bs-btn-hover-border-color: var(--pins-strong);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--pins-strong);
  --bs-btn-active-border-color: var(--pins-strong);
  --bs-btn-disabled-color: var(--white);
  --bs-btn-disabled-bg: var(--pins-strong);
  --bs-btn-disabled-border-color: var(--pins-strong);
}

.btn.basket-btn:active {
  filter: brightness(0.9);
}

@media (hover: hover) {
  .btn.basket-btn:hover {
    filter: brightness(0.95);
  }
}

@media (hover: none) {
  .btn.shop-main-btn:hover,
  .btn.shop-basket-link:hover {
    filter: none;
  }
}

/* main-v1.x.css turns every a.btn grey on hover. Phones keep a link's :hover
   after it's tapped, and going back shows the page with it still applied, so
   the shop's link buttons ("Choose options", the basket link, ...) stay pink */
a.btn.basket-btn:hover,
a.btn.shop-basket-link:hover {
  color: var(--white);
  background-color: var(--pins-strong);
}

/* The checkout form's sections */
.basket-details fieldset {
  margin-bottom: 24px;
}

.basket-details legend {
  font-family: var(--font--primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.shop-uk-note {
  margin-bottom: 12px;
}

/* Links on the shop's pages: the darker pink; underlined within text (so
   they're not told apart by colour alone) */
.basket-continue a,
.shop-results a,
.shop-uk-note a,
.basket-options__help a,
.basket-details label a,
.shop-category__description a,
.shop-product p a,
.order-details a,
.shop-detail__faqs a,
.shop-faqs a {
  color: var(--pins-strong);
}

.shop-uk-note a,
.basket-options__help a,
.basket-details label a,
.shop-category__description a,
.shop-product p a,
.shop-faq__answer a,
.shop-faqs__more a {
  text-decoration: underline;
}

/* Links on their own, not within text (the site underlines links in
   paragraphs) */
.basket-continue a,
.shop-results a,
.shop-detail__faqs a,
.order-details a {
  text-decoration: none;
}

/* The product's delivery cost, under its price */
.shop-product__delivery {
  font-size: 0.9rem;
  color: #555;
}

/* The shop FAQs page */
.shop-faqs {
  margin-bottom: 40px;
}

/* (a readable line length) */
.shop-faqs__list {
  max-width: 48rem;
}

.shop-faq {
  margin-bottom: 24px;
}

.shop-faq__question {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* (the default grey is a little too light on the summary's background) */
.basket-summary .btn-outline-secondary {
  --bs-btn-color: #4a4a4a;
  --bs-btn-border-color: #6c757d;
}
