@font-face {
  font-family: "Mallory Compact";
  font-style: normal;
  font-weight: 300;
  src: url("/assets/MalloryCmpct-Light-D6QjLChD.woff2") format("woff2");
}

@font-face {
  font-family: "Mallory Compact";
  font-style: italic;
  font-weight: 300;
  src: url("/assets/MalloryCmpct-LightItalic-cvxrSRJF.woff2") format("woff2");
}

@font-face {
  font-family: "Mallory Compact";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/MalloryCmpct-Book-DOyauf0q.woff2") format("woff2");
}

@font-face {
  font-family: "Mallory Compact";
  font-style: italic;
  font-weight: 400;
  src: url("/assets/MalloryCmpct-BookItalic-BLhaM198.woff2") format("woff2");
}

@font-face {
  font-family: "Mallory Compact";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/MalloryCmpct-Bold-CtCgGMvW.woff2") format("woff2");
}

@font-face {
  font-family: "Mallory Compact";
  font-style: italic;
  font-weight: 700;
  src: url("/assets/MalloryCmpct-BoldItalic-BjUjPzyd.woff2") format("woff2");
}

/*
 * Reset
 * Adapted from Josh Comeau: https://www.joshwcomeau.com/css/custom-css-reset/
*/

/* Use a more-intuitive box-sizing model */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */

* {
  margin: 0;
}

/* fonts + more accessible line-height */

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

/* Improve media defaults */

img,
picture,
s video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form typography styles */

input,
button,
textarea,
select {
  font: inherit;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  display: none;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Avoid text overflows */

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/*
 * Base styles
 */

:root {
  --field-border-radius: 8px;

  /* color variables  */
  --true-white: #fff;
  --snow: #f7fbfc;

  --parchment: #f3f1e8;
  --lavender: #dae7ff;
  --teal: #c9efeb;
  --seashell: #ffe6ec;
  --sky: #daf8ff;
  --nickel: #cac8c0;
  --periwinkle: #b0b9f3;
  --surf: #9ee2c5;
  --cotton-candy: #ffa4ba;
  --lake: #8ce3f7;

  --stone: #6c6c6a;
  --dusk: #777ead;
  --advent-green: #00656c;
  --blush: #d25e8c;
  --slate: #383836;
  --violet: #394592;
  --forest: #003c43;
  --raspberry: #850b52;
  --midnight: #21274f;

  --grenadine: #e12759;
  --punch: #ff6274;
  --creamsicle: #fd7e47;
  --sunflower: #ffd24b;
  --cornflower: #596ff8;
  --cerulean: #049ff5;
}

body {
  font-family: "Mallory Compact", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #24201b;
  font-size: 1.1rem;
}

body.is-embedded {
  overflow: hidden;
}

@media (min-width: 801px) {
  body {
    font-size: 1.5rem;
  }
}

#checkout-form > .checkout-field {
  margin-bottom: 3rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
.checkbox-span,
.radio-span,
.amount-button label {
  appearance: none;
  border-radius: var(--field-border-radius);
  border: 1px solid rgba(80, 94, 104, 0.363);
  border-bottom-color: rgba(52, 67, 78, 0.497);
  box-shadow: rgba(0, 0, 0, 0.1) 0 1px 5px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  padding: 0.25rem 0.5rem;
}

a,
button,
input[type="submit"]:not(:disabled),
.amount-button,
.amount-button label,
input[type="checkbox"]:not(:disabled) {
  cursor: pointer;
}

input[type="submit"] {
  background-color: #355c9c;
  color: white;
  font-weight: 700;
  border: 0;
  padding: 0.5rem 2.7rem 0.6rem;
  display: block;
  border-radius: 3rem;
  margin: 2rem 0;
  transition: background-color 0.3s ease;
  font-size: 1.6rem;
}

input[type="submit"]:disabled {
  opacity: 0.5;
}

@media (min-width: 801px) {
  input[type="submit"] {
    font-size: 2.3rem;
  }
}

input[type="submit"]:hover:not(:disabled) {
  background-color: #e928a1;
}

input[type="submit"]:not(:disabled):active {
  background-color: #d41f90;
}

a {
  color: var(--advent-green);
}

label,
.additional-donation p {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

label.disabled *:not(.sold-out) {
  opacity: 0.5;
}

label span,
.amount-button label {
  color: #24201b;
  font-weight: 400;
}

label small {
  font-size: inherit;
  font-weight: 300;
}

label aside {
  background-color: white;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  border-radius: 10px;
  font-weight: 400;
  border: 1px solid #b7c8e5;
  margin-top: 1rem;
}

label .sold-out {
  background-color: var(--sunflower);
  display: inline-block;
  margin-left: 0.5rem;
  margin-right: 1rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 0.3rem;
  text-transform: uppercase;
}

.personal-info {
  display: flex;
  margin-bottom: 1rem;
  gap: 2rem;
}

@media (max-width: 768px) {
  .personal-info {
    flex-direction: column;
  }
}

.personal-info > div {
  flex: 1 0 auto;
}

.personal-info input {
  width: 100%;
}

.personal-info label {
  display: block;
}

h3 {
  margin-bottom: 1.3rem;
}

.recipient-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.4rem;
}

@media (min-width: 801px) {
  .recipient-group > * {
    width: calc(33% - 1.4rem);
    flex-grow: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 800px) {
  .recipient-group {
    flex-direction: column;
    gap: 2rem;
  }
}

.key-others-recipients {
  width: 100%;
  flex-shrink: 0;
}

.recipient {
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 0.3rem;
  padding: 0.5rem 0.7rem;
  padding: 1rem;
}

.recipient:not(:last-of-type) {
  margin-bottom: 1rem;
}

.recipient-info {
  display: flex;
  flex-wrap: wrap;
}

.recipient-field label {
  display: block;
}

.recipient-field.name,
.recipient-field.email {
  width: calc(50% - 0.5rem);
  margin-bottom: 0.5rem;
}

.recipient-field.name {
  margin-right: 0.5rem;
}

.recipient-field.email {
  margin-left: 0.5rem;
}

.recipient-field.name input,
.recipient-field.email input {
  width: 100%;
}

.recipient-field.message {
  width: 100%;
}

.recipient-field.message textarea {
  width: 100%;
}

.key-others {
  display: flex;
  gap: 0.5rem;
  font-size: 1.1rem;
  align-items: flex-start;
}

@media (min-width: 801px) {
  .key-others {
    font-size: 1.2rem;
  }
}

.amount-buttons {
  display: flex;
  align-items: center;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amount-button {
  list-style: none;
  display: block;
}

.amount-button label {
  padding: 0.8rem 1rem 1rem;
  background: white;
  border-radius: var(--field-border-radius);
  max-height: 65px;
  margin: 0;
  display: block;
  transform: scale(1);
  transition: background 0.2s ease, transform 0.3s ease;
}

.amount-button .amount {
  margin: 0 1rem;
}

.amount-button.other:has(input:checked),
.amount-button.other:has(input:checked) label {
  background: #355c9c;
  color: white;
}

.amount-button.other {
  display: flex;
  align-items: center;
  border-radius: var(--field-border-radius);
  max-height: 65px;
}

.amount-button input[type="radio"] {
  appearance: none;
  display: none;
}

.amount-button input:checked + label {
  font-weight: bold;
  background: #355c9c;
  color: white;
}

.amount-button label:hover {
  background: #deebff;
  transform: scale(1.03);
}

.amount-button input:disabled + label,
.amount-button.other:has(input:disabled),
.amount-button.other:has(input:disabled) label {
  background: var(--true-white);
  color: var(--dusk);
  opacity: 0.5;
  font-weight: 400;
}

.checkout-field.subscribe {
  position: relative;
}

.help-button {
  position: absolute;
  right: 2.5rem;
  top: 0;
  pointer-events: none;
}

.help-button button {
  background: #355c9c;
  color: white;
  border: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.3rem;
  border-radius: 2.5rem;
  position: absolute;
  left: 0;
  pointer-events: all;
}

.help-button[data-visible="visible"] button {
  background: var(--forest);
}

.help-button .help-box {
  background: #355c9c;
  color: white;
  padding: 0.7rem 1rem 0.8rem;
  pointer-events: none;
  position: absolute;
  right: -3rem;
  border-radius: var(--field-border-radius);
  min-width: 50vw;
  top: 3rem;
  box-shadow: rgba(0, 0, 0, 0.2) 0 1px 5px;
  z-index: 99;
  opacity: 0;
}

.help-button.hiding .help-box {
  animation: hide-box 0.3s ease forwards;
}

.help-button[data-visible="visible"] .help-box {
  animation: show-box 0.3s ease forwards;
}

@keyframes show-box {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  50% {
    transform: scale(1.01);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes hide-box {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.help-box:after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: #355c9c;
  position: absolute;
  top: -8px;
  right: 24px;
}

.help-box p {
  font-size: 0.95rem;
}

#checkout-total {
  font-size: 1.6rem;
}

@media (min-width: 801px) {
  #checkout-total {
    font-size: 2rem;
  }
}

.checkout-field.footer p {
  font-size: 1rem;
}

.checkout-field.footer p.error {
  color: var(--grenadine);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Customize the label (the container) */

.checkbox,
.radio {
  display: block;
  position: relative;
  padding-left: 45px;
  margin-top: 1rem;
  font-size: 1.1rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox.small,
.radio.small {
  padding-left: 32px;
  font-size: 1rem;
}

.checkbox:not(.disabled),
.radio:not(.disabled) {
  cursor: pointer;
}

@media (min-width: 801px) {
  .checkbox,
  .radio {
    font-size: 1.2rem;
  }
  .checkbox.small,
  .radio.small {
    font-size: 1rem;
  }
}

.checkbox.key-self,
.checkbox.product-self {
  margin-top: 0;
}

.checkbox input,
.radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox .checkbox-span,
.radio .radio-span {
  position: absolute;
  top: 0;
  left: 0;
  height: 32px;
  width: 32px;
  background-color: #fff;
  transition: background-color 0.15s ease;
}

.checkbox input:focus + .checkbox-span,
.radio input:focus + .radio-span {
  outline: 3px solid #8db3f1;
}

.checkbox.small .checkbox-span,
.radio.small .radio-span {
  width: 24px;
  height: 24px;
}

.checkbox .checkbox-span {
  border-radius: var(--field-border-radius);
}

.radio .radio-span {
  border-radius: 99px;
}

.checkbox:not(.disabled):hover input:not(:checked) + .checkbox-span,
.radio:not(.disabled):hover input:not(:checked) + .radio-span {
  background-color: #deebff;
}

.checkbox input:checked + .checkbox-span,
.radio input:checked + .radio-span {
  background-color: #355c9c;
}

.checkbox .checkbox-span:after,
.radio .radio-span:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox input:checked + .checkbox-span:after,
.radio input:checked + .radio-span:after {
  display: block;
}

.checkbox input:checked + .checkbox-span:after,
.radio input:checked + .radio-span:after {
  border-color: white !important;
}

.checkbox:not(.disabled):hover .checkbox-span:after,
.checkbox .checkbox-span:after {
  left: 10px;
  top: 4px;
  width: 10px;
  height: 18px;
  border: solid white;
  border-width: 0 4px 4px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.radio:not(.disabled):hover .radio-span:after,
.radio .radio-span:after {
  width: 10px;
  height: 10px;
  background-color: white;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 10px;
}

.checkbox:not(.disabled):hover .checkbox-span:after,
.radio:not(.disabled):hover .radio-span:after {
  border-color: var(--advent-green);
}

#checkout-form {
  background: #f7f7ff;
  padding: 2rem 1.5rem;
}

@media (min-width: 801px) {
  #checkout-form {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
