/**
 * Gift Certificates for WooCommerce — frontend styling
 *
 * Values below are pulled directly from gloves.mrndev.io's own child theme
 * design tokens (site-color-*, gloves-radius-*, gloves-color-* custom
 * properties), not estimated. Colors/radii reference the theme's live CSS
 * variables with the real resolved value as a fallback, so this still
 * renders correctly if the plugin is ever used on a different theme.
 */

.gcwoo-fields {
	max-width: 640px;
	margin-bottom: 20px;
	font-family: inherit;
}

.gcwoo-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 16px;
}

.gcwoo-row label {
	flex: 0 0 180px;
	padding-top: 12px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.8333;
	color: var(--gloves-color-neutral-07, #141718);
}

.gcwoo-row .required {
	color: #c0392b;
}

.gcwoo-input-wrap {
	flex: 1 1 auto;
	position: relative;
}

.gcwoo-input {
	width: 100%;
	background: var(--site-color-white, #ffffff);
	border: 1px solid #b5b5b5;
	border-radius: var(--gloves-radius-field, 4px);
	box-sizing: border-box;
	color: var(--gloves-color-neutral-07, #141718);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	min-height: 48px;
	padding: 12px 14px;
	transition: border-color 0.15s ease, outline-color 0.15s ease;
}

.gcwoo-input:focus {
	outline: none;
	border-color: var(--site-color-brand-blue, #3333cc);
}

.gcwoo-input:focus-visible {
	border-color: var(--site-color-brand-blue, #3333cc);
	outline: 2px solid var(--gloves-color-button-light-hover-bg, #dfe9ff);
	outline-offset: 1px;
}

.gcwoo-currency {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gloves-color-neutral-04, #6c7275);
	pointer-events: none;
}

.gcwoo-row .gcwoo-amount {
	padding-left: 28px;
	width: 160px;
}

.gcwoo-textarea {
	resize: vertical;
	min-height: 110px;
	height: auto;
}

.gcwoo-error {
	background: #fbe1e1;
	color: #a33;
	padding: 10px 14px;
	border-radius: var(--gloves-radius-field, 4px);
	margin-bottom: 16px;
	font-family: inherit;
}

/* Gift certificate box + shortcode title — match theme typography */
.gcwoo-shortcode-title,
.gcwoo-redeem-title,
.gcwoo-fields-form .gcwoo-submit,
.gcwoo-applied-list,
.gcwoo-redeem-fields input,
.gcwoo-redeem-message {
	font-family: inherit;
}

/* Shortcode box — matches the bordered "Purchase Gift Certificates" panel */
.gcwoo-shortcode-box {
	max-width: 900px;
}

.gcwoo-shortcode-title {
	border: 1px solid var(--gloves-color-neutral-03, #e8ecef);
	background: var(--site-color-grey, #f3f5f7);
	padding: 14px 18px;
	font-size: 16px;
	margin-bottom: 24px;
	font-weight: 600;
	color: var(--gloves-color-neutral-07, #141718);
}

/* Matches the site's real primary CTA — #place_order / proceed-to-checkout —
   pulled from the child theme's own button rule, not a standalone guess. */
.gcwoo-fields-form .gcwoo-submit {
	background: var(--site-color-brand-blue, #3333cc);
	color: var(--site-color-white, #ffffff);
	border: 0;
	border-radius: var(--gloves-radius-button, 8px);
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.32px;
	line-height: 30px;
	padding: 12px 24px;
	transition: background-color 0.2s ease;
}

.gcwoo-fields-form .gcwoo-submit:hover,
.gcwoo-fields-form .gcwoo-submit:focus-visible {
	background: var(--site-color-dark-blue, #0a0a91);
}

/* Gift certificate redemption box on cart/checkout */
.gcwoo-redeem-box {
	border: 1px solid var(--gloves-color-neutral-03, #e8ecef);
	background: var(--site-color-grey, #f3f5f7);
	padding: 15px;
	margin-bottom: 20px;
	border-radius: var(--gloves-radius-field, 4px);
}

.gcwoo-redeem-title {
	margin: 0 0 10px;
	color: var(--gloves-color-neutral-07, #141718);
}

.gcwoo-redeem-fields {
	display: flex;
	gap: 10px;
	margin: 0;
}

.gcwoo-redeem-fields input[type="text"] {
	flex: 1 1 auto;
	background: var(--site-color-white, #ffffff);
	border: 1px solid #b5b5b5;
	border-radius: var(--gloves-radius-field, 4px);
	color: var(--gloves-color-neutral-07, #141718);
	font-family: inherit;
	padding: 10px 12px;
}

.gcwoo-redeem-fields input[type="text"]:focus-visible {
	outline: none;
	border-color: var(--site-color-brand-blue, #3333cc);
	outline: 2px solid var(--gloves-color-button-light-hover-bg, #dfe9ff);
	outline-offset: 1px;
}

.gcwoo-redeem-fields .button {
	background: var(--site-color-brand-blue, #3333cc);
	color: var(--site-color-white, #ffffff);
	border: 0;
	border-radius: var(--gloves-radius-button, 8px);
	cursor: pointer;
	font-family: inherit;
	font-weight: 500;
	padding: 10px 20px;
}

.gcwoo-redeem-fields .button:hover {
	background: var(--site-color-dark-blue, #0a0a91);
}

.gcwoo-applied-list {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.gcwoo-applied-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid var(--gloves-color-neutral-03, #e8ecef);
}

.gcwoo-applied-list .gcwoo-remove-certificate {
	color: #a33;
	text-decoration: none;
	font-size: 12px;
}

.gcwoo-redeem-message {
	margin-top: 8px;
	font-size: 13px;
}
