/* Gift card builder (also used inside Packages) */
.hs-w .hs-gc { display: flex; flex-direction: column; justify-content: space-between; gap: 0; min-width: 0; padding: 24px; }
@media (min-width: 640px) { .hs-w .hs-gc { padding: 32px; } }
.hs-gc__body { display: flex; flex-direction: column; min-width: 0; }
.hs-gc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hs-gc__gift { display: inline-flex; color: var(--h-ink); }
.hs-w .hs-gc__title { margin-bottom: 8px; font-size: 24px; line-height: 1.33; font-weight: 700; }
.hs-w .hs-gc__text { margin-bottom: 24px; font-size: 12px; line-height: 1.33; color: var(--h-muted); }
@media (min-width: 640px) { .hs-w .hs-gc__text { font-size: 14px; line-height: 1.43; } }

/* The voucher stays dark in both looks: it is a picture of a card. */
.hs-gc__card {
	position: relative; overflow: hidden; margin-bottom: 24px; padding: 24px;
	border-radius: calc(var(--h-r-xl) * .85);
	background: linear-gradient(135deg, #1E1B18 0%, #3A2F26 100%); color: #FFFFFF;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.hs-gc__card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.hs-gc__card-label { font-size: 10px; line-height: 1.5; letter-spacing: .25em; text-transform: uppercase; color: #D6D3D1; }
.hs-w .hs-gc__card-brand { margin-top: 2px; font-family: var(--h-font-head); font-size: 20px; line-height: 1.4; font-weight: 700; color: #FFFFFF; }
.hs-gc__card-amount { flex: none; font-size: 24px; line-height: 1.33; font-weight: 700; color: #FCD34D; font-variant-numeric: tabular-nums; }
.hs-gc__card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 1.33; color: #D6D3D1; }
.hs-gc__card-bottom { flex-wrap: wrap; }
.hs-gc__card-bottom > div { flex: 1 1 140px; min-width: 0; }
.hs-gc__card-valid { margin-left: auto; text-align: right; }
.hs-gc__card-for-label { font-size: 10px; line-height: 1.5; text-transform: uppercase; opacity: .7; }
.hs-w .hs-gc__card-for { margin-top: 2px; font-size: 14px; line-height: 1.43; font-weight: 600; color: #FFFFFF; overflow-wrap: break-word; }
.hs-gc__card-valid { flex: none; opacity: .75; }

.hs-gc__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.hs-gc__field + .hs-gc__field { margin-bottom: 24px; }
.hs-gc__amounts { display: grid; grid-template-columns: repeat(var(--h-gc-n, 4), minmax(0, 1fr)); gap: 8px; }
.hs-w .hs-gc__amount {
	min-height: 36px; padding: 6px 4px; border: 1px solid var(--h-line); border-radius: var(--h-r-input, 14px);
	background: transparent; color: var(--h-ink); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.33;
	cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--h-ease-out);
	-webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.hs-w .hs-gc__amount:active { transform: scale(.97); }
.hs-w .hs-gc__amount[aria-pressed="true"] { background: var(--h-btn); border-color: var(--h-btn); color: var(--h-btn-ink); }
@media (hover: hover) and (pointer: fine) { .hs-w .hs-gc__amount[aria-pressed="false"]:hover { border-color: var(--h-ink); } }
.hs-w .hs-gc .h-input { min-height: 42px; padding: 0 16px; }
.hs-w .hs-gc__buy { min-height: 52px; font-size: 14px; }
.hs-w .hs-gc__buy .h-icon { flex: none; }

/* Standalone widget: what can be gifted on the left, the builder on the right. */
.hs-gift { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 1024px) {
	.hs-gift { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.hs-gift--solo { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
.hs-gift--solo { max-width: 520px; }
.hs-gift__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hs-gift__rows { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hs-w .hs-gift__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--h-r-xl); }
.hs-w .hs-gift__row--promo { background: var(--h-soft); }
.hs-gift__row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hs-gift__name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.hs-gift__meta { font-size: 13px; color: var(--h-muted); }
.hs-gift__price { flex: none; font-family: var(--h-font-head); font-size: 20px; font-weight: 700; text-align: right; }
.hs-gift__old { margin-right: 8px; font-family: var(--h-font-body); font-size: 14px; font-weight: 400; opacity: .5; }
.hs-gift__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* A new value settles in instead of jumping. */
.hs-gc__card-amount.is-swapping { animation: hs-gc-swap .15s var(--h-ease-out, cubic-bezier(.23, 1, .32, 1)); }
@keyframes hs-gc-swap { from { opacity: .35; filter: blur(2px); } }
@keyframes hs-gc-fade { from { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
	.hs-w .hs-gc__amount { transition: none; }
	.hs-w .hs-gc__amount:active { transform: none; }
	.hs-gc__card-amount.is-swapping { animation-name: hs-gc-fade; }
}
