.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);
}

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);
}

.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-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;
}

.startertk-cart-items {
  flex: 1 1 auto;
  margin: 0;
  padding: 8px 22px;
  overflow-y: auto;
  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;
}

.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 {
  position: absolute;
  top: 7px;
  left: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--startertk-co-border);
  border-radius: 50%;
  background: #fff;
  color: var(--startertk-co-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.startertk-cart-remove:hover {
  border-color: #b3261e;
  color: #b3261e;
}

.startertk-cart-foot {
  display: grid;
  gap: 10px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--startertk-co-border);
  background: 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 {
    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);
}
