.ppf-form {
  --ppf-ink: #24141f;
  --ppf-muted: #75656f;
  --ppf-line: #eadde5;
  --ppf-accent: #b0005a;
  --ppf-accent-dark: #870045;
  --ppf-gold: #d4af37;
  --ppf-gold-soft: #fff7df;
  color: var(--ppf-ink);
  max-width: 760px;
  margin: 18px auto;
  font-family: inherit;
}

.ppf-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.ppf-form-header h3,
.ppf-product h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.15;
}

.ppf-form-header p,
.ppf-product p,
.ppf-shipping-note {
  color: var(--ppf-muted);
  margin: 0 0 18px;
}

.ppf-kicker {
  color: var(--ppf-accent);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ppf-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ppf-grid label,
.ppf-form label {
  color: var(--ppf-ink);
  display: grid;
  font-size: 0.92rem;
  font-weight: 650;
  gap: 7px;
}

.ppf-form input,
.ppf-form select,
.ppf-form textarea {
  border: 1px solid var(--ppf-line);
  border-radius: 6px;
  color: var(--ppf-ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.ppf-form select {
  appearance: none;
  background-color: rgba(255, 255, 255, 0.88);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ppf-accent) 50%),
    linear-gradient(135deg, var(--ppf-accent) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 36px;
}

.ppf-form input[type="radio"],
.ppf-form input[type="checkbox"] {
  accent-color: var(--ppf-gold);
  border: 1px solid var(--ppf-gold);
  box-shadow: none;
  flex: 0 0 16px;
  height: 16px;
  margin: 0;
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.ppf-form input:focus,
.ppf-form select:focus,
.ppf-form textarea:focus {
  border-color: var(--ppf-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
  outline: none;
}

.ppf-form select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ppf-gold) 50%),
    linear-gradient(135deg, var(--ppf-gold) 50%, transparent 50%);
}

.ppf-form input[type="radio"]:focus,
.ppf-form input[type="checkbox"]:focus {
  border-color: var(--ppf-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.28);
  outline: none;
}

.ppf-amounts,
.ppf-frequency,
.ppf-format {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.ppf-amount,
.ppf-frequency label,
.ppf-format label {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ppf-line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
}

.ppf-frequency label,
.ppf-format label {
  display: inline-flex !important;
  flex-direction: row;
  line-height: 1.2;
  white-space: nowrap;
  width: auto;
}

.ppf-format strong {
  margin-left: 4px;
}

.ppf-amount {
  color: var(--ppf-ink);
  font: inherit;
  font-weight: 750;
}

.ppf-amount:focus,
.ppf-amount:active {
  border-color: var(--ppf-gold);
  box-shadow: none;
  outline: 2px solid var(--ppf-gold);
  outline-offset: 2px;
}

.ppf-amount.is-active,
.ppf-format label.is-active {
  background: var(--ppf-gold-soft);
  border-color: var(--ppf-gold);
  color: var(--ppf-accent-dark);
}

.ppf-custom-amount,
.ppf-delivery,
.ppf-merch-addon,
.ppf-merch-fields {
  margin: 14px 0;
}

.ppf-merch-addon,
.ppf-merch-fields {
  background: rgba(255, 247, 223, 0.36);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 8px;
  padding: 14px;
}

.ppf-merch-toggle {
  align-items: center;
  display: inline-flex !important;
  flex-direction: row;
  gap: 9px;
  margin: 0;
}

.ppf-merch-addon .ppf-merch-fields {
  background: transparent;
  border: 0;
  padding: 12px 0 0;
}

.ppf-merch-fields .ppf-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ppf-delivery {
  background: rgba(255, 247, 223, 0.52);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 18px 16px 20px;
}

.ppf-delivery h4 {
  margin: 0 0 16px;
}

.ppf-delivery label {
  gap: 10px;
  margin-bottom: 14px;
}

.ppf-delivery .ppf-grid {
  gap: 18px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 16px;
}

.ppf-shipping-note {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  margin-top: 8px;
}

.ppf-native-select {
  display: none !important;
}

.ppf-custom-select {
  position: relative;
  width: 100%;
  z-index: 5;
}

.ppf-custom-select-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ppf-line);
  border-radius: 6px;
  color: var(--ppf-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 650;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 36px 10px 12px;
  position: relative;
  text-align: left;
  width: 100%;
}

.ppf-custom-select-button::after {
  border-bottom: 2px solid var(--ppf-gold);
  border-right: 2px solid var(--ppf-gold);
  content: "";
  height: 7px;
  position: absolute;
  right: 16px;
  top: 16px;
  transform: rotate(45deg);
  width: 7px;
}

.ppf-custom-select-button:focus,
.ppf-custom-select.is-open .ppf-custom-select-button {
  border-color: var(--ppf-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
  outline: none;
}

.ppf-custom-select-list {
  background: #fff;
  border: 1px solid var(--ppf-gold);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(36, 20, 31, 0.14);
  display: none;
  left: 0;
  max-height: 245px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.ppf-custom-select.is-open .ppf-custom-select-list {
  display: grid;
}

.ppf-custom-select-option {
  background: #fff;
  border: 0;
  border-radius: 4px;
  color: var(--ppf-ink);
  cursor: pointer;
  font: inherit;
  padding: 9px 10px;
  text-align: left;
}

.ppf-custom-select-option:hover,
.ppf-custom-select-option:focus {
  background: var(--ppf-gold-soft);
  color: var(--ppf-accent-dark);
  outline: none;
}

.ppf-product {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-bottom: 20px;
}

.ppf-cover img {
  border-radius: 8px;
  display: block;
  height: auto;
  max-width: 180px;
  width: 100%;
}

.ppf-total {
  align-items: center;
  border-top: 1px solid rgba(212, 175, 55, 0.6);
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
}

.ppf-total strong {
  color: var(--ppf-accent);
  font-size: 1.35rem;
}

.ppf-submit {
  background: var(--ppf-accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  margin-top: 18px;
  min-height: 48px;
  padding: 13px 20px;
  text-decoration: none;
  width: 100%;
}

.ppf-submit:hover,
.ppf-submit:focus {
  background: var(--ppf-accent-dark);
  color: #ffffff;
}

.ppf-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ppf-message {
  margin-top: 12px;
  min-height: 22px;
}

.ppf-message.is-error {
  color: #9b1c1c;
}

.ppf-message.is-success {
  color: var(--ppf-accent-dark);
}

.ppf-hp {
  border: 0 !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px !important;
  left: -10000px !important;
  min-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  position: absolute !important;
  top: auto !important;
  width: 1px !important;
}

.is-hidden {
  display: none !important;
}

.ppf-callback-page {
  margin: 40px auto;
  max-width: 780px;
  padding: 20px;
}

@media (max-width: 720px) {
  .ppf-grid,
  .ppf-product {
    grid-template-columns: 1fr;
  }

  .ppf-cover img {
    max-width: 220px;
  }
}
