/* ==========================================================================
   Shoppers Clearance — Gift Card page redesign (YITH Gift Cards)
   Scoped to the gift-card form (.wvq-gc-form) + injected band (.wvq-gc-band).
   ========================================================================== */

.wvq-giftcard-page,
.wvq-gc-form,
.wvq-gc-band,
.wvq-gc-panel,
.wvq-gc-redeem {
	--gc-red: #e01e26;
	--gc-red-2: #f0353c;
	--gc-red-d: #b3141b;
	--gc-ink: #1f2430;
	--gc-muted: #6b7280;
	--gc-line: #e7e8ec;
	--gc-card: #fff;
}
.wvq-gc-form *, .wvq-gc-band * { box-sizing: border-box; }

/* Hide YITH's default section headings — we render our own numbered steps. */
.wvq-gc-form .ywgc_select_amount_title,
.wvq-gc-form .ywgc_choose_design_title,
.wvq-gc-form .ywgc_delivery_info_title { display: none !important; }

/* --------------------------------------------------------------  Steps  */

.wvq-gc-step { margin: 0 0 22px; }
.wvq-gc-step__h {
	display: flex; align-items: center; gap: 10px;
	font-size: 16px; font-weight: 800; color: var(--gc-ink); margin: 0 0 12px;
}
.wvq-gc-step__n {
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--gc-red); color: #fff; font-size: 13px; font-weight: 800;
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

/* ----------------------------------------------------  Amount buttons  */

.wvq-gc-form .gift-cards-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}
@media (max-width: 520px) { .wvq-gc-form .gift-cards-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.wvq-gc-form input.ywgc-predefined-amount-button { display: none !important; }

.wvq-gc-form button.ywgc-predefined-amount-button,
.wvq-gc-form .ywgc-predefined-amount-button.ywgc-amount-buttons {
	border: 1.5px solid var(--gc-line);
	background: #fff;
	border-radius: 10px;
	padding: 14px 8px;
	font-size: 15px;
	font-weight: 800;
	color: var(--gc-ink);
	cursor: pointer;
	transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, color .14s ease;
	width: 100%;
}
.wvq-gc-form button.ywgc-predefined-amount-button:hover { border-color: #c9ced7; }
/* YITH marks the chosen amount with .selected_button */
.wvq-gc-form button.ywgc-predefined-amount-button.selected_button,
.wvq-gc-form button.ywgc-predefined-amount-button.selected {
	border-color: transparent !important;
	background: linear-gradient(135deg, var(--gc-red-2), var(--gc-red)) !important;
	color: #fff !important;
	box-shadow: 0 10px 20px -10px rgba(224, 30, 38, .8) !important;
}

.wvq-gc-form .ywgc-manual-amount-container {
	grid-column: 1 / -1;
	display: flex; align-items: center;
	border: 1.5px solid var(--gc-line); border-radius: 10px;
	padding: 4px 12px; background: #fff;
}
.wvq-gc-form .ywgc-manual-amount-container:focus-within { border-color: var(--gc-red); box-shadow: 0 0 0 3px rgba(224, 30, 38, .12); }
.wvq-gc-form .ywgc-manual-currency-symbol { font-weight: 800; color: var(--gc-muted); }
.wvq-gc-form input#ywgc-manual-amount,
.wvq-gc-form .ywgc-manual-amount { border: none !important; box-shadow: none !important; font-size: 15px; font-weight: 700; padding: 10px 8px; background: transparent; width: 100%; }

/* --------------------------------------------  Delivery + personalize  */

.wvq-gc-step--delivery .gift-card-content-editor { margin: 0; }

/* Redundant sub-headings (RECIPIENT INFO / YOUR INFO) — field labels are clear now */
.wvq-gc-form .ywgc_recipient_info_title,
.wvq-gc-form .ywgc-sender-info-title { display: none; }

/* Recipient name + email side by side */
.wvq-gc-step--delivery .ywgc-single-recipient {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
}
@media (max-width: 520px) { .wvq-gc-step--delivery .ywgc-single-recipient { grid-template-columns: 1fr; } }

/* One field per row */
.wvq-gc-step--delivery .ywgc-recipient-name,
.wvq-gc-step--delivery .ywgc-recipient-email,
.wvq-gc-step--delivery .ywgc-sender-name,
.wvq-gc-step--delivery .ywgc-message,
.wvq-gc-step--delivery .ywgc-postdated { margin: 0 0 14px; }

.wvq-gc-step--delivery label {
	display: block; font-size: 12.5px; font-weight: 700; color: #374151; margin: 0 0 5px;
}
.wvq-gc-step--delivery input[type="text"],
.wvq-gc-step--delivery input[type="email"],
.wvq-gc-step--delivery input[type="date"],
.wvq-gc-step--delivery input.datepicker,
.wvq-gc-step--delivery select,
.wvq-gc-step--delivery textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid var(--gc-line);
	border-radius: 10px;
	font-size: 14px;
	background: #fff;
	color: var(--gc-ink);
	margin: 0;
}
.wvq-gc-step--delivery input:focus,
.wvq-gc-step--delivery select:focus,
.wvq-gc-step--delivery textarea:focus { outline: none; border-color: var(--gc-red); box-shadow: 0 0 0 3px rgba(224, 30, 38, .12); }
.wvq-gc-step--delivery textarea { min-height: 90px; resize: vertical; }

.wvq-gc-step--delivery .ywgc-empty-recipient-note { display: block; font-size: 11.5px; color: var(--gc-muted); margin: -8px 0 12px; }
.wvq-gc-step--delivery .add-recipient { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gc-red); margin: 0 0 14px; text-decoration: none; }
.wvq-gc-step--delivery .ywgc-delivery-notification-checkbox-container { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 12.5px; color: #4b5563; }
.wvq-gc-step--delivery .ywgc-delivery-notification-checkbox-container label { display: inline; margin: 0; font-weight: 600; }

/* ------------------------------------------------------  Design list  */

.wvq-gc-form .ywgc-choose-design-preview { margin: 0; }
.wvq-gc-form .ywgc-design-list ul {
	display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0;
}
.wvq-gc-form .ywgc-design-list li { margin: 0; }
.wvq-gc-form .ywgc-preset-image {
	width: 92px; border: 2px solid var(--gc-line); border-radius: 10px; overflow: hidden; cursor: pointer;
	transition: border-color .14s ease, box-shadow .14s ease;
}
.wvq-gc-form .ywgc-preset-image img { display: block; width: 100%; height: auto; }
.wvq-gc-form .ywgc-preset-image:hover { border-color: #c9ced7; }
.wvq-gc-form .ywgc-preset-image.selected_image_parent,
.wvq-gc-form .ywgc-preset-image.selected {
	border-color: var(--gc-red); box-shadow: 0 6px 14px -8px rgba(224, 30, 38, .7);
}
.wvq-gc-form .ywgc-custom-design-link { font-size: 13px; margin-top: 8px; }
.wvq-gc-form .ywgc-custom-design-link a { color: var(--gc-red); font-weight: 700; }

/* ------------------------------------------------  Add to cart + badges  */

.wvq-gc-actions .single_add_to_cart_button,
.wvq-gc-actions button[type="submit"],
.wvq-gc-actions input[type="submit"] {
	background: linear-gradient(135deg, var(--gc-red-2), var(--gc-red)) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 12px !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	padding: 15px 30px !important;
	box-shadow: 0 14px 26px -12px rgba(224, 30, 38, .8);
	transition: transform .12s ease, box-shadow .18s ease;
	width: auto;
}
.wvq-gc-actions .single_add_to_cart_button:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -12px rgba(224, 30, 38, .85); }

.wvq-gc-badges { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0 4px; }
.wvq-gc-badge { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #4b5563; }
.wvq-gc-badge__i { color: var(--gc-red); font-size: 15px; }

/* ==================================================================  Band  */

.wvq-gc-band { max-width: 1180px; margin: 34px auto 0; padding: 0 4px; }

.wvq-gc-extras {
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}
@media (max-width: 900px) { .wvq-gc-extras { grid-template-columns: 1fr; } }

/* Redeem panel */
.wvq-gc-redeem { background: var(--gc-card); border: 1px solid var(--gc-line); border-radius: 14px; padding: 18px; }
.wvq-gc-redeem__t { font-size: 14px; font-weight: 800; color: var(--gc-red); margin: 0 0 12px; }
.wvq-gc-redeem__row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }

/* Relocated blocks (JS moves these into Martfury's real containers) */
.mf-product-detail .wvq-gc-redeem { margin-top: 16px; }
.wvq-gc-band .wvq-gc-extras:empty { display: none; }

/* Sidebar panels must keep the card + red header despite the theme's widget CSS. */
#primary-sidebar .wvq-gc-panel,
.product-sidebar .wvq-gc-panel {
	background: #fff !important;
	border: 1px solid var(--gc-line) !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	margin-bottom: 20px !important;
	box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .3);
	list-style: none;
	padding: 0 !important;
}
#primary-sidebar .wvq-gc-panel__h,
.product-sidebar .wvq-gc-panel__h {
	background: var(--gc-red) !important;
	color: #fff !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
#primary-sidebar .wvq-gc-feat,
.product-sidebar .wvq-gc-feat { margin: 0 !important; }
.wvq-gc-redeem__info { flex: 1; }
.wvq-gc-redeem__note { font-size: 12.5px; color: var(--gc-muted); margin: 0 0 8px; line-height: 1.5; }
.wvq-gc-redeem__list { margin: 0; padding-left: 16px; font-size: 12.5px; color: #374151; }
.wvq-gc-redeem__list li { margin: 2px 0; }
.wvq-gc-redeem__qr { flex: 0 0 auto; text-align: center; }
.wvq-gc-redeem__code { width: 108px; height: 108px; border: 1px solid var(--gc-line); border-radius: 10px; padding: 6px; background: #fff; }
.wvq-gc-redeem__code canvas { width: 100% !important; height: 100% !important; display: block; }
.wvq-gc-redeem__scan { display: block; margin-top: 5px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--gc-red); }

/* Feature / How panels */
.wvq-gc-panel { background: var(--gc-card); border: 1px solid var(--gc-line); border-radius: 14px; overflow: hidden; }
.wvq-gc-panel__h { background: var(--gc-red); color: #fff; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; font-weight: 800; padding: 12px 16px; text-align: center; }
.wvq-gc-feat { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f2f2f4; }
.wvq-gc-feat:last-child { border-bottom: none; }
.wvq-gc-feat__i { width: 34px; height: 34px; border-radius: 50%; background: #fdeaea; color: var(--gc-red); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.wvq-gc-feat__t { font-weight: 800; font-size: 13px; }
.wvq-gc-feat__s { font-size: 11.5px; color: var(--gc-muted); }
.wvq-gc-how { padding: 12px 16px; }
.wvq-gc-how__row { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.wvq-gc-how__n { width: 26px; height: 26px; border-radius: 50%; background: var(--gc-red); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wvq-gc-how__t { font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.wvq-gc-how__s { font-size: 11.5px; color: var(--gc-muted); }

/* Designs gallery */
.wvq-gc-designs { margin: 8px 0 30px; }
.wvq-gc-designs__h { text-align: center; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 18px; }
.wvq-gc-designs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .wvq-gc-designs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wvq-gc-designs__grid { grid-template-columns: 1fr; } }
.wvq-gc-designs__card { border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -20px rgba(0,0,0,.4); background: #f6f7f9; }
.wvq-gc-designs__card img { display: block; width: 100%; height: auto; }

/* Trust bar */
.wvq-gc-trust { background: var(--gc-card); border: 1px solid var(--gc-line); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 12px; }
@media (max-width: 820px) { .wvq-gc-trust { grid-template-columns: repeat(2, 1fr); } }
.wvq-gc-trust__i { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #4b5563; }
.wvq-gc-trust__i span { width: 32px; height: 32px; border-radius: 9px; background: #fdeaea; color: var(--gc-red); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.wvq-gc-trust__i b { display: block; color: var(--gc-ink); }
