.ofgc-form {
  margin: 1.5rem 0;
  max-width: 680px;
}
.ofgc-form fieldset {
  border: 0;
  padding: 0;
  margin: 1.3rem 0;
}
.ofgc-form legend {
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.ofgc-form label {
  display: block;
}
.ofgc-form input:not([type="radio"]):not([type="checkbox"]),
.ofgc-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.4rem;
}
.ofgc-form textarea {
  min-height: 110px;
}
.ofgc-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ofgc-amounts label {
  padding: 0.6rem 0.85rem;
  border: 1px solid #d9cec2;
  border-radius: 4px;
  cursor: pointer;
}
.ofgc-amounts label:has(input:checked) {
  background: #f2ece5;
  border-color: #654b39;
}
.ofgc-form [hidden] {
  display: none !important;
}
.ofgc-terms {
  font-size: 0.85em;
  color: #625d57;
}
.ofgc-price {
  font-weight: 600;
}
.ofgc-form small {
  display: block;
  margin-top: 0.4rem;
}
.ofgc-form input[type="radio"],
.ofgc-form input[type="checkbox"] {
  accent-color: #654b39;
}

.ofgc-page
  .ofgc-purchase
  ul.variable-items-wrapper
  li.variable-item
  .variable-item-span {
  border-radius: 0 !important;
  overflow: visible !important;
  height: auto !important;
  line-height: 1.3 !important;
}

.ofgc-format-preview {
  margin: 0 0 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e8ded3;
}
.ofgc-preview-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font:
    13px Lato,
    sans-serif;
  color: #514239;
  text-decoration: underline;
}
.ofgc-preview-thumb {
  display: block !important;
  width: 180px !important;
  height: 115px !important;
  object-fit: contain;
  background: #fff6e9;
  border: 1px solid #e8ded3;
  border-radius: 4px;
}
.ofgc-form .ofgc-preview-caption {
  margin: 6px 0 0;
  font:
    12px/1.4 Lato,
    sans-serif;
  color: #766a60;
}
.ofgc-preview-dialog:not([open]) {
  display: none;
}
.ofgc-preview-dialog[open] {
  display: block;
  width: min(900px, 92vw);
  max-width: 92vw;
  max-height: 90vh;
  overflow: auto;
  margin: auto;
  padding: 20px;
  background: #fff6e9;
  color: #171411;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
}
.ofgc-preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.ofgc-preview-dialog .ofgc-preview-close,
.ofgc-page .ofgc-preview-dialog .ofgc-preview-close {
  display: block;
  margin: 0 0 12px auto;
  background: #f55f2c !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 4px;
  padding: 8px 12px;
  font:
    14px Lato,
    sans-serif !important;
  cursor: pointer;
}
.ofgc-preview-dialog h2 {
  margin: 0 0 12px;
  font:
    26px "Playfair Display",
    serif;
}
.ofgc-preview-full {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 65vh;
  height: auto;
  object-fit: contain;
  margin: auto;
}
.ofgc-preview-dialog p {
  margin: 12px 0 0;
  font:
    14px/1.4 Lato,
    sans-serif;
}
.ofgc-preview-link:focus-visible,
.ofgc-preview-close:focus-visible {
  outline: 2px solid #f55f2c;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .ofgc-preview-dialog[open] {
    padding: 14px;
  }
  .ofgc-preview-thumb {
    width: 160px !important;
    height: 103px !important;
  }
}
.ofgc-page .ofgc-preview-dialog h2.ofgc-preview-title {
  font:
    26px/1.2 "Playfair Display",
    serif !important;
  color: #171411 !important;
}

.ofgc-form .ofgc-amount-error {
  color: #a12619;
  font-size: 14px;
  line-height: 1.4;
}
.ofgc-form input[aria-invalid="true"] {
  border-color: #a12619;
  outline-color: #a12619;
}

.ofgc-preview-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ofgc-form .ofgc-preview-actions button {
  background: none;
  border: 0;
  padding: 0;
  color: #171411;
  text-decoration: underline;
  font:
    14px/1.5 Lato,
    sans-serif;
  cursor: pointer;
}
.ofgc-form .ofgc-preview-actions button[hidden] {
  display: none !important;
}
.ofgc-preview-actions button:focus-visible {
  outline: 2px solid #f55f2c;
  outline-offset: 3px;
}
.ofgc-video-dialog .ofgc-youtube {
  display: block;
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 9/16;
  max-height: 70vh;
  margin: auto;
  border: 0;
  background: #111;
}

/* Keep the dialog independent from Elementor's global heading, link and button styles. */
.ofgc-cart-confirmation {
  border: 0;
  border-radius: 8px;
  padding: 24px;
  width: 540px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  background: #fff6e9 !important;
  color: #171411 !important;
  font:
    16px/1.5 Lato,
    sans-serif;
  box-sizing: border-box;
}
.ofgc-cart-confirmation::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.ofgc-cart-confirmation h2 {
  font:
    28px/1.2 "Playfair Display",
    serif !important;
  color: #171411 !important;
  margin: 12px 0;
}
.ofgc-cart-confirmation p {
  color: #171411 !important;
  font:
    16px/1.5 Lato,
    sans-serif !important;
}
.ofgc-cart-confirmation .ofgc-confirm-close,
.ofgc-cart-confirmation .ofgc-confirm-close:hover,
.ofgc-cart-confirmation .ofgc-confirm-close:focus {
  display: block;
  margin-left: auto;
  padding: 4px 0 4px 12px;
  border: 0 !important;
  background: transparent !important;
  color: #171411 !important;
  box-shadow: none !important;
  font:
    14px/1.5 Lato,
    sans-serif !important;
  text-decoration: none !important;
  cursor: pointer;
}
.ofgc-cart-confirmation .ofgc-confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.ofgc-cart-confirmation .ofgc-confirm-actions button,
.ofgc-cart-confirmation .ofgc-confirm-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #c74316 !important;
  border-radius: 5px;
  font:
    600 16px/1.4 Lato,
    sans-serif !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.ofgc-cart-confirmation .ofgc-confirm-continue,
.ofgc-cart-confirmation .ofgc-confirm-continue:visited {
  background: #fff !important;
  color: #171411 !important;
}
.ofgc-cart-confirmation .ofgc-confirm-continue:hover,
.ofgc-cart-confirmation .ofgc-confirm-continue:focus {
  background: #f9e6d3 !important;
  color: #171411 !important;
}
.ofgc-cart-confirmation .ofgc-confirm-checkout,
.ofgc-cart-confirmation .ofgc-confirm-checkout:visited {
  background: #c74316 !important;
  color: #fff !important;
}
.ofgc-cart-confirmation .ofgc-confirm-checkout:hover,
.ofgc-cart-confirmation .ofgc-confirm-checkout:focus {
  background: #a93611 !important;
  color: #fff !important;
}
.ofgc-cart-confirmation :focus-visible {
  outline: 2px solid #171411 !important;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .ofgc-cart-confirmation {
    padding: 20px;
  }
  .ofgc-cart-confirmation h2 {
    font-size: 24px !important;
  }
  .ofgc-cart-confirmation .ofgc-confirm-actions > * {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Gift metadata follows its product name in checkout, cart and mini-cart. */
.ofgc-gift-line .variation,
.ofgc-gift-line .variation dt,
.ofgc-gift-line .variation dd,
.ofgc-gift-line .variation p {
  font: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
}
.ofgc-gift-line .variation {
  margin: 4px 0 0 !important;
}
.ofgc-gift-line .variation p {
  margin: 0 !important;
}

/* Match the checkout privacy notice: Roboto, 12px, regular, 21px line height. */
.woocommerce-checkout .ofgc-checkout-terms {
  margin: 18px 0 !important;
  color: #69727d !important;
  font:
    400 12px/21px Roboto,
    sans-serif !important;
}
.woocommerce-checkout .ofgc-checkout-terms p,
.woocommerce-checkout .ofgc-checkout-terms strong {
  font: inherit !important;
  color: inherit !important;
  letter-spacing: normal !important;
}
.woocommerce-checkout .ofgc-checkout-terms strong {
  display: block;
  margin-bottom: 4px;
}
.woocommerce-checkout .ofgc-checkout-terms p {
  margin: 0 !important;
}

/* One restrained gift-code panel shared by the cart and checkout. */
div.ofgc-payment {
  box-sizing: border-box;
  width: 100%;
  margin: 20px 0 !important;
  padding: 18px !important;
  border: 1px solid #e8ded3 !important;
  border-radius: 6px !important;
  background: #fff6e9 !important;
  color: #171411 !important;
  font:
    400 14px/1.5 Lato,
    sans-serif !important;
}
div.ofgc-payment label.ofgc-code-label {
  display: block;
  margin: 0 0 10px !important;
  color: #171411 !important;
  font:
    400 14px/1.5 Lato,
    sans-serif !important;
}
div.ofgc-payment .ofgc-code-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
div.ofgc-payment input.ofgc-code {
  display: block;
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #d8cbbd !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #fff !important;
  color: #171411 !important;
  font:
    400 16px/1.4 Lato,
    sans-serif !important;
}
div.ofgc-payment input.ofgc-code::placeholder {
  color: #857d75 !important;
  opacity: 1;
}
div.ofgc-payment button.ofgc-apply.button {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid #c74316 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #c74316 !important;
  color: #fff !important;
  font:
    400 14px/1.4 Lato,
    sans-serif !important;
  text-decoration: none !important;
  white-space: normal;
  cursor: pointer;
}
div.ofgc-payment button.ofgc-apply.button:hover,
div.ofgc-payment button.ofgc-apply.button:focus {
  background: #a93611 !important;
  border-color: #a93611 !important;
  color: #fff !important;
}
div.ofgc-payment input.ofgc-code:focus-visible,
div.ofgc-payment button:focus-visible {
  outline: 2px solid #171411 !important;
  outline-offset: 3px;
}
div.ofgc-payment .ofgc-feedback {
  margin-top: 10px;
  color: #574b42;
  font:
    400 13px/1.5 Lato,
    sans-serif;
}
div.ofgc-payment .ofgc-feedback:empty {
  display: none;
}
div.ofgc-payment > p {
  margin: 12px 0 0 !important;
  font:
    400 14px/1.5 Lato,
    sans-serif !important;
}
div.ofgc-payment .ofgc-remove.button {
  margin: 0 0 0 6px !important;
  padding: 2px 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: #a93611 !important;
  box-shadow: none !important;
  font: inherit !important;
  text-decoration: underline !important;
}
@media (max-width: 600px) {
  div.ofgc-payment {
    padding: 16px !important;
  }
  div.ofgc-payment .ofgc-code-controls {
    flex-direction: column;
  }
  div.ofgc-payment button.ofgc-apply.button {
    width: 100%;
  }
}
