/* Tata Store – product page additions. Colors come from the theme's palette
 * variables, with fallbacks so the plugin looks fine on any theme. */

.tata-notes {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	margin: 0.25rem 0 0.5rem;
}
.tata-notes label { font-weight: 600; }
.tata-optional { font-weight: 400; color: var(--wp--preset--color--bark, #6a5544); }
.tata-notes textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem;
	border: 1px solid #cdbda4;
	border-radius: 8px;
	background: var(--wp--preset--color--paper, #fffdf9);
	color: inherit;
	font: inherit;
	font-size: 0.9375rem;
	resize: vertical;
}
.tata-notes textarea:focus { outline: 2px solid var(--wp--preset--color--olive, #4f5a2e); outline-offset: 2px; }

.tata-ship-note {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--bark, #6a5544);
}
.tata-ship-note svg { flex: none; color: var(--wp--preset--color--olive, #4f5a2e); }

.tata-custom-link {
	margin: 0;
	padding: 1rem 1.25rem;
	border-radius: 10px;
	background: var(--wp--preset--color--sand, #efe6d8);
	font-size: 0.9375rem;
}
.tata-custom-link a { font-weight: 600; }

/* Swatches */
.variations td.value { position: relative; }
.tata-select-hidden {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.tata-swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tata-swatch {
	min-width: 44px;
	min-height: 44px;
	padding: 0 1.1rem;
	border: 1px solid var(--wp--preset--color--espresso, #33251c);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--espresso, #33251c);
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
}
.tata-swatch:hover { background: var(--wp--preset--color--sand, #efe6d8); }
.tata-swatch.is-selected { background: var(--wp--preset--color--espresso, #33251c); color: var(--wp--preset--color--linen, #f6f0e7); }
.tata-swatch:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.tata-swatch:focus-visible { outline: 2px solid var(--wp--preset--color--olive, #4f5a2e); outline-offset: 2px; }

.tata-swatch--color {
	width: 48px;
	height: 48px;
	padding: 3px;
	border: 2px solid transparent;
}
.tata-swatch--color.is-selected { background: transparent; border-color: var(--wp--preset--color--espresso, #33251c); }
.tata-swatch--color:hover { background: transparent; border-color: var(--wp--preset--color--line, #ddd0bd); }
.tata-swatch--color.is-selected:hover { border-color: var(--wp--preset--color--espresso, #33251c); }
.tata-swatch__dot {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(51, 37, 28, 0.2);
}
.tata-chosen { font-weight: 400; }
