/* Pgarazas Gift Cards — frontend overrides. */

/* The7 hides the summary price block under certain conditions; force-show it for
   gift card products so the bound product's resolved price is always visible. */
.woocommerce div.product.product-type-pggc_gift_card div.summary > .price {
	display: block;
}

/* Gift card redemption page (shortcode [pggc_redeem]).
   Inherits theme typography & colors; styles only structure, spacing, and the
   coupon-style code input. */
.pggc-redeem {
	display: flex;
	justify-content: center;
	padding: 0 16px;
	margin: 32px 0;
}

.pggc-redeem__inner {
	width: 100%;
	max-width: 520px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	padding: 32px 28px;
	box-sizing: border-box;
}

.pggc-redeem__title {
	margin: 0 0 8px;
	font-size: 1.6em;
	line-height: 1.25;
	text-align: center;
}

.pggc-redeem__lead {
	margin: 0 0 24px;
	color: rgba(0, 0, 0, 0.65);
	font-size: 0.95em;
	line-height: 1.5;
	text-align: center;
}

.pggc-redeem__notice {
	border-radius: 4px;
	padding: 12px 16px;
	margin: 0 0 20px;
	font-size: 0.95em;
	line-height: 1.4;
}

.pggc-redeem__notice p {
	margin: 0;
}

.pggc-redeem__notice p + p {
	margin-top: 6px;
}

.pggc-redeem__notice--error {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c6c2;
}

.pggc-redeem__notice--success {
	background: #e8f5ec;
	color: #1e7e34;
	border: 1px solid #c2e2cb;
}

.pggc-redeem__field {
	margin-bottom: 20px;
}

.pggc-redeem__label {
	display: block;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 8px;
	color: rgba(0, 0, 0, 0.7);
}

.pggc-redeem__input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	font-size: 1.25em;
	letter-spacing: 0.18em;
	font-family: inherit;
	text-transform: uppercase;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 4px;
	background: #fafafa;
	color: inherit;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pggc-redeem__input::placeholder {
	color: rgba(0, 0, 0, 0.25);
	letter-spacing: 0.18em;
}

.pggc-redeem__input:focus {
	outline: none;
	background: #fff;
	border-color: rgba(0, 0, 0, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.pggc-redeem__input:invalid {
	box-shadow: none;
}

.pggc-redeem__hint {
	display: block;
	margin-top: 8px;
	font-size: 0.8em;
	color: rgba(0, 0, 0, 0.5);
	line-height: 1.4;
}

.pggc-redeem__submit {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 18px;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
	border-radius: 4px;
	cursor: pointer;
}

@media (max-width: 480px) {
	.pggc-redeem__inner {
		padding: 24px 18px;
	}
	.pggc-redeem__input {
		font-size: 1.1em;
		padding: 12px 14px;
	}
}
