/* Shared redemption controls for Woo Blocks and PW Gift Cards. */
:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-container {
  border-top: 1px solid #e4e2dc;
  color: #1a1c18;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  padding: 20px 0;
}

.bera-checkout-shell #pwgc-redeem-gift-card-container {
  padding: var(--bera-summary-section-space) var(--bera-summary-inset);
}

:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-form,
:is(.bera-cart-content, .bera-checkout-shell) .wc-block-components-totals-coupon__form {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
}

:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-form > label {
  font-size: 14px;
  font-weight: 400;
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 0;
}

:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-number,
:is(.bera-cart-content, .bera-checkout-shell) .wc-block-components-totals-coupon__input input {
  background: #fff !important;
  border: 1px solid #d8d8d2 !important;
  border-radius: 6px !important;
  box-sizing: border-box;
  color: #1a1c18;
  font-family: 'Jost', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400;
  height: 54px;
  letter-spacing: 0;
  line-height: 1.4 !important;
  margin: 0;
  min-height: 54px !important;
  min-width: 0;
  width: 100%;
}

:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-number {
  padding: 12px;
}

:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-number::placeholder {
  color: rgba(26, 28, 24, 0.62);
  opacity: 1;
}

:is(.bera-cart-content, .bera-checkout-shell) .wc-block-components-totals-coupon__input {
  margin: 0;
  min-width: 0;
}

:is(.bera-cart-content, .bera-checkout-shell) .pwgc-apply-gift-card-button,
:is(.bera-cart-content, .bera-checkout-shell) .wc-block-components-totals-coupon__button {
  background: var(--bera-color-forest) !important;
  border: 0;
  border-radius: 6px;
  box-sizing: border-box;
  color: #fff !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  margin: 0;
  min-height: 54px !important;
  min-width: 104px;
  padding: 12px 16px;
  text-align: center;
  width: auto;
}

:is(.bera-cart-content, .bera-checkout-shell) :is(.pwgc-apply-gift-card-button, .wc-block-components-totals-coupon__button):hover:not(:disabled) {
  background: #061b0f !important;
}

:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-form :disabled {
  cursor: wait;
  opacity: 0.65;
}

:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-form .components-notice.is-error {
  background: #fff7f4;
  border: 1px solid #c96d5f;
  border-radius: 6px;
  color: #5d2922;
  font-size: 13px;
  grid-column: 1 / -1;
  line-height: 1.5;
  margin: 2px 0 0;
  padding: 12px;
}

:is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-form .components-notice__content {
  margin: 0;
}

:is(.bera-cart-content, .bera-checkout-shell) .pwgc-applied-gift-cards-item {
  gap: 12px;
  margin-top: 10px;
}

:is(.bera-cart-content, .bera-checkout-shell) .pwgc-applied-gift-cards-left {
  min-width: 0;
  overflow-wrap: anywhere;
}

:is(.bera-cart-content, .bera-checkout-shell) .pwgc-gift-card-amount {
  white-space: nowrap;
}

:is(.bera-cart-content, .bera-checkout-shell) .wc-block-components-totals-item__description:empty {
  display: none;
}

@media screen and (max-width: 389px) {
  :is(.bera-cart-content, .bera-checkout-shell) #pwgc-redeem-gift-card-form,
  :is(.bera-cart-content, .bera-checkout-shell) .wc-block-components-totals-coupon__form {
    grid-template-columns: minmax(0, 1fr);
  }
}
