.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0 0.8rem;
  border: 1px solid var(--blue);
  border-radius: 0.2rem;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.25rem;
  background: var(--blue);
  color: #001018;
  font-size: 0.68rem;
}

.cart-button.cart-bump strong {
  animation: cart-count-pop 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cart-count-pop {
  0% { transform: scale(1); }
  38% { transform: scale(1.34); box-shadow: 0 0 0 7px rgba(34, 200, 244, 0.18); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 200, 244, 0); }
}

.request-intro {
  display: grid;
  gap: 0.45rem;
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--blue);
}

.request-intro strong {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.request-intro p {
  max-width: 52rem;
  margin: 0;
  color: #b3bac1;
  font-size: 0.86rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.quantity-control {
  display: grid;
  grid-template-columns: 2rem 3rem 2rem;
  min-height: 2.6rem;
  border: 1px solid #aebac3;
  background: rgba(255, 255, 255, 0.55);
}

.quantity-control button,
.quantity-control input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.quantity-control button {
  cursor: pointer;
  font-size: 1.15rem;
}

.quantity-control input {
  width: 100%;
  border-right: 1px solid #c5ced5;
  border-left: 1px solid #c5ced5;
  appearance: textfield;
}

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

.add-request {
  min-height: 2.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #071018;
  border-radius: 0.15rem;
  background: #071018;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.add-request.added {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.add-check {
  display: inline-grid;
  place-items: center;
  margin-right: 0.25rem;
  animation: add-check-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes add-check-in {
  from { opacity: 0; transform: scale(0.35) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

body.cart-open {
  overflow: hidden;
}

.cart-backdrop {
  position: fixed;
  z-index: 149;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  transition: opacity 180ms ease;
}

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

.cart-drawer {
  position: fixed;
  z-index: 150;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 31rem);
  background: #0d1013;
  color: #fff;
  box-shadow: -1rem 0 3rem rgba(0, 0, 0, 0.28);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cart-header .eyebrow {
  margin-bottom: 0.55rem;
}

.cart-header h2 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.cart-close {
  width: 2.6rem;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem;
}

.empty-cart {
  margin: 0;
  padding: 2rem 0;
  color: #949da6;
}

.empty-cart strong,
.empty-cart span {
  display: block;
}

.empty-cart strong {
  margin-bottom: 0.25rem;
  color: #fff;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .cart-item {
    animation: cart-item-in 260ms ease both;
    transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, padding 180ms ease;
  }

  .cart-item.removing {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateX(10px);
    overflow: hidden;
  }
}

@keyframes cart-item-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.15;
}

.cart-item p {
  margin: 0;
  color: #8f99a2;
  font-size: 0.76rem;
}

.cart-item-controls {
  display: grid;
  grid-template-columns: 2rem 2rem 2rem;
  align-items: center;
  align-self: center;
  border: 1px solid #39434c;
}

.cart-item-controls button,
.cart-item-controls span {
  display: grid;
  place-items: center;
  min-height: 2rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 850;
}

.cart-item-controls button {
  cursor: pointer;
}

.remove-cart-item {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #91a0aa;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.cart-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #090b0d;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cart-total strong {
  color: var(--blue);
  font-size: 1.6rem;
}

.cart-price-note,
.cart-disclaimer {
  margin: 0.35rem 0 0.9rem;
  color: #8f99a2;
  font-size: 0.7rem;
  line-height: 1.45;
}

.form-preview-note {
  margin: 0.8rem 0 1rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--blue);
  background: rgba(34, 200, 244, 0.08);
  color: #aeb8c0;
  font-size: 0.7rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.2em;
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
}

.form-preview-note strong {
  display: block;
  color: var(--blue);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.request-field {
  display: grid;
  gap: 0.3rem;
}

.request-field-wide,
.research-confirm,
.copy-confirm,
.request-form .email-request {
  grid-column: 1 / -1;
}

.request-field label {
  color: #d6dbe0;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-field label span {
  color: #71808a;
  font-size: 0.58rem;
}

.request-field input,
.request-field textarea {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #3a444d;
  border-radius: 0.15rem;
  background: #050607;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  resize: vertical;
}

.request-field input:focus,
.request-field textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(34, 200, 244, 0.22);
  outline-offset: 1px;
}

.research-confirm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  margin: 1rem 0;
  color: #d6dbe0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.copy-confirm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  color: #d6dbe0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.copy-confirm input {
  width: 1rem;
  height: 1rem;
  margin: 0.12rem 0 0;
  accent-color: var(--blue);
}

.request-success {
  padding: 1rem 0 0.25rem;
  text-align: center;
}

.request-success[hidden] {
  display: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1.1rem;
  background: var(--blue);
  color: #001018;
  font-size: 1.7rem;
  font-weight: 950;
}

.success-mark svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.success-mark path {
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  animation: success-check-draw 620ms 120ms ease forwards;
}

@keyframes success-check-draw {
  to { stroke-dashoffset: 0; }
}

.request-success .eyebrow {
  margin-bottom: 0.55rem;
}

.request-success h3 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.request-number {
  color: var(--blue) !important;
  font-size: 0.66rem !important;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-success > p:not(.eyebrow):not(.form-preview-note) {
  margin: 1rem auto;
  color: #9aa4ad;
  font-size: 0.82rem;
}

.research-confirm input {
  width: 1rem;
  height: 1rem;
  margin: 0.12rem 0 0;
  accent-color: var(--blue);
}

.email-request,
.copy-request {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--blue);
  border-radius: 0.15rem;
  background: var(--blue);
  color: #001018;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-request {
  margin-top: 0.55rem;
  background: transparent;
  color: var(--blue);
}

.email-request:disabled,
.copy-request:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

html[data-theme="light"] .cart-button {
  color: #101820;
}

html[data-theme="light"] .request-intro p {
  color: #4f5c66;
}

html[data-theme="light"] .cart-drawer {
  background: #f7f9fb;
  color: #0a1118;
}

html[data-theme="light"] .cart-close {
  border-color: #101820;
  color: #101820;
}

html[data-theme="light"] .empty-cart,
html[data-theme="light"] .cart-item p,
html[data-theme="light"] .cart-price-note,
html[data-theme="light"] .cart-disclaimer,
html[data-theme="light"] .remove-cart-item {
  color: #626e78;
}

html[data-theme="light"] .empty-cart strong {
  color: #101820;
}

html[data-theme="light"] .cart-item-controls {
  border-color: #b6c0c8;
}

html[data-theme="light"] .cart-item-controls button,
html[data-theme="light"] .cart-item-controls span {
  color: #101820;
}

html[data-theme="light"] .cart-footer {
  background: #edf2f5;
}

html[data-theme="light"] .research-confirm {
  color: #26313a;
}

html[data-theme="light"] .copy-confirm,
html[data-theme="light"] .request-field label {
  color: #26313a;
}

html[data-theme="light"] .request-field input,
html[data-theme="light"] .request-field textarea {
  border-color: #b6c0c8;
  background: #fff;
  color: #101820;
}

html[data-theme="light"] .form-preview-note {
  color: #53606a;
}

html[data-theme="light"] .request-success > p:not(.eyebrow):not(.form-preview-note) {
  color: #5f6973;
}

@media (max-width: 460px) {
  .cart-button span {
    display: none;
  }

  .cart-button {
    width: 2.6rem;
    padding: 0;
    justify-content: center;
  }

  .product-actions {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .quantity-control {
    grid-template-columns: 1.85rem 2.8rem 1.85rem;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .request-field {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-button.cart-bump strong,
  .add-check,
  .success-mark path {
    animation: none;
  }

  .success-mark path {
    stroke-dashoffset: 0;
  }

  .cart-backdrop,
  .cart-drawer {
    transition: none;
  }
}
