/* ==========================================================================
   COMPONENT / BUTTONS
   Reusable button styles. Add new variants here — never write a one-off
   button style inside a page file.
   ========================================================================== */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 247px;
  height: 68px;
  border-radius: var(--radius-pill);
  background-color: var(--color-pink-accent);
  color: var(--color-white);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 261px;
  height: 68px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-primary-navy);
  background-color: transparent;
  color: var(--color-primary-navy);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-cta-secondary:hover {
  background-color: rgba(0, 0, 128, 0.05);
  transform: translateY(-2px);
}

.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

/* --- Size modifiers ---
   Default .btn-cta-primary keeps its original fixed width/height
   (Cart Summary screens). Other screens (e.g. Cart - Sign in) need a
   button that sizes to its content or fills its container instead.
   Figma for Cart - Sign in also specifies radius:100px and slightly
   different padding than the default button — both overridden here. */
.btn-cta-primary--compact {
  width: auto;
  height: auto;
  border-radius: var(--radius-pill-100);
  padding: 12px var(--space-6) 20px; /* exact Figma values */
  gap: var(--space-3);
  /* width: 135px; */
  align-self: flex-end;
  line-height: 1;
  height: 60px;
  padding: 0 36px;
  min-width: 135px;
}

.btn-cta--white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 247px;
  height: 68px;
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  color: var(--color-pink-accent);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.btn-cta-primary--full {
  width: 100%;
  height: auto;
  border-radius: var(--radius-pill-100);
  padding: var(--space-6) var(--space-12);
  gap: var(--space-4);
}

/* ==========================================================================
   RESPONSIVE — Buttons
   ========================================================================== */
@media (max-width: 767px) {
  .action-buttons {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
}

@media (max-width: 599px) {
  .action-buttons {
    flex-wrap: nowrap;
    width: 100%;
    gap: var(--space-3);
  }

  .action-buttons .btn-cta-primary,
  .action-buttons .btn-cta-secondary {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    height: 52px;
    padding: 0 12px;
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 280px;
    height: 56px;
    font-size: 18px;
  }
}
