
:root {
  /* single source of truth for the checkout button stack — mirrored in
     purchase.js for the Stripe and PayPal iframes, which can't read CSS */
  --pay-button-radius: 8px;
  /* fed to Stripe as appearance.variables.spacingUnit, which is where the
     iframe's internal --spacing comes from */
  --pay-button-gap: 6px;
  /* rendered height of every button in the stack — also handed to the Stripe
     and PayPal SDKs, which take it as a final height, hence border-box below */
  --pay-button-height: 48px;
}

#text {
  max-width: 750px;
  padding: 40px 24px;
}

@media (max-width: 700px) {
  #text {
    padding: 40px 14px;
  }
}

.order-header {
  /* margin-top: 40px; */
  /* padding: 10px 0; */
  text-align: center;
}

#content .order-header h1 {
  margin-bottom: 20px;
}

/*.order-plugins {
  padding: 0 20px;
}*/

#order-form {
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .order-plugins {
    padding: 0 10px;
  }
}

#content .order-section {
  /*padding-bottom: 10px;*/
  margin: 10px 0;
}

#content .order-section ul {
  margin: 0;
  padding: 0;
}

#content .order-section .title {
  font-size: 1.1em;
  font-variation-settings: "wght" 750, "ital" 0, "opsz" 36, "ital" 1;
  color: #555;
  text-transform: uppercase;
  border: 1px solid #ddd;
  text-align: left;
  padding: 10px 0;
  margin-bottom: 6px !important;
  text-align: center;
  background: whitesmoke;
}

.order-section .title span {
  display: inline-block;
}

/* how many plugins the section holds, pinned to the right edge so the counts
   line up down the page rather than drifting with the title */
#content .order-section > .title {
  position: relative;
}

#content .order-section .title .section-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
}

/* a section that cannot fold still uses <details>, so its heading has to stop
   looking and behaving like a control */
#content .order-section:not(.collapsible) > .title {
  pointer-events: none;
}

#content .order-section > .title::-webkit-details-marker {
  display: none;
}

#content .order-section > .title {
  list-style: none;
}

#content .order-section.collapsible > .title {
  cursor: pointer;
}

/* the heading text is centred, so the caret is pinned to the left edge rather
   than riding along beside it */
#content .order-section.collapsible > .title::after {
  content: "";
  position: absolute;
  left: 11px;
  /* centred with auto margins rather than a translate, so the rotation below
     has the transform to itself and the caret stays put as it turns */
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #999;
  /* quiet until the heading is hovered, so it does not compete with the title */
  opacity: 0.4;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* closed it points right, open it swings down */
#content .order-section.collapsible[open] > .title::after {
  transform: rotate(90deg);
}

#content .order-section.collapsible > .title:hover {
  color: #222;
}

#content .order-section.collapsible > .title:hover::after,
#content .order-section.collapsible > .title:focus-visible::after {
  opacity: 1;
}

.order-section ul {
  list-style: none;
  padding: 0;
}

#content li.order-item {
  display: grid;
  position: relative;
  /* height: 84px; */
  border-bottom: 1px solid #eee;
  padding: 2px 0px;
  grid-template-columns: 68px 0.8fr 0.65fr 60px;
  grid-template-rows: minmax(68px, auto); 
  grid-template-areas: "logo name price amount";
  align-items: center;
  max-width: 600px;
  margin: 0 auto 6px auto;
}

@media (max-width: 700px) {
  #content li.order-item {
    /* one row rather than two staggered ones: the price shrinks to fit beside
       the name instead of dropping underneath it */
    grid-template-columns: 14px minmax(0, 1fr) auto 50px;
    grid-template-rows: minmax(52px, auto);
    grid-template-areas: "logo name price amount";
    column-gap: 5px;
    justify-content: start;
    align-items: center;
    margin: auto;
    padding: 2px 0;
  }
}

.order-section:not(:last-of-type) li.order-item:last-of-type {
  border-bottom: none !important;
}

.order-item .sq-logo {
  /*margin: auto auto;*/
  grid-area: logo;
}



.order-item .purchase-highlight {
  position: absolute;
  border-radius: 100%;
  height: 20px;
  width: 20px;
  display: none;
  margin-left: -14px;
  margin-top: -12px;
  border: 2px solid white;
}

.order-item .plugin-name {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  line-height: 22px;
  text-align: left;
  padding: 2px 6px 0px 2px;
  grid-area: name;
}

.order-item .plugin-name .plugin-name-link span {
  font-size: 1.3em;
  font-variation-settings: "wght" 750, "opsz" 16;
}

@media (max-width: 700px) {
  #content .order-item .plugin-name {
    /* the boxes were what made the two rows read as staggered */
    border: none;
    padding-right: 0;
    /* without these a long single word like "CanOpener" overflows its column
       and runs underneath the price */
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.order-item .tagline {
  line-height: 14px;
  font-size: 0.9em;
  font-variation-settings: "wght" 500, "ital" 1, "opsz" 16;
  grid-area: tag;
  margin-top: 6px;
  margin-bottom: 10px;
}

.order-item .status {
  line-height: 16px;
  font-size: 18px;
  font-variation-settings: "wght" 200, "ital" 1;
  border-left: 1px solid #ddd;
  padding-left: 10px;
  padding-bottom: 10px;
}

.order-item .cost,
.order-item .amount {
  padding-left: 14px;
  position: relative;
}

.order-item .cost {
  grid-area: price;
  align-self: center;
  text-align: right;
}

.order-item .cost.unpurchasable {
  align-self: center;
}

/* the "i" beside the price, and the note it reveals */
.order-item .cost-info {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-left: 7px;
  padding: 0;
  vertical-align: 7px;
  border: 1px solid hotpink;
  border-radius: 100%;
  background: none;
  color: hotpink;
  font-family: var(--text-font);
  font-size: 12px;
  line-height: 15px;
  font-variation-settings: "wght" 700, "ital" 1;
  text-align: center;
  cursor: pointer;
}

.order-item .cost-info:hover,
.order-item .cost-info[aria-expanded="true"] {
  border-color: deeppink;
  color: deeppink;
}

.order-item .cost-info-cell {
  /* inline inside the price cell, so it rides along with the right-aligned
     prices instead of drifting away from them */
  display: inline-block;
  position: relative;
  vertical-align: top;
  margin-right: 6px;
  white-space: nowrap;
}

.order-item .plugin-name-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* the note is a span now that it lives in an inline context */
.order-item .cost-note-popup {
  display: none;
}

.order-item .cost-note-popup {
  display: none;
  /* the price cell is nowrap on mobile; the note inside it must still wrap */
  white-space: normal;
  position: absolute;
  z-index: 200;
  top: 100%;
  right: 0;
  width: max-content;
  max-width: 240px;
  margin-top: 4px;
  padding: 4px 12px;
  background: hsl(46, 79%, 95%);
  border: 1px solid white;
  /* border-radius: 4px; */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
  text-align: left;
  font-size: 17px;
  line-height: 130%;
  font-variation-settings: "wght" 400, "ital" 0;
  color: #333;
}

.order-item .cost-note-popup.open {
  display: block;
}

.order-item .cost-note-popup > span {
  display: block;
}

.order-item .cost-note-popup > span + span {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.order-item .cost-note-popup p {
  margin: 0 !important;
  line-height: 130% !important;
}

.order-item .cost-note-popup > div + div {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

@media (max-width: 700px) {
  /* the info button sits mid-row here, so anchoring the note to it overflows
     one edge or the other; dropping the cell out of the positioning context
     lets the note span the row instead */
  #content .order-item .cost-info-cell {
    position: static;
  }

  /* the price cell is only ~70px wide here, so it must not be what the note
     measures itself against; letting it fall through to the row gives the note
     the full width to wrap in */
  #content .order-item .cost {
    position: static;
  }

  #content .order-item .cost-note-popup {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 700px) {
  #content .order-item .cost {
    padding-top: 0;
    padding-left: 0;
    border-left: none;
    align-self: center;
    text-align: right;
    /* the struck-through price and the price stay on one line, which is what
       lets the column size itself instead of wrapping */
    white-space: nowrap;
  }

  #content .order-item .amount {
    border-left: none;
    padding-left: 0;
    align-self: center;
  }

  /* a row with no price is all explanation, so it gets its own shape: name
     beside the logo, the message wrapping underneath across the full width */
  #content li.order-item.nonpurchasable {
    grid-template-columns: 14px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "logo name"
      ".    note";
    align-items: start;
    row-gap: 6px;
  }

  #content .order-item .cost.unpurchasable {
    /* sits under the name rather than the whole row, so it starts on the same
       left edge as the plugin name above it */
    grid-area: note;
    white-space: normal;
    text-align: left;
    align-self: start;
    padding: 2px;
  }

  #content .order-item .amount.unpurchasable {
    display: none;
  }

  /* the price has to share the row now, so it comes down in size */
  #content .order-item .dollars {
    font-size: 21px;
  }

  #content .order-item .dollar-symbol {
    font-size: 12px;
  }

  #content .order-item .slash-price {
    font-size: 15px;
    margin-right: 4px;
  }

  #content .order-item .per {
    font-size: 10px;
  }

  /* the selector reads as a quantity on its own at this size */
  #content .order-item .qty {
    display: none;
  }

  #content .order-item .cost-info {
    width: 15px;
    height: 15px;
    margin-left: 4px;
    vertical-align: 3px;
    font-size: 11px;
    line-height: 13px;
  }

  /* the logo art comes off; the selection dot lives outside the image so it
     stays, which is the only cue for what is in the cart */
  #content .order-item .sq-logo img {
    display: none;
  }

  #content .order-item .tagline {
    font-size: 10px;
    line-height: 12px;
    margin-top: 2px;
    margin-bottom: 0;
  }

  #content .order-item .plugin-name .plugin-name-link span {
    font-size: 1.05em;
  }
}

.order-item .amount {
  grid-area: amount;
  align-self: center;
  text-align: right;
}

.order-item .amount.unpurchasable {
  align-self: normal;
}


.order-item .dollar-symbol,
.order-item .qty {
  color: #888;
}

.order-item .dollars {
  font-variation-settings: "wght" 700, "opsz" 16;
  font-size: 28px;
  z-index: 100;
  position: relative;
}

.order-item .dollars sup {
  font-size: 50%;
  vertical-align: super;
}

.order-item .slash-price {
  color: lightpink;
  margin-right: 6px;
  text-decoration: line-through;
  font-variation-settings: "wght" 700, "ital" 0;
  font-size: 28px;
  font-family: var(--text-font-condensed);
}

.order-item .sticker .new {
  position: absolute;
  top: 30px;
  right: 0;
  color: firebrick;
  font-variation-settings: "wght" 600, "ital" 1;
  font-size: 18px;
  text-transform: uppercase;
}

.order-item .per,
.order-item .qty {
  display: block;
  font-variation-settings: "wght" 350, "ital" 0;
  font-size: 12px;
  color: #888;
  padding-top: 0px;
}

.order-item .qty {
  display: none;
}

.order-item .per.nonqualify {
  padding-top: 0px;
  font-size: 14px;
}

.order-item .per.nonqualify p {
  line-height: 110% !important;
}

.order-item .per.per.unlock-alternative {
  padding-top: 4px;
  font-size: 14px;
}

.order-item .per.unlock-alternative p {
  line-height: 110% !important;
  font-variation-settings: "wght" 350, "ital" 1 !important;
  /* color: darkcyan; */
  text-align: inherit;
}

.order-item .discount-warning {
  color: lightpink;
  font-variation-settings: "wght" 800;
  position: absolute;
  bottom: -20px;
  right: 10px;
  font-size: 20px;
  transform: rotate(-5deg);
}

@media (max-width: 700px) {
  /* absolutely positioned it would land on the row below, so on one-line rows
     it sits in the flow under the price instead */
  #content .order-item .discount-warning {
    position: static;
    display: block;
    top: auto;
    bottom: auto;
    right: auto;
    margin-top: 1px;
    font-size: 14px;
    text-align: right;
    transform: rotate(-3deg);
  }
}

/* phones proper: the row still fits on one line, but only once the price and
   the tagline give up some size */
@media (max-width: 480px) {
  #content .order-item .dollars {
    font-size: 16px;
  }

  #content .order-item .dollar-symbol {
    font-size: 10px;
  }

  #content .order-item .slash-price {
    font-size: 11px;
    margin-right: 3px;
  }

  #content .order-item .tagline {
    font-size: 10px;
    line-height: 12px;
  }
}

.order-item .loyalty-discount {
  font-size: 0.8em;
  line-height: 110%;
  display: block;
  /* display: none; */
  margin-top: 6px;
  margin-bottom: 6px;
  font-variation-settings: "wght" 400, "ital" 1;
}

.order-item .hidden {
  display: none !important;
}

.order-item .amount select {
  font-family: var(--text-font);
  font-size: 18px;
  font-variation-settings: "wght" 750, "ital" 0;
}

/* once a row has a quantity it flips to white on the plugin's own colour; the
   colour is set per row in the template, since only it knows the plugin */
#content li.order-item.highlighted .amount select {
  background-color: var(--plugin-theme, royalblue);
  border-color: var(--plugin-theme, royalblue);
  color: white;
}

/* the dropdown list itself stays readable rather than inheriting the swatch */
#content li.order-item.highlighted .amount select option {
  background-color: white;
  color: #333;
}

/* an unselected plugin offers a plus instead of a dropdown reading zero; the
   dropdown takes over once the row is in the cart */
#content .order-item .amount .add-plugin {
  /* flex so the glyph sits dead centre of the circle at any size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-family: var(--text-font);
  font-size: 20px;
  font-variation-settings: "wght" 750, "ital" 0;
  line-height: 1;
  color: white;
  background: seagreen;
  border: 1px solid seagreen;
  border-radius: 100%;
  cursor: pointer;
}

#content .order-item .amount .add-plugin:hover {
  filter: brightness(1.15);
}

#content .order-item .amount .add-plugin:disabled {
  opacity: 0.5;
  cursor: default;
}

#content .order-item.highlighted .amount .add-plugin {
  display: none;
}

#content .order-item:not(.highlighted) .amount .select-wrapper {
  display: none;
}

.order-item .amount select.option-credits {
  font-family: var(--text-font-condensed);
}

.order-item .amount button {
  font-family: var(--text-font);
  font-size: 18px;
  font-variation-settings: "wght" 700, "ital" 0;
  width: 100%;
  color: royalblue;
  background: rgb(214, 244, 254);
  border: 1px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.order-item .amount button.added {
  color: forestgreen;
  background: rgb(191, 246, 191);
}

.order-item .cost {
  position: relative;
}




.green-band {
  background: rgba(210, 245, 220, 0.75);
  border: 4px solid rgba(110, 155, 120, 0.2);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
  padding: 14px 20px;
  margin: 5px -4px;
}

.discount-explanation {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  text-align: center;
  align-items: baseline;
  grid-gap: 4px;
  font-variation-settings: "ital" 1, "wght" 400;
  font-size: 14px;
  max-width: 319px;
}

@media (max-width: 700px) {
  .discount-explanation {
    max-width: none;
    width: 100%;
    padding-bottom: 8px;
  }
}

.discount-explanation .dots {
  border-bottom: 2px dotted;
}

.coupon-code {
  font-family: var(--text-font);
  font-size: 18px;
  padding: 4px 8px;
  text-align: center;
}

#points h5 span {
  color: green;
}

.credit-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  text-align: right;
}

.credit-equation > div,
.credit-equation > span {
  margin-left: 6px;
}

.credit-equation > div:not(last-of-type) {
  margin-bottom: 6px;
}

.credit-explanation {
  font-variation-settings: "ital" 1, "wght" 650;
  display: inline-block;
  padding-top: 4px;
  flex-grow: 1;
}

.order-payment {
  margin-top: 40px;
  margin-bottom: 0px;
  display: grid;
  grid-template-columns: 35% auto;
  grid-column-gap: 10px;
}

@media (max-width: 700px) {
  .order-payment {
    grid-template-columns: 1fr;
  }
}

.contact-sales {
  text-align: center;
  padding: 20px 40px;
  background: whitesmoke;
  font-size: 13px;
  color: #555;
  font-variation-settings: "wght" 600, "ital" 1;
  border-top: 1px solid #ddd;
}

.payment {
  height: 462px;
  position: relative;
}

.processing {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  background: white;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  height: 100%;
}

.processing-icon {
  text-align: center;
  position: absolute;
  width: 100%;
  font-size: 72px;
  padding: 8px;
  color: seagreen;
  top: 100px;
}

.payment-cc {
  position: relative;
  margin-bottom: 0px;
  margin-top: 20px;
}

.braintree,
.free {
  padding: 10px;
}

.braintree-cover {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.braintree-cover-permanent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.braintree, .free {
  background: white;
}

.free {
  display: none;
  /*opacity: 0.95;*/
  align-items: center;
  justify-content: center;
}

.free .form-metadata {
  font-size: 24px;
  font-variation-settings: "wght" 600, "ital" 1;
  color: #444;
  text-align: center;
  /*position: absolute;*/
  bottom: 40px;
  /*left: 0px;*/
  width: 100%;
  padding: 20px;
}

.free .credit-leftover {
  /*position: absolute;*/
  /*bottom: 10px;*/
  /*left: 0px;*/
  width: 100%;
  color: seagreen;
  font-size: 14px;
  font-variation-settings: "wght" 600, "ital" 1;
  text-align: center;
}

.braintree-cover, .braintree-cover-permanent {
  background: white;
  opacity: 0.6;
  height: 100%;
  z-index: 10;
}

#purchase-submit,
.braintree .purchase-submit,
.free .purchase-submit-free {
  display: block;
  width: 100%;
  margin: auto auto;
  margin-top: 14px;
}

.total-tag {
  font-variation-settings: "wght" 600, "ital" 1;
  text-align: center;
  padding: 0px 5px 10px;
  display: block;
  color: #555;
}

.grand-total-container {
  margin-bottom: 20px;
}

.grand-total {
  font-variation-settings: "wght" 750, "ital" 0;
  width: 100% !important;
  text-align: center;
  font-size: 24px !important;
  background: cornsilk;
  box-shadow: 0px 0px 10px rgba(255,255,0,0.2);
  border: 1px solid goldenrod;
  color: darkgoldenrod;
  z-index: 100;
  opacity: 1;
  padding: 10px 0px;
}

.grand-total small {
  display: block;
  font-size: 80%;
  font-variation-settings: "wght" 400, "ital" 0;
}

.grand-total sup {
  font-size: 50%;
  vertical-align: super;
}

.sum-arrow {
  width: 2px;
  position: absolute;
  top: 30px;
  height: 120px;
  border-left: 1px solid #bbb;
  right: 56px;
  opacity: 1;
}

.sum-arrow-tip {
  border-bottom: 1px solid #bbb;
  border-left: 1px solid #bbb;
  width: 30px;
  height: 30px;
  position: absolute;
  bottom: -3px;
  left: -16px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.notes {
  font-size: 0.9rem;
  /* margin-bottom: 100px; */
  /* padding: 10px 0; */
}

.notes li {
  margin-bottom: 10px;
}

.payment-and-receipt {
  border-left: 1px solid #ccc;
  padding-left: 20px;
}

@media (max-width: 700px) {
.payment-and-receipt  {
    border-left: none;
    padding-left: 10px;
    padding-right: 10px;
    order: -1;
  }
}

#message {
  background: lightpink;
  color: darkred;
  font-variation-settings: "wght" 800, "ital" 1;
  padding: 25px;
  text-align: center;
  font-size: 16px;
  border-radius: 3px;
  margin-top: 10px;
}

.order-payment .emails {
  padding-bottom: 10px;
  margin-bottom: 10px;
  /* stacked now that this lives in the narrow notes column: the address on top,
     the note explaining it underneath */
  display: grid;
  grid-template-columns: 1fr;
  grid-row-gap: 8px;
}

.order-payment .emails .purchaser-email input {
  width: 100%;
  box-sizing: border-box;
}

.order-payment .emails p {
  line-height: 100%;
  font-variation-settings: "wght" 600, "ital" 1;
  font-size: 16px;
}

.order-payment .emails input[type=email] {
  width: 98.5%;
  display: block;
  padding: 10px 0px;
  text-align: center;
  font-family: var(--text-font);
  font-size: 16px;
  border: 2px solid #ccc;
  line-height: 1.25em;
}

.email-error {
  color: indianred;
  font-size: 14px;
  font-variation-settings: "wght" 600, "ital" 1;
  display: block;
  margin-top: 10px;
  text-align: right;
}

.big-button {
  font-family: var(--text-font);
  width: 100%;
  /* border-box so --pay-button-height is the rendered height, matching what the
     Stripe and PayPal iframes do with the same number */
  box-sizing: border-box;
  padding: 10px 0;
  background: royalblue;
  color: white;
  /* box-shadow: 0 0 10px rgba(0,0,0,0.2); */
  border: none;
  border-radius: var(--pay-button-radius);
  margin-bottom: var(--pay-button-gap);
  font-variation-settings: "wght" 700, "ital" 0;
  /* text-transform: uppercase; */
  font-size: 18px;
  cursor: pointer;
  min-height: var(--pay-button-height);
}

#start-checkout-paypal {
  background: #ffd267;
  border: none;
  /* box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); */
  color: royalblue;
  font-variation-settings: "wdth" 750, "ital" 1;
}

/* The logged-out "Check out now" is a link to login, not a form control. It
   has to be scoped to #content to outweigh the site-wide "#content a" rule,
   which would otherwise paint it royalblue and underline it. */
#content a.big-button {
  display: block;
  box-sizing: border-box;
  text-align: center;
  color: white;
  text-decoration: none;
}

.big-button.secondary {
  font-variation-settings: "wght" 500, "ital" 1;
  background: none;
  border: none;
  color: cornflowerblue;
  font-size: 0.9em;
  box-shadow: none;
  cursor: pointer;
  padding: 6px 0;
}

.payment-revert {
  display: none;
}

/* .braintree-placeholder {
  height: 0px !important;
} */

.payment-revert button {
    width: 100%;
    padding: 10px 0;
    border: none;
    background: none;
    color: cornflowerblue;
    font-family: inherit;
    font-variation-settings: "ital" 1;
    cursor: pointer;
}

.move-to-purchase {
  margin-top: calc(2 * var(--pay-button-gap));
  /* padding-top: 10px; */

  /* display: flex;
  gap: 6px;

  .big-button {
    flex: 1;
  } */
}

.big-button.stripe-button:hover {
  filter: contrast(250%);
}
.big-button.stripe-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.big-button.submitting {
  opacity: 0.25 !important;
}

#payment-message {
  color: rgb(105, 115, 134);
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}

#payment-element {
  margin-bottom: 24px;
}

#express-checkout-container {
  display: none;
  margin-top: 20px;
  /* Reserve some button height while Stripe mounts, PayPal and the
     card button will still get shoved down when it finally resolves, but better
     than nothing I think. */
  min-height: var(--pay-button-height);
}

#express-checkout-container.confirming {
  opacity: 0.4;
  pointer-events: none;
}

#express-checkout-message {
  color: rgb(105, 115, 134);
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}

#express-checkout-message.hidden {
  display: none;
}

#express-divider {
  text-align: center;
  font-variation-settings: "ital" 1;
  color: #777;
  padding: 20px;
}

#express-divider span {
  color: #eee;
}

.spinner-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 255, 255, 0) 100%);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner-container.animating {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#receipt {
  display: none;
  padding: 20px 20px 6px 20px;
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  margin-top: 24px;
}

#content p.login-warning {
  font-variation-settings: "wght" 650, "ital" 1;
}

#content #explanation {
  border-bottom: 4px solid #eee;
  margin-bottom: 20px;
}

#content #explanation .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-columns: 2fr 3fr 1fr;
  border-top: 1px solid #eee;
  padding: 4px;
}

#content #explanation .row.extra {
  border-top: 4px solid #ccc;
  /* border-bottom: 4px solid #ccc; */
}

#content #explanation .row.minus,
#content #explanation .row.made-free {
  color: green;
}

#content #explanation .name {
  font-variation-settings: "wght" 750, "ital" 0;
}

#content #explanation .count {
  text-align: left;
  font-variation-settings: "wght" 400, "ital" 1;
  color: #555 !important;
}

#content #explanation .cost {
  text-align: right;
}

#content #explanation .discount {
  text-align: right;
}

.recaptcha {
  margin: 10px;
}

.order-shortcuts {
  text-align: right;
}

#complete-set {
  font-variation-settings: "wght" 750, "ital" 0;
  font-size: 18px;
  padding: 6px 13px 7px;
  display: inline-block;
  background: rgba(210, 245, 220, 0.25);
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  cursor: pointer;
}

#dropin-no-selection {
  font-variation-settings: "wght" 750, "ital" 0;
}

.gifting-warning {
  max-width:480px;
  margin:auto auto;
  margin-bottom: 30px;
}

#content .gifting-warning p {
  font-variation-settings: 'wght' 400, 'ital' 1;
}