/* Regalo para WooCommerce — ficha del producto.
 * Para adaptar el color al de tu tienda: .rgw-gift { --rgw-accent: #tu-color; }
 */
.rgw-gift {
	--rgw-accent: var(--wp--preset--color--primary, var(--wp--preset--color--contrast, #1e1e1e));
	--rgw-line: color-mix(in srgb, currentColor 16%, transparent);
	--rgw-soft: color-mix(in srgb, var(--rgw-accent) 6%, transparent);
	display: block;
	width: 100%;
	max-width: 100%;
	clear: both;
	margin: 0 0 1.25em;
	border: 1px solid var(--rgw-line);
	border-radius: 12px;
	transition: border-color .2s ease, background-color .2s ease;
	box-sizing: border-box;
}
.rgw-gift *, .rgw-gift *::before, .rgw-gift *::after { box-sizing: border-box; }
.rgw-gift.is-open { border-color: color-mix(in srgb, var(--rgw-accent) 45%, transparent); background: var(--rgw-soft); }

.rgw-gift__toggle { display: flex; align-items: center; gap: .75em; margin: 0; padding: .9em 1em; cursor: pointer; font-weight: 600; line-height: 1.3; }
.rgw-gift__toggle input { width: 1.15em; height: 1.15em; margin: 0; flex: none; accent-color: var(--rgw-accent); cursor: pointer; }
.rgw-gift__icon { display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; flex: none; border-radius: 50%; background: var(--rgw-soft); color: var(--rgw-accent); }
.rgw-gift.is-open .rgw-gift__icon { background: var(--rgw-accent); color: #fff; }
.rgw-gift__label { display: flex; flex-direction: column; gap: .15em; }
.rgw-gift__label small { font-weight: 400; font-size: .82em; opacity: .7; }

.rgw-gift__fields { display: flex; flex-wrap: wrap; gap: .9em 1em; padding: .25em 1em 1.1em; }
.rgw-gift__fields[hidden] { display: none !important; }
.rgw-field { flex: 1 1 100%; margin: 0 !important; display: flex; flex-direction: column; gap: .35em; }
.rgw-field--half { flex: 1 1 calc(50% - .5em); min-width: 200px; }
.rgw-field label { font-size: .9em; font-weight: 600; margin: 0; }
.rgw-field .required { color: #b32d2e; text-decoration: none; border: 0; }
.rgw-opt { font-weight: 400; opacity: .65; }
.rgw-field input, .rgw-field textarea { width: 100%; max-width: 100%; margin: 0; font: inherit; }
.rgw-field textarea { min-height: 5.5em; resize: vertical; }
.rgw-count, .rgw-hint { font-size: .78em; opacity: .65; }
.rgw-count { align-self: flex-end; }
.rgw-count.is-low { color: #b32d2e; opacity: 1; }
