/**
 * Gift Card System Styles
 */
:root {
	--pvm-primary: #9e2126;
	--pvm-primary-dark: #7a191d;
	--pvm-surface: #ffffff;
	--pvm-border: #e2e8f0;
	--pvm-text: #1e293b;
	--pvm-text-light: #64748b;
	--pvm-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.pvm-giftcard-section {
	margin: 30px 0;
	padding: 24px;
	background: var(--pvm-surface);
	border-radius: 12px;
}

.pvm-giftcard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.pvm-giftcard-card {
	border: 2px solid var(--pvm-border);
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pvm-giftcard-card:hover {
	border-color: var(--pvm-primary);
	background: #fef2f2;
}

.pvm-giftcard-card.active {
	border-color: var(--pvm-primary);
	background: #fef2f2;
	box-shadow: 0 0 0 2px var(--pvm-primary);
}

/**
 * Hide original coupon sections
 */
.coupon-wrapper.after-order,
.woocommerce-form-coupon-toggle {
	display: none !important;
}

/**
 * Unified Discount Panel (Checkout) - V2 (Redesign)
 */
.pvm-unified-discount-row td {
	padding: 0 !important;
}

.pvm-panel--v2 {
	background: #ffffff;
	margin: 20px 0;
	font-family: inherit;
}

.pvm-panel--v2 .pvm-panel-body {
	padding: 10px 0;
}

/* Points Block */
.pvm-points-block {
	margin-bottom: 25px;
	padding: 0 30px;
}

.pvm-points-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.pvm-points-header .pvm-label {
	font-weight: 700;
	color: #334155;
	font-size: 15px;
}

.pvm-points-badge {
	background: #fef2f2;
	color: #9e2126;
	padding: 6px 16px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14px;
	border: 1px solid #fee2e2;
}

.pvm-needed-hint,
.pvm-small-hint {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 20px;
}

.pvm-points-actions {
	margin-bottom: 25px;
}

/* Buttons */
.pvm-btn-main {
	background-color: #9e2126 !important;
	color: #ffffff !important;
	border: none !important;
	padding: 12px 28px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	transition: background 0.2s;
	text-transform: uppercase;
}

.pvm-btn-main:hover {
	background-color: #7a191d !important;
}

.pvm-btn-secondary {
	background-color: #f1f5f9 !important;
	color: #475569 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	padding: 12px 24px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	text-transform: uppercase;
}

/* Custom Points Input */
.pvm-custom-points {
	margin-top: 30px;
}

.pvm-small-label {
	display: block;
	font-size: 14px;
	color: #64748b;
	margin-bottom: 12px;
}

.pvm-input-group {
	display: flex;
	gap: 12px;
	align-items: center;
	max-width: 500px;
}

.pvm-input-group input {
	flex: 1;
	height: 48px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 0 15px;
	font-size: 15px;
	color: #1e293b;
}

/* Divider */
.pvm-divider {
	border: 0;
	border-top: 1.5px solid #f1f1f0;
	margin: 40px 0;
}

/* Grid Block (Coupons & Gift Cards) */
.pvm-grid-block {
	display: flex;
	justify-content: space-between;
	padding: 0 30px;
	gap: 30px;
}

.pvm-col-title {
	font-size: 14px;
	font-weight: 700;
	color: #334155;
	margin: 0 0 18px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.pvm-applied-status {
	margin-top: 15px;
	font-size: 14px;
	color: #059669;
}

@media (max-width: 768px) {
	.pvm-grid-block {
		flex-direction: column;
		gap: 30px;
	}

	.pvm-input-group {
		flex-direction: row;
		max-width: 100%;
	}
}

.pvm-giftcard-wrap,
.pvm-giftcard-admin {
	--pvm-bg: #f7f8fc;
	--pvm-surface: #ffffff;
	--pvm-surface-alt: #f9fafc;
	--pvm-surface-soft: #f3f4f8;
	--pvm-border: #e7eaf2;
	--pvm-border-strong: #d7dcea;
	--pvm-text: #1e2432;
	--pvm-muted: #667085;
	--pvm-primary: #8f1d2c;
	--pvm-primary-soft: rgba(143, 29, 44, .10);
	--pvm-accent: #c7a25f;
	--pvm-success: #137a4d;
	--pvm-shadow: 0 18px 50px rgba(15, 23, 42, .08);
	--pvm-shadow-soft: 0 10px 30px rgba(15, 23, 42, .05);
	color: var(--pvm-text);
}

.pvm-giftcard-wrap,
.pvm-giftcard-admin {
	font-family: inherit;
}

.pvm-giftcard-wrap *,
.pvm-giftcard-admin * {
	box-sizing: border-box;
}

.pvm-giftcard-wrap {
	margin: 0px 0 26px;
}

.pvm-giftcard-shell,
.pvm-card,
.pvm-admin-hero,
.pvm-stat-card {}

.pvm-giftcard-shell {
	overflow: visible;
}

.pvm-giftcard-hero {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: stretch;
	padding: 28px;
	background:
		linear-gradient(135deg, rgba(143, 29, 44, .08), rgba(255, 255, 255, 0) 42%),
		linear-gradient(180deg, #fff, #fffaf7);
	border-bottom: 1px solid var(--pvm-border);
}

.pvm-giftcard-hero__copy {
	min-width: 0;
	max-width: 700px;
}

.pvm-giftcard-hero h3,
.pvm-giftcard-hero p,
.pvm-giftcard-section h4,
.pvm-card h2,
.pvm-card h3,
.pvm-admin-hero h1,
.pvm-admin-hero p,
.pvm-page-header h1,
.pvm-page-header p,
.pvm-card__header p,
.pvm-section-head p,
.pvm-toggle p,
.pvm-stat-card span,
.pvm-field-hint,
.pvm-muted {
	margin: 0;
}

.pvm-kicker,
.pvm-step {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pvm-primary);
	background: var(--pvm-primary-soft);
}

.pvm-giftcard-hero h3,
.pvm-admin-hero h1 {
	margin-top: 12px;
	font-size: clamp(22px, 3vw, 32px);
	line-height: 1.15;
}

.pvm-giftcard-hero p,
.pvm-admin-hero p,
.pvm-muted,
.pvm-section-head p,
.pvm-card__header p,
.pvm-toggle p,
.pvm-field-hint,
.pvm-callout p {
	color: var(--pvm-muted);
	line-height: 1.6;
}

.pvm-giftcard-hero p,
.pvm-admin-hero p {
	max-width: 60ch;
	margin-top: 10px;
}

.pvm-giftcard-hero__badge {
	flex: 0 0 220px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 18px 20px;
	border-radius: 20px;
	background: linear-gradient(180deg, #ffffff, #fff6f1);
	border: 1px solid rgba(143, 29, 44, .12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
	text-align: left;
}

.pvm-giftcard-hero__badge strong {
	font-size: 16px;
	line-height: 1.2;
}

.pvm-giftcard-hero__badge span {
	font-size: 13px;
	color: var(--pvm-muted);
}

.pvm-giftcard-layout,
.pvm-admin-grid,
.pvm-stat-grid,
.pvm-giftcard-grid {
	display: grid;
	gap: 18px;
}

.pvm-giftcard-layout {
	padding: 0px 0px 24px;
}

.pvm-giftcard-section,
.pvm-card {
	padding: 22px;
}

.pvm-giftcard-section {
	border-radius: 22px;
	background: var(--pvm-surface);
	box-shadow: none;
}

.pvm-section-head,
.pvm-card__header,
.pvm-admin-hero,
.pvm-card__subhead {}

.pvm-section-head {
	margin-bottom: 18px;
}

.pvm-section-head>div,
.pvm-card__header>div,
.pvm-card__subhead>div {
	min-width: 0;
}

.pvm-section-head h4,
.pvm-card h2,
.pvm-card h3 {
	font-size: 18px;
	line-height: 1.25;
}

.pvm-section-head p {
	font-size: 13px;
	text-align: left;
}

.pvm-amount-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 2px;
}

.pvm-choice-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	min-height: 30px;
	border: 1px solid var(--pvm-border-strong);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
	margin: 0 10px 0 0;
}

.pvm-choice-card:hover {
	transform: translateY(-1px);
	border-color: rgba(143, 29, 44, .35);
	box-shadow: 0 10px 26px rgba(143, 29, 44, .08);
}

.pvm-choice-card.is-selected {
	border-color: rgba(143, 29, 44, .55);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(143, 29, 44, .08);
}

.pvm-choice-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.pvm-choice__radio {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #c4cad7;
	background: #fff;
}

.pvm-choice-card.is-selected .pvm-choice__radio {
	border-color: var(--pvm-primary);
}

.pvm-choice-card.is-selected .pvm-choice__radio::after {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--pvm-primary);
}

.pvm-choice__body strong {
	font-size: 15px;
	line-height: 1.25;
}

.pvm-choice__body small {
	font-size: 12px;
	color: var(--pvm-muted);
	line-height: 1.35;
}

.pvm-giftcard-custom-amount {
	margin-top: 18px;
}

.pvm-giftcard-custom-amount .pvm-input-frame {
	border: none;
	background: transparent;
	padding: 0;
	box-shadow: none;
}

.pvm-giftcard-custom-amount .pvm-input-frame input {
	padding: 4px 0;
	background: transparent;
	border: none !important;
	box-shadow: none !important;
}


.pvm-giftcard-custom-amount label,
.pvm-giftcard-wrap label,
.pvm-giftcard-admin label {
	display: inline-flex;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--pvm-text);
}

.pvm-input-frame {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 14px;
	border-radius: 4px;
	background: #fff;
	border: 1px solid var(--pvm-border);
}

.pvm-input-prefix {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	color: var(--pvm-muted);
}

.pvm-giftcard-wrap input[type="text"],
.pvm-giftcard-wrap input[type="email"],
.pvm-giftcard-wrap input[type="number"],
.pvm-giftcard-wrap textarea,
.pvm-giftcard-admin input[type="text"],
.pvm-giftcard-admin input[type="email"],
.pvm-giftcard-admin input[type="number"],
.pvm-giftcard-admin input[type="date"],
.pvm-giftcard-admin textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	border: 1px solid var(--pvm-border);
	border-radius: 4px;
	background: #fff;
	padding: 13px 15px;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.pvm-input-frame input {
	border: 0 !important;
	padding-left: 0;
	padding-right: 0;
	background: transparent;
	box-shadow: none !important;
}

.pvm-giftcard-wrap input:focus,
.pvm-giftcard-wrap textarea:focus,
.pvm-giftcard-admin input:focus,
.pvm-giftcard-admin textarea:focus {
	outline: none;
	border-color: rgba(143, 29, 44, .55);
	box-shadow: 0 0 0 4px rgba(143, 29, 44, .10);
}

.pvm-giftcard-wrap textarea,
.pvm-giftcard-admin textarea {
	min-height: 118px;
	resize: vertical;
}

.pvm-form-grid {
	display: grid;
	gap: 0px;
}

.pvm-form-grid--2 {}

.pvm-field-message {
	margin-top: 6px;
}

.pvm-callout {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	margin-top: 14px;
	border-radius: 16px;
	background: #fff9f1;
	border: 1px solid rgba(199, 162, 95, .28);
}

.pvm-callout strong {
	font-size: 13px;
	color: #8a5a00;
}

.pvm-callout p {
	font-size: 13px;
}

.pvm-admin-hero {
	padding: 28px;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	background:
		linear-gradient(135deg, rgba(143, 29, 44, .08), rgba(255, 255, 255, 0) 44%),
		linear-gradient(180deg, #fff, #fffdfb);
}

.pvm-admin-hero__copy {
	max-width: 760px;
}

.pvm-admin-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.pvm-date-filter,
.pvm-date-filter--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.pvm-date-filter input[type="date"] {
	min-height: 42px;
	padding: 10px 12px;
}

.pvm-stat-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 18px;
}

.pvm-stat-card {
	padding: 18px;
}

.pvm-stat-card span {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--pvm-muted);
	margin-bottom: 10px;
}

.pvm-stat-card strong {
	display: block;
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: 1.1;
	letter-spacing: -.02em;
}

.pvm-admin-grid {
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	align-items: start;
	margin-bottom: 18px;
}

.pvm-card--sticky {
	position: relative;
}

.pvm-card__header {
	margin-bottom: 18px;
	align-items: center;
}

.pvm-card__subhead {
	margin-bottom: 14px;
}

.pvm-card__subhead h3 {
	font-size: 16px;
	margin: 0;
}

.pvm-toggle {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	margin-bottom: 18px;
	border-radius: 18px;
	background: var(--pvm-surface-alt);
	border: 1px solid var(--pvm-border);
}

.pvm-switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 30px;
	flex: 0 0 auto;
	margin-top: 2px;
}

.pvm-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.pvm-slider {
	position: absolute;
	inset: 0;
	cursor: pointer;
	background: #cfd5e3;
	transition: .2s ease;
	border-radius: 999px;
}

.pvm-slider::before {
	content: '';
	position: absolute;
	height: 22px;
	width: 22px;
	left: 4px;
	top: 4px;
	background: #fff;
	border-radius: 50%;
	transition: .2s ease;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}

.pvm-switch input:checked+.pvm-slider {
	background: var(--pvm-primary);
}

.pvm-switch input:checked+.pvm-slider::before {
	transform: translateX(22px);
}

.pvm-amounts {
	display: grid;
	gap: 10px;
}

.pvm-amount-row {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) auto auto;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 16px;
	border: 1px solid var(--pvm-border);
	background: linear-gradient(180deg, #fff, #fbfcff);
}

.pvm-drag {
	cursor: grab;
	text-align: center;
	font-size: 18px;
	line-height: 1;
	color: #98a2b3;
}

.pvm-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.pvm-checkbox input {
	margin: 0;
}

.pvm-actions-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
}

.pvm-table-wrap {
	overflow: auto;
	border-radius: 18px;
	border: 1px solid var(--pvm-border);
}

.pvm-table {
	margin: 0;
	border: 0;
	background: #fff;
}

.pvm-table thead th {
	background: #f8fafc;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #475467;
	padding-top: 14px;
	padding-bottom: 14px;
}

.pvm-table td {
	padding-top: 16px;
	padding-bottom: 16px;
	vertical-align: top;
}

.pvm-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: #f2f4f7;
	color: #344054;
}

.pvm-badge--generated,
.pvm-badge--completed {
	background: #dcfce7;
	color: var(--pvm-success);
}

.pvm-badge--processing {
	background: #fef3c7;
	color: #92400e;
}

.pvm-badge--refunded {
	background: #fee2e2;
	color: #b42318;
}

.pvm-sortable-placeholder {
	height: 62px;
	border: 1px dashed rgba(143, 29, 44, .35);
	border-radius: 16px;
	background: rgba(143, 29, 44, .04);
}

.pvm-page-header {
	margin-bottom: 18px;
}

.pvm-page-header h1 {
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.1;
}

.pvm-page-header p {
	max-width: 70ch;
	font-size: 15px;
}

@media (max-width: 1200px) {

	.pvm-giftcard-layout,
	.pvm-admin-grid,
	.pvm-stat-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {

	.pvm-giftcard-hero,
	.pvm-admin-hero,
	.pvm-section-head,
	.pvm-card__header,
	.pvm-card__subhead {
		flex-direction: column;
	}

	.pvm-section-head p {
		text-align: left;
	}

	.pvm-giftcard-layout,
	.pvm-admin-grid,
	.pvm-stat-grid,
	.pvm-form-grid--2 {
		grid-template-columns: 1fr;
	}

	.pvm-giftcard-hero__badge {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (max-width: 782px) {

	.pvm-giftcard-layout,
	.pvm-card,
	.pvm-admin-hero,
	.pvm-giftcard-section {
		padding: 18px;
	}

	.pvm-giftcard-hero {
		padding: 20px;
	}

	.pvm-amount-grid,
	.pvm-stat-grid {
		grid-template-columns: 1fr;
	}

	.pvm-amount-row {
		grid-template-columns: 24px minmax(0, 1fr);
	}

	.pvm-amount-row>*:nth-child(3),
	.pvm-amount-row>*:nth-child(4),
	.pvm-amount-row>*:nth-child(5) {
		grid-column: 2;
	}

	.pvm-admin-hero__actions,
	.pvm-actions-row {
		width: 100%;
		justify-content: stretch;
	}

	.pvm-admin-hero__actions .button,
	.pvm-actions-row .button {
		width: 100%;
	}
}


/* Multi-Gift Card Styles */
.pvm-giftcards-container {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.pvm-giftcard-item {
	position: relative;
	border-radius: 4px;
	border: 1px solid var(--pvm-border);
	box-shadow: var(--pvm-shadow-soft);
	overflow: visible;
	transition: all .2s ease;
}

.pvm-card-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 16px 22px;
	background: var(--pvm-surface-alt);
	border-bottom: 1px solid var(--pvm-border);
	cursor: pointer;
	position: relative;
}

.pvm-card-title {
	font-weight: 700;
	font-size: 15px;
	color: var(--pvm-primary);
}

.pvm-card-summary {
	flex: 1;
	margin-left: 14px;
	font-size: 13px;
	color: var(--pvm-muted);
}

.pvm-card-toggle {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--pvm-muted);
	display: flex;
	align-items: center;
	margin-left: auto;
}

.pvm-toggle-icon {
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-bottom: 4px;
}

.pvm-card-remove {
	position: absolute;
	right: -30px;
	z-index: 9999;
	top: 50%;
	transform: translateY(-50%);
	background: #fee2e2;
	color: #b42318;
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	margin-left: 0;
}

.pvm-giftcard-item.is-collapsed .pvm-card-body {
	display: none;
}

.pvm-giftcard-item.is-collapsed .pvm-toggle-icon {
	transform: rotate(-45deg);
	margin-bottom: 0;
	margin-top: 4px;
}

.pvm-add-card-wrapper {
	text-align: left;
	margin-bottom: 24px;
}

.pvm-add-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--pvm-surface);
	border: 2px dashed var(--pvm-border-strong);
	color: var(--pvm-primary);
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all .2s ease;
}

.pvm-add-card-btn:hover {
	border-color: var(--pvm-primary);
	background: var(--pvm-primary-soft);
}

.pvm-plus-icon {
	font-size: 18px;
	font-weight: 400;
}


.pvm-page-header p {
	max-width: 70ch;
	font-size: 15px;
}

@media (max-width: 1200px) {

	.pvm-giftcard-layout,
	.pvm-admin-grid,
	.pvm-stat-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {

	.pvm-giftcard-hero,
	.pvm-admin-hero,
	.pvm-section-head,
	.pvm-card__header,
	.pvm-card__subhead {
		flex-direction: column;
	}

	.pvm-section-head p {
		text-align: left;
	}

	.pvm-giftcard-layout,
	.pvm-admin-grid,
	.pvm-stat-grid,
	.pvm-form-grid--2 {
		grid-template-columns: 1fr;
	}

	.pvm-giftcard-hero__badge {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (max-width: 782px) {

	.pvm-giftcard-layout,
	.pvm-card,
	.pvm-admin-hero,
	.pvm-giftcard-section {
		padding: 18px;
	}

	.pvm-giftcard-hero {
		padding: 20px;
	}

	.pvm-amount-grid,
	.pvm-stat-grid {
		grid-template-columns: 1fr;
	}

	.pvm-amount-row {
		grid-template-columns: 24px minmax(0, 1fr);
	}

	.pvm-amount-row>*:nth-child(3),
	.pvm-amount-row>*:nth-child(4),
	.pvm-amount-row>*:nth-child(5) {
		grid-column: 2;
	}

	.pvm-admin-hero__actions,
	.pvm-actions-row {
		width: 100%;
		justify-content: stretch;
	}

	.pvm-admin-hero__actions .button,
	.pvm-actions-row .button {
		width: 100%;
	}
}


/* Multi-Gift Card Styles */
.pvm-giftcards-container {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.pvm-giftcard-item {
	position: relative;
	border-radius: 4px;
	background: var(--pvm-surface);
	border: 1px solid var(--pvm-border);
	box-shadow: var(--pvm-shadow-soft);
	overflow: visible;
	transition: all .2s ease;
}

.pvm-card-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 16px 22px;
	background: var(--pvm-surface-alt);
	border-bottom: 1px solid var(--pvm-border);
	cursor: pointer;
	position: relative;
}

.pvm-card-title {
	font-weight: 700;
	font-size: 15px;
	color: var(--pvm-primary);
}

.pvm-card-summary {
	flex: 1;
	margin-left: 14px;
	font-size: 13px;
	color: var(--pvm-muted);
}

.pvm-card-toggle {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--pvm-muted);
	display: flex;
	align-items: center;
	margin-left: auto;
}

.pvm-toggle-icon {
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-bottom: 4px;
}

.pvm-card-remove {
	position: absolute;
	right: -30px;
	z-index: 9999;
	top: 50%;
	transform: translateY(-50%);
	background: #fee2e2;
	color: #b42318;
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	margin-left: 0;
}

.pvm-giftcard-item.is-collapsed .pvm-card-body {
	display: none;
}

.pvm-giftcard-item.is-collapsed .pvm-toggle-icon {
	transform: rotate(-45deg);
	margin-bottom: 0;
	margin-top: 4px;
}

.pvm-add-card-wrapper {
	text-align: left;
	margin-bottom: 24px;
}

.pvm-add-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--pvm-surface);
	border: 2px dashed var(--pvm-border-strong);
	color: var(--pvm-primary);
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all .2s ease;
}

.pvm-add-card-btn:hover {
	border-color: var(--pvm-primary);
	background: var(--pvm-primary-soft);
}

.pvm-plus-icon {
	font-size: 18px;
	font-weight: 400;
}

/* Ocultar cantidad en pÃ¡gina de producto de gift card */
.single-product.postid-334120 form.cart .quantity {
	display: none !important;
}

.single-product.postid-334120 .summary .price {
	display: none !important;
}

/* Export Dropdown */
.pvm-export-dropdown {
	position: relative;
	display: inline-block;
}

.pvm-export-menu {
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	background: #fff;
	border: 1px solid var(--pvm-border);
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	padding: 8px 0;
	z-index: 9999;
	min-width: 240px;
	display: none;
}

.pvm-export-dropdown.is-active .pvm-export-menu {
	display: block;
}

.pvm-export-menu a {
	display: block;
	padding: 10px 20px;
	text-decoration: none;
	color: var(--pvm-text);
	font-size: 13px;
	transition: background .2s;
}

.pvm-export-menu a:hover {
	background: var(--pvm-surface-soft);
}

.pvm-export-menu-divider {
	height: 1px;
	background: var(--pvm-border);
	margin: 5px 0;
}

.pvm-export-menu-legacy {
	color: var(--pvm-muted) !important;
	font-style: italic;
}

/* Designs Sortable */
.pvm-designs {
	display: grid;
	gap: 10px;
	margin-bottom: 10px;
}

.pvm-design-row {
	display: grid;
	grid-template-columns: 24px 120px 1fr auto;
	gap: 15px;
	align-items: start;
	padding: 15px;
	border: 1px solid var(--pvm-border);
	border-radius: 16px;
	background: #fff;
}

.pvm-design-row__thumb {
	width: 100px !important;
	height: 100px !important;
	border: 1px solid var(--pvm-border);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--pvm-surface-soft);
	cursor: pointer;
}

.pvm-design-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pvm-design-row__thumb span {
	font-size: 24px;
	color: var(--pvm-muted);
}

.pvm-design-row__fields {
	display: grid;
	gap: 8px;
}

.pvm-design-row__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
	min-width: 120px;
}

/* Search Box */
.pvm-search-box {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 10px;
}

.pvm-search-box input.pvm-ajax-search {
	flex: 1;
	min-width: 220px;
	height: 40px;
	margin: 0;
}

.pvm-search-box .button {
	height: 40px;
	display: flex;
	align-items: center;
}

/* Modal */
.pvm-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .65);
	display: flex !important;
	align-items: center;
	justify-content: center;
	z-index: 999999 !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
	visibility: hidden;
}

.pvm-modal.is-visible {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}

.pvm-modal__content {
	background: #fff;
	border-radius: 20px;
	width: 90%;
	max-width: 800px;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	border: 1px solid var(--pvm-border);
	overflow: hidden;
}

.pvm-modal__header {
	padding: 20px 25px;
	border-bottom: 1px solid var(--pvm-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8fafc;
}

.pvm-modal__header h2 {
	margin: 0;
	font-size: 20px;
	color: var(--pvm-text);
}

.pvm-modal__close {
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: var(--pvm-muted);
	line-height: 1;
	padding: 0 5px;
}

.pvm-modal__close:hover {
	color: #ef4444;
}

.pvm-modal__body {
	padding: 25px;
	overflow-y: auto;
}

.pvm-modal__body table {
	width: 100%;
	border-collapse: collapse;
}

.pvm-modal__body th {
	text-align: left;
	background: #f1f5f9;
	padding: 12px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #475569;
}

.pvm-modal__body td {
	padding: 12px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
}

/* Responsive Admin */
@media (max-width: 782px) {
	.pvm-design-row {
		grid-template-columns: 24px 1fr;
	}

	.pvm-design-row__thumb {
		grid-column: 2;
		margin: 0 auto;
	}

	.pvm-design-row__actions {
		align-items: stretch;
	}

	.pvm-search-box {
		flex-direction: column;
		align-items: stretch;
	}
}

/* Pagination */
.pvm-pagination {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 10px;
}

.pvm-pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--pvm-border);
	color: var(--pvm-text);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all .15s ease;
}

.pvm-pagination-link:hover {
	border-color: var(--pvm-primary);
	color: var(--pvm-primary);
}

.pvm-pagination-link.is-active {
	background: var(--pvm-primary);
	border-color: var(--pvm-primary);
	color: #fff;
}

.pvm-pagination-link.is-disabled {
	opacity: 0.5;
	pointer-events: none;
	background: var(--pvm-surface-soft);
}

/*coupon-seccion*/
.woocommerce form.checkout_coupon {
	border: 0px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.pvm-giftcard-redeem-inner {
	margin-right: 0;
}

/* Alineación de datos en el carrito */
dl.variation {
	display: grid;
	grid-template-columns: max-content 1fr;
	align-items: baseline;
	gap: 4px 12px;
}
dl.variation dt {
	font-weight: 700;
	margin: 0;
	clear: none;
}
dl.variation dd {
	margin: 0;
	clear: none;
}
dl.variation dd p {
	margin: 0;
}

/* Frontend Design Carousel */
.pvm-design-grid {
	display: flex;
	overflow-x: auto;
	padding: 10px 5px 20px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.pvm-design-grid::-webkit-scrollbar {
	height: 6px;
}

.pvm-design-grid::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.pvm-design-grid::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.pvm-design-grid::-webkit-scrollbar-thumb:hover {
	background: var(--pvm-primary);
}

.pvm-choice-card--design {
	flex: 0 0 140px;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center;
	padding: 15px 10px !important;
	height: auto !important;
	margin-right: 15px;
	position: relative;
}

.pvm-choice-card--design:last-child {
	margin-right: 0;
}

.pvm-design-thumb {
	width: 100px;
	height: 100px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f8;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	border: 1px solid var(--pvm-border);
	flex-shrink: 0;
}

.pvm-design-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pvm-design-thumb__placeholder {
	font-size: 24px;
	color: var(--pvm-muted);
}

.pvm-choice-card--design .pvm-choice__radio {
	position: absolute;
	top: 10px;
	right: 10px;
}

.pvm-choice-card--design .pvm-choice__body {
	width: 100%;
}

.pvm-choice-card--design .pvm-choice__body strong {
	display: block;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pvm-choice-card--design .pvm-choice__body small {
	display: block;
	font-size: 11px;
	line-height: 1.2;
	margin-top: 4px;
}