.product-detail__buy-buttons--cta {
  width: 100%;
}

.product-detail__buy-buttons--cta .product-detail__form,
.product-detail__buy-buttons--cta theme-product-form {
  display: block;
  width: 100%;
}

.pdp-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pdp-cta__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

/* Quantity: pill, fixed width, left of ATC */
.pdp-cta__qty.quantity-selector__input,
.product-detail__buy-buttons--cta theme-input-number.pdp-cta__qty {
  flex: 0 0 118px;
  width: 118px !important;
  min-width: 118px;
  height: 52px;
  color: #1a1a1a;
  background: #fff;
  border-radius: 999px;
  box-sizing: border-box;
}

.product-detail__buy-buttons--cta .pdp-cta__qty::before {
  box-shadow: none;
}

.product-detail__buy-buttons--cta .pdp-cta__qty::after {
  border-radius: 999px;
  box-shadow: 0 0 0 1px #d7ddd2;
}

.product-detail__buy-buttons--cta .pdp-cta__qty:hover::after {
  box-shadow: 0 0 0 1px #c5cebf;
}

.product-detail__buy-buttons--cta .pdp-cta__qty button[name="minus"],
.product-detail__buy-buttons--cta .pdp-cta__qty button[name="plus"] {
  width: 36px;
  color: #1a1a1a;
}

.product-detail__buy-buttons--cta .pdp-cta__qty input[type="number"] {
  color: #1a1a1a;
  font-weight: 700;
}

/* ADD TO CART */
.pdp-cta__atc {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 10px 18px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #194c2d, #2f7d49 68%, #5fd12b);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(25, 76, 45, 0.28);
  box-sizing: border-box;
}

.pdp-cta__atc::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  z-index: 1;
  width: 25%;
  pointer-events: none;
  content: "";
  background: rgba(255, 255, 255, 0.22);
  transform: skewX(-18deg);
  animation: pdp-cta-shine 2.8s infinite;
}

@keyframes pdp-cta-shine {
  0% {
    left: -35%;
  }

  55%,
  100% {
    left: 120%;
  }
}

.pdp-cta__atc-main,
.pdp-cta__atc-sub,
.pdp-cta__atc-loading {
  position: relative;
  z-index: 2;
}

.pdp-cta__atc-main {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.pdp-cta__atc-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #fff;
}

.pdp-cta__atc-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pdp-cta__atc-sub {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}

.pdp-cta__atc-spark {
  font-size: 10px;
  line-height: 1;
}

.pdp-cta__atc-loading {
  display: none;
  width: 18px;
  height: 18px;
}

.pdp-cta__atc.loading .pdp-cta__atc-main,
.pdp-cta__atc.loading .pdp-cta__atc-sub {
  display: none;
}

.pdp-cta__atc.loading .pdp-cta__atc-loading {
  display: block;
}

.pdp-cta__atc:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.pdp-cta__atc:disabled::before {
  animation: none;
}

/* BUY IT NOW */
.pdp-cta__buy {
  width: 100%;
}

.pdp-cta__buy > * {
  width: 100% !important;
}

.pdp-cta__buy :is(button, .button, [role="button"], .shopify-payment-button__button) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 48px;
  padding: 10px 16px;
  color: #194c2d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: #fff !important;
  border: 1.5px solid #194c2d !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.pdp-cta__buy :is(button, .button, [role="button"], .shopify-payment-button__button):hover {
  color: #fff !important;
  background: #194c2d !important;
}

@media (max-width: 959px) {
  .pdp-cta__row {
    gap: 8px;
  }

  .pdp-cta__qty.quantity-selector__input,
  .product-detail__buy-buttons--cta theme-input-number.pdp-cta__qty {
    flex-basis: 102px;
    width: 102px !important;
    min-width: 102px;
    height: 48px;
  }

  .pdp-cta__atc {
    min-height: 48px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .pdp-cta__atc-sub {
    display: none;
  }

  .pdp-cta__buy :is(button, .button, [role="button"], .shopify-payment-button__button) {
    min-height: 44px;
    font-size: 13px !important;
  }
}
