/**
 * Shared gift-wrap styles — cart + checkout.
 */

.pfk-giftwrap-block,
.pfk-order-gift-wrap-block {
	width: 100%;
}

.pfk-cart-giftwrap-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	min-height: 38px;
	margin: 0;
	padding: 7px 10px;
	box-sizing: border-box;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.pfk-cart-giftwrap-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	color: #0f172a;
	cursor: pointer;
}

.pfk-cart-giftwrap-check input {
	width: 16px;
	height: 16px;
	accent-color: #0f172a;
}

.pfk-cart-giftwrap-info {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #475569;
	font-family: inherit;
	font-size: 12px;
	line-height: 1.25;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.pfk-cart-giftwrap-active {
	margin-top: 8px;
	padding: 9px 10px;
	box-sizing: border-box;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8fafc;
}

.pfk-cart-giftwrap-active--hidden,
.pfk-cart-giftwrap-active[hidden] {
	display: none !important;
}

.pfk-cart-giftwrap-active-title {
	display: block;
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: #111827;
}

.pfk-cart-giftwrap-active-title::before {
	content: "✓\00a0";
}

.pfk-cart-giftwrap-active-desc {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: #4b5563;
}

[data-pfk-cart-gift-row].is-pending,
[data-pfk-checkout-gift-row].is-pending {
	opacity: 0.65;
	pointer-events: none;
}

.pfk-checkout-gift-error {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: #b91c1c;
}

.pfk-giftwrap-modal[hidden] {
	display: none !important;
}

.pfk-giftwrap-modal {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.pfk-giftwrap-modal__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.52);
	cursor: pointer;
}

.pfk-giftwrap-modal__panel {
	position: relative;
	z-index: 1;
	width: min(520px, calc(100vw - 40px));
	max-height: min(86vh, 780px);
	overflow: auto;
	margin: 0;
	padding: 24px 22px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 22px 54px rgba(15, 23, 42, 0.22);
}

.pfk-giftwrap-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
}

.pfk-giftwrap-modal__title {
	margin: 0 36px 14px 0;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

.pfk-cart-gift-help__grid,
.pfk-giftwrap-modal__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pfk-cart-gift-help__card,
.pfk-giftwrap-modal__item {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}

.pfk-cart-gift-help__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: #eef2ff;
	color: #334155;
}

.pfk-cart-gift-help__icon svg,
.pfk-cart-gift-help__icon .pfk-lucide,
.pfk-cart-gift-help__icon .lucide {
	width: 18px;
	height: 18px;
}

.pfk-cart-gift-help__copy h3 {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.pfk-cart-gift-help__copy p {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #64748b;
}

@media (max-width: 767px) {
	.pfk-giftwrap-modal__panel {
		width: calc(100vw - 24px);
		max-width: 440px;
		padding: 16px 14px;
	}
}
