
.hb-gift-card-wrapper {
	max-width: 960px;
	margin: 24px auto;
	padding: 0;
}

.hb-gift-card-message {
	max-width: 960px;
	margin: 20px auto;
	padding: 14px 18px;
	border-radius: 14px;
}

.hb-gift-card-message--error {
	background: #fef2f2;
	color: #b91c1c;
}

.hb-gift-card-message--disabled {
	background: #f8fafc;
	color: #475569;
}

/* BOOKY 2.4.52: payment received by the bank but not confirmed yet. */
.hb-gift-card-message--info {
	background: #eff6ff;
	color: #1e40af;
}

.hb-gift-card-hero,
.hb-gift-card-success {
	background: #ffffff;
	border: 1px solid #dbe2ea;
	border-radius: 22px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
	padding: 28px;
}

.hb-gift-card-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
	gap: 24px;
	align-items: center;
	margin-bottom: 24px;
	background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}

.hb-gift-card-hero h2,
.hb-gift-card-success h2 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 34px;
	line-height: 1.1;
}

.hb-gift-card-hero p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #334155;
}

/* BOOKY 2.4.64: how the gift card is used. */
.hb-gift-card-hero p.hb-gift-card-hero__intro {
	margin-top: 10px;
	font-size: 15px;
	color: #475569;
}

.hb-gift-card-hero__media img {
	display: block;
	width: 100%;
	border-radius: 18px;
}

.hb-gift-card-form {
	background: #ffffff;
	border: 1px solid #dbe2ea;
	border-radius: 22px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
	padding: 28px;
}

.hb-gift-card-section + .hb-gift-card-section {
	margin-top: 28px;
}

.hb-gift-card-section h3 {
	margin: 0 0 16px;
	font-size: 22px;
}

.hb-gift-card-amounts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.hb-gift-card-amount {
	position: relative;
	display: block;
}

.hb-gift-card-amount input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hb-gift-card-amount span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	border: 1px solid #dbe2ea;
	border-radius: 18px;
	background: #fff;
	font-size: 22px;
	font-weight: 700;
	transition: .2s ease;
}

.hb-gift-card-amount input:checked + span {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
	color: #2563eb;
	background: #eff6ff;
}

.hb-gift-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.hb-gift-card-fields p {
	margin: 0 0 14px;
}

.hb-gift-card-fields label {
	display: block;
	font-weight: 600;
	color: #0f172a;
}

.hb-gift-card-fields input,
.hb-gift-card-fields select,
.hb-gift-card-fields textarea {
	width: 100%;
	margin-top: 8px;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	padding: 12px 14px;
	background: #fff;
	font-size: 15px;
	box-sizing: border-box;
}

.hb-gift-card-delivery {
	display: grid;
	gap: 10px;
	margin-top: 6px;
}

.hb-gift-card-delivery label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500;
}

.hb-gift-card-delivery input {
	width: auto;
	margin-top: 4px;
}

.hb-gift-card-field-hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 400;
	color: #64748b;
}

.hb-gift-card-payment-gateways {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hb-gift-card-gateway {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid #dbe2ea;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}

.hb-gift-card-payment-boxes {
	margin-top: 20px;
}

.hb-gift-card-payment-box {
	display: none;
	padding: 18px;
	border: 1px solid #dbe2ea;
	border-radius: 18px;
	background: #f8fafc;
}

.hb-gift-card-payment-box.is-active {
	display: block;
}

.hb-confirm-error {
	padding: 12px 14px;
	border-radius: 14px;
	background: #fef2f2;
	color: #b91c1c;
}

.hb-processing-later-payment {
	padding: 12px 14px;
	border-radius: 14px;
	background: #eff6ff;
	color: #1d4ed8;
}

.hb-gift-card-hidden-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hb-gift-card-success__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	margin: 22px 0;
}

.hb-gift-card-success__item {
	padding: 16px;
	border-radius: 18px;
	background: #f8fafc;
	border: 1px solid #dbe2ea;
}

.hb-gift-card-success__item span {
	display: block;
	margin-bottom: 8px;
	color: #64748b;
	font-size: 13px;
}

.hb-gift-card-success__item strong {
	font-size: 18px;
	color: #0f172a;
	word-break: break-word;
}

.hb-gift-card-success__note {
	color: #475569;
}

.hb-gift-card-success__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

@media (max-width: 820px) {
	.hb-gift-card-hero {
		grid-template-columns: 1fr;
		padding: 22px;
	}
	.hb-gift-card-form,
	.hb-gift-card-success {
		padding: 22px;
	}
	.hb-gift-card-hero h2,
	.hb-gift-card-success h2 {
		font-size: 28px;
	}
}

/* BOOKY 2.4.63: spacing between the blocks of the form. The buyer and
   recipient grid was stuck to the amounts, and the recipient column started
   lower than the buyer one. */
.hb-gift-card-form > .hb-gift-card-section + .hb-gift-card-section,
.hb-gift-card-form > .hb-gift-card-section + .hb-gift-card-grid,
.hb-gift-card-form > .hb-gift-card-grid + .hb-gift-card-section {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid #e2e8f0;
}

.hb-gift-card-grid {
	gap: 28px 32px;
}

.hb-gift-card-grid > .hb-gift-card-section + .hb-gift-card-section {
	margin-top: 0;
}

/* BOOKY 2.4.63: customer's preview (tabs opening a pop-up). */
.hb-gift-card-preview__hint {
	margin: -6px 0 14px;
	font-size: 14px;
	color: #64748b;
}

.hb-gift-card-preview__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hb-gift-card-wrapper .hb-gift-card-preview__tab,
.hb-gift-card-modal .hb-gift-card-preview__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: none;
	color: #0f172a;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: .15s ease;
}

.hb-gift-card-preview__tab svg {
	flex: none;
	width: 18px;
	height: 18px;
}

.hb-gift-card-wrapper .hb-gift-card-preview__tab:hover,
.hb-gift-card-wrapper .hb-gift-card-preview__tab:focus-visible,
.hb-gift-card-modal .hb-gift-card-preview__tab:hover,
.hb-gift-card-modal .hb-gift-card-preview__tab:focus-visible {
	border-color: #2563eb;
	background: #eff6ff;
	color: #2563eb;
}

.hb-gift-card-modal .hb-gift-card-preview__tab.is-active {
	border-color: #2563eb;
	background: #2563eb;
	color: #ffffff;
}

.hb-gift-card-modal[hidden],
.hb-gift-card-modal__foot[hidden] {
	display: none !important;
}

.hb-gift-card-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.hb-gift-card-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.hb-gift-card-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 760px;
	height: 88vh;
	max-height: 980px;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
	overflow: hidden;
}

.hb-gift-card-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 12px 18px;
	border-bottom: 1px solid #e5e7eb;
}

.hb-gift-card-modal .hb-gift-card-modal__close {
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	box-shadow: none;
	color: #111827;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.hb-gift-card-modal__body {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #f7f7f7;
}

.hb-gift-card-modal__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.hb-gift-card-modal__loading {
	position: absolute;
	top: 24px;
	left: 0;
	right: 0;
	margin: 0;
	text-align: center;
	color: #64748b;
}

.hb-gift-card-modal__foot {
	padding: 10px 18px;
	border-top: 1px solid #e5e7eb;
	text-align: right;
}

.hb-gift-card-modal .hb-gift-card-modal__open-pdf {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: none;
	color: #0f172a;
	font-size: 14px;
	text-transform: none;
	cursor: pointer;
}

body.hb-gift-card-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.hb-gift-card-modal {
		padding: 0;
	}
	.hb-gift-card-modal__dialog {
		height: 100%;
		max-height: none;
		border-radius: 0;
	}
	.hb-gift-card-modal__head {
		padding: 10px 10px 10px 12px;
	}
	.hb-gift-card-wrapper .hb-gift-card-preview__tab,
	.hb-gift-card-modal .hb-gift-card-preview__tab {
		padding: 8px 12px;
		font-size: 14px;
	}
}
