.startertk-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.startertk-cart-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.startertk-cart-icon.is-image {
  object-fit: contain;
}

.startertk-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--startertk-co-button);
  color: var(--startertk-co-button-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.startertk-cart-link-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.startertk-cart-link-icon > i,
.startertk-cart-link-icon > svg:not(.startertk-cart-icon) {
  font-size: 22px;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.startertk-cart-link .startertk-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
}

.startertk-cart-count.is-empty {
  display: none;
}

.startertk-cart-head .startertk-cart-count.is-empty {
  display: inline-grid;
}

.startertk-cart-float {
  position: fixed;
  z-index: 99990;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--startertk-co-button);
  color: var(--startertk-co-button-text);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.startertk-cart-float:hover,
.startertk-cart-float:focus-visible {
  background: var(--startertk-co-button-hover);
  color: var(--startertk-co-button-text);
  outline: 0;
  transform: translateY(-2px);
}

.startertk-cart-float.is-right {
  right: 24px;
}

.startertk-cart-float.is-left {
  left: 24px;
}

.startertk-cart-float .startertk-cart-icon {
  width: 26px;
  height: 26px;
}

.startertk-cart-float .startertk-cart-icon.is-image {
  width: 34px;
  height: 34px;
}

.startertk-cart-float .startertk-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  border: 2px solid var(--startertk-co-button-text);
}

/* "Complete my order" */

.startertk-cart-finish {
  position: fixed;
  z-index: 99989;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--startertk-co-finish, var(--startertk-co-button));
  color: var(--startertk-co-finish-text, var(--startertk-co-button-text));
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 12px 28px -12px rgba(0, 0, 0, 0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}

.startertk-cart-finish:hover,
.startertk-cart-finish:focus-visible {
  background: var(--startertk-co-finish-hover, var(--startertk-co-button-hover));
  color: var(--startertk-co-finish-text, var(--startertk-co-button-text));
  outline: 0;
  transform: translateY(-2px);
}

.startertk-cart-finish[hidden] {
  display: none;
}

.startertk-cart-finish.is-stacked {
  bottom: 96px;
}

/* The number of products, in a bubble on the button's corner, in its colours reversed. */
.startertk-cart-finish-count {
  position: absolute;
  top: -7px;
  right: -7px;
  box-sizing: border-box;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid var(--startertk-co-finish, var(--startertk-co-button));
  border-radius: 999px;
  background: var(--startertk-co-finish-text, var(--startertk-co-button-text));
  color: var(--startertk-co-finish, var(--startertk-co-button));
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
}

.startertk-cart-finish-total {
  padding-left: 12px;
  border-left: 1px solid currentColor;
  border-left-color: color-mix(in srgb, currentColor 30%, transparent);
  font-weight: 400;
}

@media (max-width: 767px) {
  .startertk-cart-finish {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
  }

  .startertk-cart-finish.is-stacked {
    bottom: 88px;
  }

  /*
   * The tab: held against the middle of the right edge, it only shows the total and the number
   * of products, so it does not cover the foot of the page. A first tap unfolds the label, a
   * second one follows the link (see cart-front.js).
   */
  .startertk-cart-finish.is-tab,
  .startertk-cart-finish.is-tab.is-stacked {
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    gap: 0;
    max-width: calc(100vw - 24px);
    padding: 7px 8px 7px 12px;
    border-radius: 999px 0 0 999px;
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 18px -10px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%);
  }

  .startertk-cart-finish.is-tab:hover,
  .startertk-cart-finish.is-tab:focus-visible {
    transform: translateY(-50%);
  }

  .startertk-cart-finish.is-tab .startertk-cart-finish-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
  }

  .startertk-cart-finish.is-tab .startertk-cart-finish-total {
    padding-left: 0;
    border-left-color: transparent;
    font-weight: 600;
    transition: padding 0.25s ease, border-color 0.25s ease;
  }

  .startertk-cart-finish.is-tab.is-open .startertk-cart-finish-label {
    max-width: 16rem;
    margin-right: 12px;
    opacity: 1;
  }

  .startertk-cart-finish.is-tab.is-open .startertk-cart-finish-total {
    padding-left: 12px;
    border-left-color: color-mix(in srgb, currentColor 30%, transparent);
    font-weight: 400;
  }

  /* The bubble on the inner corner: on the outer one, the edge of the screen would cut it. */
  .startertk-cart-finish.is-tab .startertk-cart-finish-count {
    top: -8px;
    right: auto;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-width: 1.5px;
    font-size: 10px;
    line-height: 15px;
  }

  /* Unfolded, it is a button to press: back to a comfortable height. */
  .startertk-cart-finish.is-tab.is-open {
    padding: 11px 12px 11px 16px;
    font-size: 14px;
  }
}

/* "Added to your cart" */

.startertk-cart-toast {
  position: fixed;
  z-index: 100001;
  top: 20px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: var(--startertk-co-radius, 10px);
  background: var(--startertk-co-button);
  color: var(--startertk-co-button-text);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 12px 28px -12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.startertk-cart-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

.startertk-cart-toast[hidden] {
  display: none;
}

body.admin-bar .startertk-cart-toast {
  top: 52px;
}

html.startertk-cart-locked {
  overflow: hidden;
}

.startertk-cart {
  position: fixed;
  z-index: 99999;
  inset: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.startertk-cart[hidden] {
  display: none;
}

.startertk-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 35, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.startertk-cart.is-open .startertk-cart-backdrop {
  opacity: 1;
}

.startertk-cart-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  background: var(--startertk-co-page);
  color: var(--startertk-co-text);
  outline: 0;
  transition: transform 0.25s ease;
}

.startertk-cart.is-right .startertk-cart-panel {
  right: 0;
  transform: translateX(100%);
}

.startertk-cart.is-left .startertk-cart-panel {
  left: 0;
  transform: translateX(-100%);
}

.startertk-cart.is-open .startertk-cart-panel {
  transform: none;
}

.startertk-cart-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--startertk-co-border);
  background: var(--startertk-cart-head, transparent);
}

.startertk-cart-head strong {
  font-size: 18px;
}

.startertk-cart-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--startertk-co-text);
  cursor: pointer;
}

.startertk-cart-close:hover {
  background: var(--startertk-co-summary);
}

.startertk-cart-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.startertk-cart-empty {
  display: grid;
  gap: 16px;
  margin: auto;
  padding: 24px;
  color: var(--startertk-co-muted);
  text-align: center;
}

.startertk-cart-empty p {
  margin: 0;
}

.startertk-cart-free {
  padding: 14px 22px;
  border-bottom: 1px solid var(--startertk-co-border);
  background: var(--startertk-cart-card, var(--startertk-co-summary));
  font-size: 14px;
}

.startertk-cart-free p {
  margin: 0 0 8px;
}

.startertk-cart-free-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--startertk-co-border);
}

.startertk-cart-free-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--startertk-co-button);
  transition: width 0.3s ease;
}

/* The items and the suggestions scroll together, between the head and the foot. */
.startertk-cart-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 22px 18px;
  overflow-y: auto;
}

.startertk-cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.startertk-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--startertk-co-border);
  transition: opacity 0.15s ease;
}

.startertk-cart-item:last-child {
  border-bottom: 0;
}

.startertk-cart-item.is-busy {
  opacity: 0.5;
}

.startertk-cart-thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--startertk-co-border);
  border-radius: 8px;
}

.startertk-cart-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.startertk-cart-text a,
.startertk-cart-text strong {
  color: var(--startertk-co-text);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

/*
 * The products' names in the main colour, whatever the theme gives its links — visited or not,
 * and what they hold (a variation's weight, a size). Marked important: some themes style every
 * link with !important, and the name is the one link the panel must keep.
 */
.startertk-cart .startertk-cart-panel .startertk-cart-text a,
.startertk-cart .startertk-cart-panel .startertk-cart-text a:visited,
.startertk-cart .startertk-cart-panel .startertk-cart-text a * {
  color: var(--startertk-co-link, var(--startertk-co-button)) !important;
  text-decoration: none !important;
}

.startertk-cart .startertk-cart-panel .startertk-cart-text a:hover,
.startertk-cart .startertk-cart-panel .startertk-cart-text a:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Suggestions: the products the cart's products point to, each one a click away. */
.startertk-cart-suggest {
  margin: 6px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--startertk-cart-card, var(--startertk-co-summary));
}

.startertk-cart .startertk-cart-suggest-title {
  margin: 0 0 12px;
  color: var(--startertk-co-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.startertk-cart-suggest ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.startertk-cart-suggest-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.startertk-cart-suggest-item .startertk-cart-thumb img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
}

.startertk-cart-suggest-item .startertk-cart-text {
  gap: 2px;
}

/* The name on two lines at most: a long one never pushes the button out. */
.startertk-cart .startertk-cart-panel .startertk-cart-suggest-item .startertk-cart-text a {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.startertk-cart-suggest-price {
  color: var(--startertk-co-muted);
  font-size: 13px;
  line-height: 1.3;
}

.startertk-cart .startertk-cart-suggest-add {
  padding: 6px 12px;
  border: 1px solid var(--startertk-co-button);
  border-radius: 999px;
  background: transparent;
  color: var(--startertk-co-button);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.startertk-cart .startertk-cart-suggest-add:hover,
.startertk-cart .startertk-cart-suggest-add:focus-visible {
  background: var(--startertk-co-button);
  color: var(--startertk-co-button-text);
  outline: 0;
}

.startertk-cart .startertk-cart-suggest-add.is-busy,
.startertk-cart .startertk-cart-suggest-add:disabled {
  opacity: 0.6;
  cursor: default;
}

.startertk-cart-text dl {
  margin: 0;
  color: var(--startertk-co-muted);
  font-size: 13px;
}

.startertk-cart-qty {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  overflow: hidden;
  border: 1px solid var(--startertk-co-border);
  border-radius: 999px;
}

.startertk-cart-qty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-family: inherit;
  line-height: 1;
  text-align: center;
  border: 0;
  background: none;
  color: var(--startertk-co-text);
  font-size: 15px;
  cursor: pointer;
}

.startertk-cart-qty input {
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--startertk-co-text);
  font: inherit;
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}

.startertk-cart-qty input::-webkit-outer-spin-button,
.startertk-cart-qty input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.startertk-cart-qty-fixed {
  color: var(--startertk-co-muted);
  font-size: 13px;
}

.startertk-cart-price {
  align-self: start;
  padding-top: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.startertk-cart-remove,
.startertk-cart-remove:is(:hover, :focus, :active) {
  position: absolute;
  top: calc(50% - 40px);
  left: -8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px !important;
  min-width: 0 !important;
  height: 22px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--startertk-co-border) !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--startertk-co-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transform: none !important;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.startertk-cart-remove:is(:hover, :focus-visible) {
  border-color: #f4c7c3 !important;
  background: #fdecea !important;
  color: #b3261e !important;
}

.startertk-cart-foot {
  display: grid;
  gap: 10px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--startertk-co-border);
  background: var(--startertk-cart-foot, var(--startertk-co-summary));
}

.startertk-cart-foot dl {
  display: flex;
  justify-content: space-between;
  margin: 0 0 4px;
  font-size: 16px;
}

.startertk-cart-foot dt,
.startertk-cart-foot dd {
  margin: 0;
}

.startertk-cart-foot dd {
  font-weight: 700;
}

.startertk-cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--startertk-co-button);
  border-radius: var(--startertk-co-radius);
  background: var(--startertk-co-button);
  color: var(--startertk-co-button-text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.startertk-cart-button:hover,
.startertk-cart-button:focus-visible {
  background: var(--startertk-co-button-hover);
  border-color: var(--startertk-co-button-hover);
  color: var(--startertk-co-button-text);
  outline: 0;
}

.startertk-cart-button.is-quiet {
  min-height: 42px;
  border-color: transparent;
  background: none;
  color: var(--startertk-co-link);
  font-weight: 600;
}

.startertk-cart-button.is-quiet:hover {
  background: none;
  color: var(--startertk-co-button-hover);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .startertk-cart-panel,
  .startertk-cart-backdrop,
  .startertk-cart-float,
  .startertk-cart-finish,
  .startertk-cart-finish.is-tab .startertk-cart-finish-label,
  .startertk-cart-finish.is-tab .startertk-cart-finish-total,
  .startertk-cart-toast {
    transition: none;
  }
}

.startertk-cart .startertk-cart-button,
.startertk-cart .startertk-cart-button:visited {
  border: 1px solid var(--startertk-co-button);
  border-radius: var(--startertk-co-radius, 10px);
  background: var(--startertk-co-button);
  color: var(--startertk-co-button-text);
  text-decoration: none;
}

.startertk-cart .startertk-cart-button:hover,
.startertk-cart .startertk-cart-button:focus-visible {
  border-color: var(--startertk-co-button-hover);
  background: var(--startertk-co-button-hover);
  color: var(--startertk-co-button-text);
}

.startertk-cart .startertk-cart-button.is-quiet,
.startertk-cart .startertk-cart-button.is-quiet:hover,
.startertk-cart .startertk-cart-button.is-quiet:focus {
  border-color: transparent;
  background: none;
  color: var(--startertk-co-link);
}

.startertk-cart .startertk-cart-button.is-quiet:hover {
  text-decoration: underline;
}

.startertk-cart .startertk-cart-button.is-light,
.startertk-cart .startertk-cart-button.is-light:visited {
  border-color: var(--startertk-co-button-light);
  background: var(--startertk-co-button-light);
  color: var(--startertk-co-button-light-text);
}

.startertk-cart .startertk-cart-button.is-light:hover,
.startertk-cart .startertk-cart-button.is-light:focus-visible {
  border-color: var(--startertk-co-button-light-text);
  background: var(--startertk-co-button-light);
  color: var(--startertk-co-button-light-text);
}

.startertk-cart-text dl.variation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 6px;
  margin: 4px 0 0;
  font-size: 0.8em;
  line-height: 1.4;
  opacity: 0.75;
}

.startertk-cart-text dl.variation dt,
.startertk-cart-text dl.variation dd {
  margin: 0;
  padding: 0;
}

.startertk-cart-text dl.variation dt {
  font-weight: 600;
}

.startertk-cart-text dl.variation dd p {
  margin: 0;
}
