@import url("/css/design_v2/color.css");
@import url("/css/design_v2/font.css");
@import url("/css/design_v2/standards.css");
@import url("/css/design_v2/breakpoints.css");

.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--Space-XS);
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--Font-Family-Sans);
  font-size: var(--Text-Sizes-Text-Regular, 16px);
  font-style: normal;
  line-height: var(--Text-LineHeight-Standard); /* 150% */
  font-weight: var(--Font-Weight-400);
  transition: var(--Transition-Transform), var(--Transition-Border), var(--Transition-Color), var(--Transition-Background);
  border: var(--Border-Width-1) var(--Border-Style) transparent;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  -webkit-font-synthesis: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* Apply border-radius only to non-link buttons */
.pp-btn:not(.pp-btn--variant-link) {
  border-radius: var(--General-Padding-15, 112px);
}

/* Ensure no underline for anchors in any state (except link variant) */
.pp-btn:link:not(.pp-btn--variant-link),
.pp-btn:visited:not(.pp-btn--variant-link),
.pp-btn:hover:not(.pp-btn--variant-link),
.pp-btn:active:not(.pp-btn--variant-link),
.pp-btn:focus:not(.pp-btn--variant-link) {
  text-decoration: none;
}

/* Size variants (only standard and small) */
.pp-btn--size-standard {
  min-height: 48px;
  padding: 0 var(--Space-L);
}

.pp-btn--size-small {
  min-height: 40px;
  padding: 0 var(--Space-M);
}

/* Primary variant - default (red fill, white text, no border) */
.pp-btn--variant-primary,
.pp-btn.typography-body.pp-btn--variant-primary {
  background: var(--Color-Red-600, #E04C26);
  color: var(--Color-Primary-White) !important;
  border-color: transparent;
  font-weight: var(--Font-Weight-500);
}

/* Primary variant - reversed (white fill, red text, no border) */
.pp-btn--variant-primary.is-reversed,
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed {
  background: var(--Color-Primary-White);
  color: var(--Color-Red-600, #E04C26);
  border-color: transparent;
  font-weight: var(--Font-Weight-500);
}

/* Primary hover states */
.pp-btn--variant-primary:hover:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-primary:hover:not(.is-disabled) {
  background: var(--Color-Primary-Red-600-Hover);
  box-shadow: var(--Shadow-200);
  transform: translateY(-1px);
}

.pp-btn--variant-primary.is-reversed:hover:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed:hover:not(.is-disabled) {
  background: var(--Color-Primary-White-Hover);
  box-shadow: var(--Shadow-200);
  transform: translateY(-1px);
}

/* Primary active state */
.pp-btn--variant-primary:active:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-primary:active:not(.is-disabled) {
  transform: translateY(0);
  box-shadow: var(--Shadow-100);
}

/* Secondary variant - default (transparent fill, red border, red text) */
.pp-btn--variant-secondary,
.pp-btn.typography-body.pp-btn--variant-secondary {
  background: transparent;
  color: var(--Color-Red-600, #E04C26);
  border-color: var(--Color-Red-500, #FF7B5B);
  font-weight: var(--Font-Weight-400);
}

/* Secondary variant - reversed (transparent fill, white border, white text) */
.pp-btn--variant-secondary.is-reversed,
.pp-btn.typography-body.pp-btn--variant-secondary.is-reversed {
  background: transparent;
  color: var(--Color-Primary-White);
  border-color: var(--Color-Primary-White);
  font-weight: var(--Font-Weight-400);
}

/* Secondary hover states */
.pp-btn--variant-secondary:hover:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-secondary:hover:not(.is-disabled) {
  background: color-mix(in srgb, var(--Color-Red-600, #E04C26) var(--Opacity-Hover-Overlay-Light), transparent);
  box-shadow: var(--Shadow-200);
  border-color: var(--Color-Red-600, #E04C26);
  transform: translateY(-1px);
}

.pp-btn--variant-secondary.is-reversed:hover:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-secondary.is-reversed:hover:not(.is-disabled) {
  background: color-mix(in srgb, var(--Color-Primary-White) var(--Opacity-Hover-Overlay-Light), transparent);
  box-shadow: var(--Shadow-200);
  transform: translateY(-1px);
}

/* Secondary active state */
.pp-btn--variant-secondary:active:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-secondary:active:not(.is-disabled) {
  transform: translateY(0);
  box-shadow: var(--Shadow-100);
  opacity: var(--Opacity-Active);
}

/* Tertiary variant (no border, transparent fill, navy-500 text) */
.pp-btn--variant-tertiary,
.pp-btn.typography-body.pp-btn--variant-tertiary {
  background: transparent;
  color: var(--Color-Text-Navy-500);
  border-color: transparent;
  font-weight: var(--Font-Weight-400);
}

/* Tertiary hover state */
.pp-btn--variant-tertiary:hover:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-tertiary:hover:not(.is-disabled) {
  color: var(--Color-Primary-Red-600);
  background: color-mix(in srgb, var(--Color-Text-Navy-700) var(--Opacity-Hover-Overlay-Light), transparent);
  box-shadow: var(--Shadow-100);
  transform: translateY(-1px);
}

/* Tertiary active state */
.pp-btn--variant-tertiary:active:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-tertiary:active:not(.is-disabled) {
  transform: translateY(0);
  box-shadow: var(--Shadow-100);
  opacity: var(--Opacity-Active);
}

/* Link variant (text-only, underline by default, navy-500 text) */
.pp-btn--variant-link,
.pp-btn.typography-body.pp-btn--variant-link {
  background: transparent;
  color: var(--Text-Color-Links);
  border-color: transparent;
  padding: 0;
  text-decoration: underline;
  font-weight: var(--Font-Weight-400);
  font-size: var(--Text-Sizes-Text-Regular, 16px);
}

/* Link variant - underline off */
.pp-btn--variant-link.pp-btn--underline-off,
.pp-btn.typography-body.pp-btn--variant-link.pp-btn--underline-off {
  text-decoration: none;
}

.pp-btn--variant-link.pp-btn--underline-off:hover:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-link.pp-btn--underline-off:hover:not(.is-disabled) {
  text-decoration: none;
}

/* Link hover state */
.pp-btn--variant-link:hover:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-link:hover:not(.is-disabled) {
  color: var(--Color-Primary-Red-600);
  text-decoration: underline;
}

/* Link active state */
.pp-btn--variant-link:active:not(.is-disabled),
.pp-btn.typography-body.pp-btn--variant-link:active:not(.is-disabled) {
  opacity: var(--Opacity-Active);
}

/* Focus visible - use DSv2 focus outline */
.pp-btn:focus-visible {
  outline: var(--Focus-Outline-Width) solid var(--Color-Secondary-Yellow-500);
  outline-offset: var(--Focus-Outline-Offset);
}

/* Optional: treat text as matching page background (maintainable fallback) */
.pp-btn--text-transparent {
  color: var(--Color-Primary-White);
}

/* Disabled state */
.pp-btn.is-disabled,
.pp-btn[aria-disabled="true"],
.pp-btn:disabled {
  opacity: var(--Opacity-Disabled);
  cursor: not-allowed;
}

.pp-btn:disabled {
  pointer-events: none;
}

/* Ensure primary buttons ALWAYS have white text (including disabled, all states) */
.pp-btn--variant-primary,
.pp-btn.typography-body.pp-btn--variant-primary,
.pp-btn--variant-primary.is-disabled,
.pp-btn.typography-body.pp-btn--variant-primary.is-disabled,
.pp-btn--variant-primary[aria-disabled="true"],
.pp-btn.typography-body.pp-btn--variant-primary[aria-disabled="true"],
.pp-btn--variant-primary:disabled,
.pp-btn.typography-body.pp-btn--variant-primary:disabled,
.pp-btn--variant-primary:hover,
.pp-btn.typography-body.pp-btn--variant-primary:hover,
.pp-btn--variant-primary:active,
.pp-btn.typography-body.pp-btn--variant-primary:active,
.pp-btn--variant-primary:focus,
.pp-btn.typography-body.pp-btn--variant-primary:focus {
  color: var(--Color-Primary-White) !important;
}

/* Exception: reversed primary buttons use red text */
.pp-btn--variant-primary.is-reversed,
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed,
.pp-btn--variant-primary.is-reversed.is-disabled,
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed.is-disabled,
.pp-btn--variant-primary.is-reversed[aria-disabled="true"],
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed[aria-disabled="true"],
.pp-btn--variant-primary.is-reversed:disabled,
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed:disabled,
.pp-btn--variant-primary.is-reversed:hover,
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed:hover,
.pp-btn--variant-primary.is-reversed:active,
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed:active,
.pp-btn--variant-primary.is-reversed:focus,
.pp-btn.typography-body.pp-btn--variant-primary.is-reversed:focus {
  color: var(--Color-Primary-Red-600, #E04C26) !important;
}

/* Icon support */
.pp-btn--has-icon {
	display: inline-flex;
	align-items: center;
	gap: var(--Space-XS, 8px);
}

.pp-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1em;
	line-height: 1;
}

/* Make icons larger in buttons and override vertical-align for proper flexbox centering */
.pp-btn__icon .ui-icon {
	font-size: 2.0rem; /* 40px - extra large for maximum visibility */
	vertical-align: baseline;
}

/* Icon-only button (square, centered icon) */
.pp-btn--icon-only {
	padding: 0;
	min-width: 40px;
	width: 40px;
	height: 40px;
	justify-content: center;
}

.pp-btn--icon-only.pp-btn--size-standard {
	min-width: 48px;
	width: 48px;
	height: 48px;
}

.pp-btn--icon-only.pp-btn--size-small {
	min-width: 40px;
	width: 40px;
	height: 40px;
}

/* Icon position adjustments */
.pp-btn--icon-left .pp-btn__icon--left {
	order: -1;
}

/* Move icon closer to left edge when icon is on left */
.pp-btn--icon-left {
	padding-left: var(--Space-M, 16px);
}

.pp-btn--icon-right .pp-btn__icon--right {
	order: 1;
}

/* Move icon closer to right edge when icon is on right */
.pp-btn--icon-right {
	padding-right: var(--Space-M, 16px);
}

/* Responsive - mobile size adjustments */
/* No special responsive overrides for sizes; buttons are flexible by default */
