/* Formulario de compra */
.ggc-form [hidden] {
	display: none !important;
}

.ggc-form .ggc-field {
	border: 0;
	margin: 0 0 1.5em;
	padding: 0;
}

.ggc-form .ggc-field legend {
	font-weight: 600;
	margin-bottom: 0.6em;
	padding: 0;
}

.ggc-form .ggc-details label {
	display: block;
	margin-bottom: 0.25em;
}

.ggc-form .ggc-details .input-text,
.ggc-form .ggc-custom-amount .input-text {
	width: 100%;
	box-sizing: border-box;
}

.ggc-help {
	display: block;
	opacity: 0.75;
	margin-top: 0.3em;
}

.ggc-upload-error,
.ggc-error {
	color: #b32d2e;
	opacity: 1;
}

.ggc-preview {
	margin-bottom: 0.8em;
}

.ggc-preview img {
	display: block;
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 8px;
}

.ggc-design-list,
.ggc-amount-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ggc-form .ggc-design {
	box-sizing: border-box;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: #f3f3f3;
	overflow: hidden;
	cursor: pointer;
}

.ggc-form .ggc-design:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

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

.ggc-form .ggc-design.is-selected {
	border-color: currentColor;
}

.ggc-form .ggc-design--upload {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2;
	padding: 4px;
	border: 2px dashed #bbb;
	position: relative;
}

.ggc-form .ggc-design--upload span {
	line-height: 1.2;
}

.ggc-design--upload input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.ggc-amount input {
	position: absolute;
	opacity: 0;
}

.ggc-form .ggc-amount {
	margin: 0;
	padding: 0;
	border: 0;
}

.ggc-amount > span {
	display: inline-block;
	padding: 0.5em 1em;
	border: 2px solid #ccc;
	border-radius: 6px;
	cursor: pointer;
}

.ggc-form .ggc-amount > span * {
	border: 0;
	padding: 0;
	margin: 0;
	background: none;
	font-size: inherit;
	color: inherit;
}

.ggc-amount input:checked + span {
	border-color: currentColor;
	font-weight: 600;
}

.ggc-amount input:focus-visible + span {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ggc-custom-amount {
	margin-top: 0.8em;
}

/* Galería del producto: muestra el diseño elegido, sin zoom ni lightbox */
.ggc-gallery .woocommerce-product-gallery__trigger {
	display: none !important;
}

.ggc-gallery .ggc-gallery-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.ggc-cart-thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
}

/* Mi cuenta / consulta de saldo */
.ggc-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.2em;
	margin-bottom: 1.5em;
}

.ggc-card--expired {
	opacity: 0.6;
}

.ggc-card__head {
	display: flex;
	gap: 1em;
	align-items: center;
	margin-bottom: 1em;
}

.ggc-card__image {
	width: 96px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
}

.ggc-card__code {
	font-family: monospace;
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: 1px;
}

.ggc-card__meta {
	font-size: 0.9em;
	opacity: 0.75;
}

.ggc-card__totals {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
}

.ggc-card__totals span {
	display: block;
	font-size: 0.85em;
	opacity: 0.75;
}

.ggc-card__totals strong {
	font-size: 1.25em;
}

.ggc-card__available strong {
	font-size: 1.5em;
}

.ggc-card__bar {
	height: 8px;
	background: #e6e6e6;
	border-radius: 4px;
	margin: 0.8em 0 1em;
	overflow: hidden;
}

.ggc-card__bar span {
	display: block;
	height: 100%;
	background: currentColor;
	opacity: 0.55;
}

.ggc-card__log {
	margin-bottom: 0;
}

.ggc-minus {
	color: #b32d2e;
}

.ggc-plus {
	color: #2a7d3b;
}

.ggc-inline {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ggc-inline .input-text {
	flex: 1 1 200px;
}
