/* Armamos Tu Regalo — estilos base de los módulos custom.
   Pensados para heredar tipografía/colores de Woodmart; ajustar variables
   de tema si hace falta más adelante. */

.atr-presentacion-grupo {
	margin-bottom: 24px;
}

.atr-presentacion-grupo__titulo {
	margin-bottom: 10px;
}

.atr-presentacion-grupo {
	--atr-color: var(--wd-primary-color, #1f1f1f);
}

/* Opciones como tarjetas con imagen grande */
.atr-opciones-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.atr-opcion-card {
	position: relative;
	display: block;
	cursor: pointer;
	margin: 0;
}

.atr-opcion-card__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.atr-opcion-card__body {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 2px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.atr-opcion-card:hover .atr-opcion-card__body {
	border-color: #bdbdbd;
	transform: translateY(-2px);
}

.atr-opcion-card__input:focus-visible + .atr-opcion-card__body {
	outline: 2px solid var(--atr-color);
	outline-offset: 2px;
}

.atr-opcion-card__input:checked + .atr-opcion-card__body {
	border-color: var(--atr-color);
	box-shadow: 0 0 0 1px var(--atr-color), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.atr-opcion-card__input:checked + .atr-opcion-card__body::after {
	content: "\2713";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: var(--atr-color);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.atr-opcion-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: #f6f6f6;
}

.atr-opcion-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1 !important;
	visibility: visible !important;
}

.atr-opcion-card__media--vacia {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	color: #b5b5b5;
}

.atr-opcion-card__nombre {
	display: block;
	padding: 10px 12px 0;
	font-weight: 600;
	line-height: 1.3;
}

.atr-opcion-card__descripcion {
	display: block;
	padding: 4px 12px 0;
	font-size: 0.85em;
	line-height: 1.4;
	color: #666;
}

.atr-opcion-card__precio {
	display: block;
	padding: 2px 12px 12px;
	font-size: 0.9em;
	color: #666;
}

/* Mensaje de tarjeta */
.atr-mensaje-tarjeta {
	margin-top: 20px;
}

.atr-switch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	margin: 0;
}

.atr-switch__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.atr-switch__track {
	position: relative;
	width: 46px;
	height: 26px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: #cfcfcf;
	transition: background 0.2s;
}

.atr-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s;
}

.atr-switch__input:checked + .atr-switch__track {
	background: var(--atr-color, #1f1f1f);
}

.atr-switch__input:checked + .atr-switch__track .atr-switch__thumb {
	transform: translateX(20px);
}

.atr-switch__input:focus-visible + .atr-switch__track {
	outline: 2px solid var(--atr-color, #1f1f1f);
	outline-offset: 2px;
}

.atr-switch__label {
	font-weight: 600;
}

.atr-mensaje-tarjeta__panel {
	position: relative;
	margin-top: 12px;
}

.atr-mensaje-tarjeta__panel textarea {
	width: 100%;
	resize: vertical;
}

.atr-mensaje-tarjeta__contador {
	display: block;
	margin-top: 4px;
	text-align: right;
	font-size: 0.85em;
	color: #666;
}

.atr-mensaje-tarjeta__contador--limite {
	color: #b32d2e;
	font-weight: 600;
}

.atr-oculto {
	display: none !important;
}

/* Paso "Armá tu regalo" */
.atr-paso {
	margin-bottom: 32px;
}

.atr-armar-regalo__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
}

.atr-resumen-final__modificar {
	display: inline-block;
	margin-bottom: 12px;
}

/* Empaque por producto */
.atr-empaque-producto {
	margin-bottom: 40px;
	padding-bottom: 8px;
	border-bottom: 1px solid #ececec;
}

.atr-empaque-producto__cabecera {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.atr-empaque-producto__imagen {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #f6f6f6;
}

.atr-empaque-producto__imagen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1 !important;
}

.atr-empaque-producto__nombre {
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
}

.atr-empaque-producto__nombre small {
	font-weight: 400;
	color: #666;
}

.atr-resumen-final__empaque {
	color: #666;
}

/* Complementos: mismas tarjetas que los empaques, con selector de cantidad */
.atr-opciones-grid {
	--atr-color: var(--wd-primary-color, #1f1f1f);
}

.atr-complemento-card__cantidad,
.atr-complemento-card__agregar {
	margin-top: auto;
}

.atr-complemento-card__cantidad {
	display: flex;
	justify-content: center;
	padding: 4px 12px 14px;
}

.atr-complemento-card__agregar {
	display: block;
	width: calc(100% - 24px);
	margin: auto 12px 14px;
}

/* Cantidad 0 → botón "Agregar"; cantidad > 0 → selector +/- */
.atr-complemento-card:not(.is-selected) .atr-complemento-card__cantidad,
.atr-complemento-card.is-selected .atr-complemento-card__agregar {
	display: none;
}

.atr-complemento-card.is-selected .atr-opcion-card__body {
	border-color: var(--atr-color);
	box-shadow: 0 0 0 1px var(--atr-color), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.atr-complemento-card.is-selected::after {
	content: "\2713";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: var(--atr-color);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.atr-complemento-card.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

/* Entrega: tabs de modalidad */
.atr-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.atr-tab {
	position: relative;
	flex: 1 1 200px;
	margin: 0;
	cursor: pointer;
}

.atr-tab input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.atr-tab__texto {
	display: block;
	padding: 14px 16px;
	text-align: center;
	font-weight: 600;
	line-height: 1.3;
	border: 2px solid #242627;
	border-radius: 10px;
	background: black;
	color: #fff;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.atr-tab:hover .atr-tab__texto {
	border-color: #6a6d6f;
}

.atr-tab input:focus-visible + .atr-tab__texto {
	outline: 2px solid #6242b9;
	outline-offset: 2px;
}

.atr-tab input:checked + .atr-tab__texto {
	border-color: #6242b9;
	background: linear-gradient(to bottom, #020202, #242627);
	color: #fff;
}

.atr-disclaimer {
	font-size: 0.85em;
	color: #666;
	margin-top: 4px;
}

/* Entrega: zonas y sucursales */
.atr-zona-descripcion,
.atr-punto-descripcion {
	font-size: 0.9em;
	color: #666;
	margin: -4px 0 12px;
}
