html[data-cart-presentation] #cart-drawer .js-cart-pay:is(:disabled, [aria-disabled="true"])::before {
  border-color: color-mix(in srgb, var(--game-brand) 48%, transparent);
  box-shadow: none;
}

html[data-cart-presentation] #cart-drawer .js-cart-pay:not(:disabled)::before {
  --dt-drawer-pay-shadow:
    0 0 0 1px color-mix(in srgb, var(--game-brand) 55%, rgba(255, 255, 255, .08)) inset,
    0 0 12px var(--game-brand-soft);
  box-shadow: var(--dt-drawer-pay-shadow);
}

html[data-cart-presentation] :is(#cart-items .item-counter, #cart-drawer .cart-qty) > :is(.inc, .dec, .js-inc, .js-dec) {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--dt-control-radius);
  background: transparent;
  color: var(--dt-control-idle-color);
  box-shadow: none;
  font: 600 18px/1 var(--font-body) !important;
  transition: color .15s ease;
}

html[data-cart-presentation] :is(#cart-items .item-counter, #cart-drawer .cart-qty) > :is(.inc, .dec, .js-inc, .js-dec):active {
  color: var(--dt-control-hover-color);
  filter: none;
}

html[data-cart-presentation] :is(#cart-items .item-counter, #cart-drawer .cart-qty) > :is(.inc, .dec, .js-inc, .js-dec):focus-visible {
  outline: 1px solid var(--dt-control-hover-color);
  outline-offset: -2px;
}

@media (hover: hover) {
  html[data-cart-presentation] #cart-drawer .js-cart-pay:hover:not(:disabled)::before {
    box-shadow: var(--dt-drawer-pay-shadow), 0 0 20px var(--game-brand-soft);
  }

  html[data-cart-presentation] :is(#cart-items .item-counter, #cart-drawer .cart-qty) > :is(.inc, .dec, .js-inc, .js-dec):hover {
    color: var(--dt-control-hover-color);
    background: transparent;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-cart-presentation] :is(#cart-items .item-counter, #cart-drawer .cart-qty) > :is(.inc, .dec, .js-inc, .js-dec) {
    transition: none;
  }
}
html[data-cart-presentation] :is(.cart-desktop-total-row, #cart-drawer .cart-drawer__footer > :has(> .js-cart-total)) ,
.steam-checkout-summary .steam-checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

html[data-cart-presentation] .cart-desktop-total-row {
  margin-block-start: 12px;
}

html[data-cart-presentation] :is(#cart-total, #cart-drawer .js-cart-total) {
  flex: none;
  color: var(--dt-control-idle-color, #fff);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  white-space: nowrap;
}

@media (min-width: 1086px) {
  html[data-cart-presentation] #cart .cart-header-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[data-cart-presentation] #cart #cart-count {
    font-size: 16px;
  }

  html[data-cart-presentation] #cart .cart-desktop-total-row + #checkout-btn {
    margin-block-start: 12px;
  }
}

html[data-cart-presentation] #cart-drawer .cart-qty input {
  font-weight: 400;
}
.steam-checkout-summary #steam-checkout-total {
  font: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 1085px) {
  .steam-checkout-summary #steam-pay-btn {
    height: 48px;
    min-height: 48px;
    padding: 1px 6px;
    border-radius: 14px;
    font-weight: 400;
  }
}
