/* Cart-only card. Keep checkout and gift-card financial behaviour independent. */
.dg-giftcard-payment.dg-cart-giftcard-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
    margin: 20px 0 0;
    border: 1px solid #dedede;
    border-left: 5px solid #d00000;
    border-radius: 12px;
    background: #fff5f4;
    color: #111;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
    font-family: inherit;
    text-align: left;
    white-space: normal;
}
.dg-cart-giftcard-card .dg-cart-giftcard-card__heading { margin: 0 0 14px; }
.dg-cart-giftcard-card .dg-cart-giftcard-card__heading h2 { margin: 0 0 4px; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.3; color: #111; }
.dg-cart-giftcard-card .dg-cart-giftcard-card__heading p { margin: 0; font-size: 16px; line-height: 1.45; color: #666; }
.dg-cart-giftcard-card > form { margin: 0; }
.dg-cart-giftcard-card .dg-cart-giftcard-card__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 12px; margin: 0; }
.checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row input {
    box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: 48px !important; min-height: 48px !important;
    margin: 0; padding: 0 14px !important; border: 1px solid #d1d5db; border-radius: 7px !important;
    background: #fff; color: #111; font-family: inherit; font-size: 16px !important; line-height: normal; box-shadow: none;
}
.checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row input::placeholder { color: #6b7280; opacity: 1; }
.checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row .action.primary {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box; float: none;
    width: auto; min-width: 150px; height: auto; min-height: 48px; margin: 0; padding: 10px 18px;
    border: 1px solid #111 !important; border-radius: 7px; background: #111 !important; color: #fff !important;
    font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center;
    white-space: normal; overflow-wrap: anywhere; cursor: pointer; box-shadow: none;
}
.checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row .action.primary:hover { border-color: #333 !important; background: #333 !important; color: #fff !important; }
.checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row input:focus,
.checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row .action.primary:focus-visible,
.dg-cart-giftcard-card .dg-giftcard-applied .action:focus-visible { outline: 2px solid #b91c1c; outline-offset: 2px; }
.dg-cart-giftcard-card > .dg-giftcard-applied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; margin: 12px 0 0; border: 1px solid #e2d9d8; border-radius: 6px; background: #fff; color: #333; font-size: 14px; line-height: 1.5; }
.dg-cart-giftcard-card .dg-giftcard-applied > span { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }
.dg-cart-giftcard-card .dg-giftcard-applied .action { min-height: 36px; padding: 7px 10px; margin: 0; border: 1px solid #ccc; border-radius: 5px; background: #fff; color: #333; font-family: inherit; font-size: 14px; line-height: 1.3; box-shadow: none; }
.dg-cart-giftcard-card .dg-giftcard-applied small { flex-basis: 100%; color: #666; }
@media (max-width: 767px) {
    .dg-giftcard-payment.dg-cart-giftcard-card { padding: 14px 16px; border-left-width: 3px; border-radius: 8px; box-shadow: none; }
    .dg-cart-giftcard-card .dg-cart-giftcard-card__heading { margin-bottom: 10px; }
    .dg-cart-giftcard-card .dg-cart-giftcard-card__heading h2 { font-size: 18px; }
    .dg-cart-giftcard-card .dg-cart-giftcard-card__heading p { font-size: 14px; }
    .checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row { gap: 10px; }
    .checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row .action.primary { min-width: 136px; padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 374px) {
    .checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row { grid-template-columns: minmax(0, 1fr); }
    .checkout-cart-index .dg-giftcard-payment.dg-cart-giftcard-card .dg-cart-giftcard-card__row .action.primary { width: 100%; }
}
