.cart-gift { margin: 20px 0; padding: 20px 0; border-bottom: 1px solid #9b9b9b; color: #fff; }
.cart-gift__title { margin: 0 0 8px; font-size: 24px; line-height: 1.3; font-weight: 500; }
.cart-gift__subtitle, .cart-gift__notice { margin: 0 0 14px; font-size: 15px; line-height: 1.4; }
.cart-gift__notice { color: #ffd0b5; }
.cart-gift__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cart-gift__card { box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 76px; padding: 10px 12px; border: 2px solid transparent; border-radius: 12px; background: #fff; color: #231e1b; font: inherit; text-align: left; cursor: pointer; }
.cart-gift__card.is-selected { border-color: #ff6e25; }
.cart-gift__card:disabled { cursor: default; background: #eeeae6; }
.cart-gift__card img { flex: 0 0 52px; width: 52px; height: 52px; object-fit: contain; border-radius: 6px; }
.cart-gift__info { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.cart-gift__info strong { font-size: 16px; font-weight: 500; }
.cart-gift__info > span { font-size: 13px; color: #61574f; }
.cart-gift__state { font-size: 12px; max-width: 85px; }
.cart-gift__links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 8px; }
.cart-gift__links button, .cart-gift__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: #eee7e2; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.cart-gift__card:focus-visible, .cart-gift__links button:focus-visible, .cart-gift__links a:focus-visible { outline: 3px solid #ff6e25; outline-offset: 3px; }
#cart-gift-panel[aria-busy="true"] { pointer-events: none; }
@media (max-width: 767px) {
  .cart-gift__cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cart-gift__title { font-size: 20px; }
  .cart-gift__card { gap: 8px; padding: 10px; }
  .cart-gift__info strong { font-size: 14px; }
  .cart-gift__state { max-width: 70px; }
}

.gift-terms-modal { box-sizing: border-box; width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 28px; overflow: auto; border: 0; border-radius: 20px; background: #faf7f2; color: #231e1b; box-shadow: 0 20px 70px #0006; }
.gift-terms-modal::backdrop { background: #0009; }
.gift-terms-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.gift-terms-modal__header h2 { margin: 0; color: #231e1b; font-size: 26px; line-height: 1.3; }
.gift-terms-modal__header button { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #ebe4dd; color: #231e1b; font-size: 30px; cursor: pointer; }
.gift-terms-modal__header button:focus-visible { outline: 3px solid #ff6e25; outline-offset: 3px; }
.gift-terms-modal__content { font-size: 16px; line-height: 1.55; }
.gift-terms-modal__content p { margin: 0 0 16px; }
.gift-terms-modal__content p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .gift-terms-modal { padding: 20px; max-height: calc(100dvh - 24px); }
  .gift-terms-modal__header h2 { font-size: 22px; }
}
