/* Automatic master-class and gift-certificate checkout. */

.og-gift-recipient-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.og-gift-recipient-grid label {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 7px;
}

.og-gift-recipient-grid label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--og-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.og-gift-recipient-grid small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.og-gift-recipient-grid .og-gift-required {
  color: var(--og-berry);
  font-weight: 600;
}

.og-gift-recipient-grid .og-gift-email-field {
  grid-template-rows: auto auto auto;
}

.og-gift-recipient-grid .og-gift-email-warning {
  display: block;
  margin-top: 1px;
  color: var(--og-berry);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.og-gift-recipient-grid .og-gift-recipient-permission {
  grid-column: 1 / -1;
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.og-gift-recipient-grid .og-gift-recipient-permission > span {
  display: block;
  min-width: 0;
  color: var(--og-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.og-gift-recipient-grid .og-gift-recipient-permission input {
  width: 18px !important;
  min-width: 18px;
  height: 18px !important;
  min-height: 18px !important;
  margin: 1px 0 0;
  padding: 0;
  flex: 0 0 18px;
}

.og-gift-recipient-grid input,
.og-gift-recipient-grid textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--og-line);
  border-radius: 0;
  background: transparent;
  color: var(--og-ink);
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.og-gift-recipient-grid input:focus,
.og-gift-recipient-grid textarea:focus {
  border-color: var(--og-berry);
  outline: 1px solid var(--og-berry);
}

.og-gift-order-form--automatic .og-gift-order-actions .og-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.og-gift-order-note--setup {
  max-width: 590px;
  padding: 10px 12px;
  border-left: 2px solid var(--og-berry);
  background: rgba(123, 36, 63, .055);
  color: var(--og-ink);
}

body.woocommerce-checkout .og-checkout-intro--digital + form.checkout .woocommerce-billing-fields__field-wrapper {
  align-items: end;
}

body.woocommerce-checkout .og-review-digital .og-review-delivery-inner span {
  max-width: none;
}

.og-cart-checkout-note--digital {
  border-color: rgba(123, 36, 63, .22);
}

.og-digital-success .og-order-success-hero,
.og-digital-success .og-order-success-summary {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 767px) {
  .og-gift-recipient-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .og-gift-recipient-grid input,
  .og-gift-recipient-grid textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .og-gift-order-note--setup {
    text-align: left;
  }
}
