/**
 * Stylesheet: Office Hours Live (kew-office-hours)
 * Khalaf Elementor Addons P2
 *
 * Scoped under .kew-oh-wrapper with full CSS variable controls,
 * responsive design, RTL support, and prefers-reduced-motion safety.
 */

:root {
	--kew-oh-ring-color: #d4b06a;
	--kew-oh-ring-offset: 4px;
	--kew-oh-ring-width: 2.5px;
	--kew-oh-pulse-dur: 1.6s;
}

/* -------------------------------------------------------------------------
 * 1. Base Container
 * ------------------------------------------------------------------------- */
.kew-oh-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	background-color: transparent;
	gap: 20px;
}

.kew-oh-wrapper *,
.kew-oh-wrapper *::before,
.kew-oh-wrapper *::after {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * 2. Days Range Line
 * ------------------------------------------------------------------------- */
.kew-oh-days-line {
	margin: 0;
	color: #d4b06a;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------------
 * 3. Hours Line
 * ------------------------------------------------------------------------- */
.kew-oh-hours-line {
	margin: 0;
	color: #5bc4c4;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

/* -------------------------------------------------------------------------
 * 4. Status Badge (Pill with Indicator Dot)
 * ------------------------------------------------------------------------- */
.kew-oh-badge-wrap {
	display: flex;
	align-items: center;
}

.kew-oh-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 18px;
	border-radius: 30px;
	border: 1px solid rgba(91, 196, 196, 0.4);
	background-color: rgba(91, 196, 196, 0.08);
	color: #5bc4c4;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	line-height: 1.2;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.kew-oh-badge-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: currentColor;
	flex-shrink: 0;
}

/* Pulsing Indicator Dot when Open */
.kew-oh-badge.kew-oh-status-open .kew-oh-badge-dot {
	animation: kew-oh-pulse var(--kew-oh-pulse-dur, 1.6s) infinite ease-in-out;
}

@keyframes kew-oh-pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(91, 196, 196, 0.7);
	}
	70% {
		transform: scale(1.15);
		box-shadow: 0 0 0 8px rgba(91, 196, 196, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(91, 196, 196, 0);
	}
}

/* Badge States */
.kew-oh-badge.kew-oh-status-outside {
	border-color: rgba(148, 163, 184, 0.3);
	background-color: transparent;
	color: #94a3b8;
}

.kew-oh-badge.kew-oh-status-closed {
	border-color: rgba(100, 116, 139, 0.25);
	background-color: transparent;
	color: #64748b;
}

.kew-oh-badge.kew-oh-status-holiday {
	border-color: rgba(212, 176, 106, 0.4);
	background-color: rgba(212, 176, 106, 0.08);
	color: #d4b06a;
}

/* -------------------------------------------------------------------------
 * 5. Day Chips Row (7 Days of the Week)
 * ------------------------------------------------------------------------- */
.kew-oh-chips-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.kew-oh-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 52px;
	border-radius: 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
	user-select: none;
}

/* Working Day Chip */
.kew-oh-chip.kew-oh-is-workday {
	background-color: #5bc4c4;
	color: #0c1222;
	border: 1.5px solid transparent;
}

/* Off Day Chip (Weekend / Closed) */
.kew-oh-chip.kew-oh-is-offday {
	background-color: transparent;
	color: rgba(255, 255, 255, 0.45);
	border: 1.5px dashed rgba(255, 255, 255, 0.22);
}

/* Active Today Ring Highlight */
.kew-oh-chip.kew-oh-is-today {
	position: relative;
	outline: var(--kew-oh-ring-width, 2.5px) solid var(--kew-oh-ring-color, #d4b06a);
	outline-offset: var(--kew-oh-ring-offset, 4px);
}

/* -------------------------------------------------------------------------
 * 6. Note Paragraph
 * ------------------------------------------------------------------------- */
.kew-oh-note {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 15px;
	line-height: 1.6;
	max-width: 580px;
}

/* -------------------------------------------------------------------------
 * 7. Map Location Box / Button
 * ------------------------------------------------------------------------- */
.kew-oh-map-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	padding: 14px 24px;
	border-radius: 24px;
	border: 1.5px dashed rgba(255, 255, 255, 0.22);
	background-color: transparent;
	color: rgba(255, 255, 255, 0.45);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

.kew-oh-map-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	line-height: 1;
	flex-shrink: 0;
}

.kew-oh-map-icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

/* Interactive Map Button (When Link Provided) */
a.kew-oh-map-box {
	cursor: pointer;
}

a.kew-oh-map-box:hover {
	color: #5bc4c4;
	border-color: #5bc4c4;
	background-color: rgba(91, 196, 196, 0.08);
	transform: translateY(-2px);
}

a.kew-oh-map-box:active {
	transform: translateY(0);
}

a.kew-oh-map-box:focus-visible {
	outline: 2px solid #5bc4c4;
	outline-offset: 4px;
}

/* Disabled Map Box (When URL is empty) */
div.kew-oh-map-box {
	cursor: default;
	pointer-events: none;
	opacity: 0.85;
}

/* -------------------------------------------------------------------------
 * 8. RTL Support
 * ------------------------------------------------------------------------- */
[dir="rtl"] .kew-oh-wrapper,
.rtl .kew-oh-wrapper {
	text-align: right;
}

[dir="rtl"] .kew-oh-badge,
.rtl .kew-oh-badge {
	flex-direction: row;
}

[dir="rtl"] .kew-oh-chips-row,
.rtl .kew-oh-chips-row {
	flex-direction: row;
}

[dir="rtl"] .kew-oh-map-box,
.rtl .kew-oh-map-box {
	flex-direction: row;
}

/* -------------------------------------------------------------------------
 * 9. Responsive Breakpoints
 * ------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.kew-oh-hours-line {
		font-size: 32px;
	}

	.kew-oh-chip {
		width: 54px;
		height: 46px;
		font-size: 13px;
		border-radius: 12px;
	}

	.kew-oh-chips-row {
		gap: 10px;
	}

	.kew-oh-map-box {
		min-height: 56px;
		padding: 12px 18px;
		border-radius: 20px;
	}
}

@media (max-width: 480px) {
	.kew-oh-days-line {
		font-size: 17px;
	}

	.kew-oh-hours-line {
		font-size: 26px;
	}

	.kew-oh-chip {
		width: 46px;
		height: 42px;
		font-size: 12px;
		border-radius: 10px;
	}

	.kew-oh-chips-row {
		gap: 8px;
	}

	.kew-oh-chip.kew-oh-is-today {
		outline-offset: 3px;
		outline-width: 2px;
	}

	.kew-oh-badge {
		font-size: 11px;
		padding: 6px 14px;
		letter-spacing: 1px;
	}

	.kew-oh-map-box {
		font-size: 12px;
		letter-spacing: 1.5px;
	}
}

/* -------------------------------------------------------------------------
 * 10. Accessibility & Reduced Motion
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.kew-oh-badge.kew-oh-status-open .kew-oh-badge-dot {
		animation: none !important;
	}

	.kew-oh-chip,
	.kew-oh-map-box,
	.kew-oh-badge {
		transition: none !important;
	}
}
