/**
 * ATAMAN Lesson Booking — front-end calendar styles.
 */

/* --- Calendar --------------------------------------------------------- */
.ataman-cal {
	--ac: #4f46e5;
	--mut: #9aa0ac;
	max-width: 340px;
	margin: 16px 0;
	font-size: 14px;
}
.ataman-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.ataman-title {
	font-weight: 700;
	text-transform: capitalize;
}
.ataman-nav {
	background: #f3f4f6;
	border: 0;
	border-radius: 8px;
	width: 34px;
	height: 34px;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}
.ataman-nav:disabled {
	opacity: .35;
	cursor: default;
}
.ataman-dow {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 4px;
}
.ataman-dow span {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	line-height: 1.25;
	text-align: center;
	font-size: 11px;
	color: var(--mut);
	font-weight: 600;
}
.ataman-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.ataman-grid-note {
	grid-column: 1 / 8;
	color: var(--mut);
}
.ataman-grid-note.is-error,
.ataman-slots .is-error {
	color: #b00;
}
.ataman-slots .is-loading {
	color: var(--mut);
}
.ataman-empty {
	aspect-ratio: 1;
}

/* --- Day cells -------------------------------------------------------- */
.ataman-day {
	position: relative;
	aspect-ratio: 1;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: .12s;
}
.ataman-day .d {
	font-weight: 600;
	line-height: 1;
}
.ataman-day .s {
	font-size: 9px;
	color: #157347;
	margin-top: 2px;
	line-height: 1;
}
.ataman-day:hover:not(.is-off):not(.is-full) {
	border-color: var(--ac);
}
.ataman-day.is-off {
	background: #f9fafb;
	color: #cbd0d8;
	cursor: default;
	border-color: transparent;
}
.ataman-day.is-full {
	background: #fef2f2;
	color: #c0c0c0;
	cursor: default;
}
.ataman-day.is-full .s {
	color: #b91c1c;
}
.ataman-day.is-sel {
	background: var(--ac);
	border-color: var(--ac);
	color: #fff;
}
.ataman-day.is-sel .s {
	color: #fff;
}

/* --- Weekends and the optional second weekday row --------------------- */
/* The secondary abbreviation sits above the main one: smaller and paler,
   so the site language still reads first. */
.ataman-dow .fr {
	font-style: normal;
	font-size: 9px;
	font-weight: 500;
	opacity: .75;
	letter-spacing: .02em;
}
/* Saturday and Sunday in red, both in the header and in the grid. Selected
   days keep white text; closed days get a muted red. */
.ataman-dow span.is-we,
.ataman-dow span.is-we .fr {
	color: #dc2626;
}
.ataman-day.is-we .d {
	color: #dc2626;
}
.ataman-day.is-we.is-off .d {
	color: #f3b4b4;
}
.ataman-day.is-we.is-full .d {
	color: #e7bcbc;
}
.ataman-day.is-we.is-sel .d {
	color: #fff;
}

/* --- Time slots ------------------------------------------------------- */
.ataman-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.ataman-slot {
	border: 1px solid #e5e7eb;
	background: #fff;
	border-radius: 10px;
	padding: 7px 12px;
	cursor: pointer;
	text-align: center;
	min-width: 82px;
}
.ataman-slot .t {
	font-weight: 700;
	display: block;
	line-height: 1.2;
}
.ataman-slot .s {
	font-size: 10px;
	color: #157347;
}
.ataman-slot:hover:not(.is-full) {
	border-color: var(--ac);
}
.ataman-slot.is-full {
	background: #fef2f2;
	color: #c0c0c0;
	cursor: default;
}
.ataman-slot.is-full .s {
	color: #b91c1c;
}
.ataman-slot.is-sel {
	background: var(--ac);
	border-color: var(--ac);
	color: #fff;
}
.ataman-slot.is-sel .s {
	color: #fff;
}

/* --- Status message --------------------------------------------------- */
.ataman-msg {
	margin: 10px 0 0;
	font-weight: 600;
	min-height: 1.2em;
}
.ataman-msg.is-info {
	color: #555;
}
.ataman-msg.is-ok {
	color: #157347;
}
.ataman-msg.is-error {
	color: #b00;
}

/* --- Design numbers (one field per seat) ------------------------------ */
.ataman-patterns {
	margin-top: 14px;
	display: none;
}
.ataman-patterns.is-on {
	display: block;
}
.ataman-patterns-title {
	font-weight: 700;
	margin: 0 0 8px;
	font-size: 13px;
}
.ataman-pat-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.ataman-pat-row label {
	flex: 1;
	color: #444;
	font-size: 13px;
}
.ataman-pat-row input {
	width: 84px;
	padding: 7px 10px;
	border: 2px solid #6b7280;
	border-radius: 10px;
	background: #fff;
	color: #111;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.ataman-pat-row input:focus {
	outline: none;
	border-color: var(--ac);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .25);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 25%, transparent);
}
.ataman-pat-row input.is-bad {
	border-color: #dc2626;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .2);
}

/* --- Add to cart button while the booking is incomplete --------------- */
.single_add_to_cart_button.ataman-locked {
	opacity: .5;
}

/* --- Notice shown to administrators only ------------------------------ */
.ataman-admin-hint {
	padding: 10px;
	border: 1px dashed #c00;
	color: #c00;
	font-size: 13px;
}

/* --- Event tickets ---------------------------------------------------- */
.ataman-ev {
	--ac: #4f46e5;
	--mut: #6b7280;
	max-width: 420px;
	margin: 16px 0;
	font-size: 14px;
}
.ataman-ev-form .quantity {
	display: none !important; /* the number of tickets is chosen per ticket type */
}
.ataman-ev-h {
	margin: 0 0 8px;
	font-weight: 700;
}
.ataman-ev-dates {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	margin-bottom: 14px;
}
.ataman-ev-dates .ataman-grid-note {
	grid-column: 1 / -1;
}
.ataman-ev-date {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.ataman-ev-date:hover,
.ataman-ev-date:focus-visible {
	border-color: var(--ac);
	outline: none;
}
.ataman-ev-date.is-sel {
	border-color: var(--ac);
	background: color-mix(in srgb, var(--ac) 8%, #fff);
	box-shadow: 0 0 0 1px var(--ac) inset;
}
.ataman-ev-date.is-pass {
	border-style: dashed;
}
.ataman-ev-date.is-full {
	opacity: .5;
	cursor: not-allowed;
	background: #f9fafb;
}
.ataman-ev-when {
	font-weight: 700;
}
.ataman-ev-label {
	color: #374151;
}
.ataman-ev-left {
	font-size: 12px;
	color: #047857;
}
.ataman-ev-date.is-full .ataman-ev-left {
	color: #b91c1c;
}
.ataman-ev-types {
	display: none;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
}
.ataman-ev-types.is-on {
	display: block;
}
.ataman-ev-type {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: #fff;
}
.ataman-ev-type + .ataman-ev-type {
	border-top: 1px solid #f0f1f3;
}
.ataman-ev-info {
	display: flex;
	flex-direction: column;
}
.ataman-ev-name {
	font-weight: 600;
}
.ataman-ev-price {
	color: var(--mut);
	font-size: 13px;
}
.ataman-ev-step {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ataman-ev-step button {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid var(--ac);
	background: #fff;
	color: var(--ac);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.ataman-ev-step button:disabled {
	border-color: #d1d5db;
	color: #d1d5db;
	cursor: default;
}
.ataman-ev-n {
	min-width: 22px;
	text-align: center;
	font-weight: 700;
	font-size: 16px;
}
.ataman-ev-total {
	margin: 10px 0 0;
	font-weight: 700;
	font-size: 16px;
}
.ataman-ev-total:empty {
	display: none;
}
.ataman-ev-type.is-full .ataman-ev-info {
	opacity: .55;
}
.ataman-ev-date {
	position: relative;
}
.ataman-ev-badge {
	position: absolute;
	top: 6px;
	right: 8px;
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--ac);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}
.ataman-ev-sum {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
}
.ataman-ev-sum:empty {
	display: none;
}
.ataman-ev-line {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}
.ataman-ev-line.is-cur {
	border-color: var(--ac);
}
.ataman-ev-line-txt {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.ataman-ev-line-when {
	font-weight: 700;
	font-size: 14px;
}
.ataman-ev-line-what {
	font-size: 13px;
	color: #4b5563;
}
.ataman-ev-line-sum {
	font-weight: 700;
	white-space: nowrap;
}
.ataman-ev-line-del {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #fff;
	color: #6b7280;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.ataman-ev-line-del:hover {
	border-color: #b91c1c;
	color: #b91c1c;
}
.ataman-ev-date.has-badge {
	padding-right: 50px;
}
