/* ==========================================================================
   Joyful Path Availability Widget — Front-end Styles
   Palette derived from logo: Red #E63329, Blue #2E6CA4, Gold #F2A93B, Purple #7B4FA0
   ========================================================================== */

.jpaw-container {
	--jpaw-primary: #E63329;
	--jpaw-secondary: #2E6CA4;
	--jpaw-accent: #F2A93B;
	--jpaw-purple: #7B4FA0;
	--jpaw-bg: #ffffff;
	--jpaw-text: #2b2b2b;
	--jpaw-muted: #6b6b6b;

	box-sizing: border-box;
	width: 100%;
}

.jpaw-container * {
	box-sizing: border-box;
}

.jpaw-card-main {
	position: relative;
	background: linear-gradient(160deg, var(--jpaw-bg) 0%, #fdf6f0 100%);
	border-radius: 22px;
	padding: 40px 32px;
	text-align: center;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.jpaw-card-main::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, var(--jpaw-accent) 0%, transparent 70%);
	opacity: 0.25;
	border-radius: 50%;
	pointer-events: none;
}

.jpaw-card-main::after {
	content: "";
	position: absolute;
	bottom: -70px;
	left: -70px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, var(--jpaw-secondary) 0%, transparent 70%);
	opacity: 0.18;
	border-radius: 50%;
	pointer-events: none;
}

/* ---------- Logo ---------- */
.jpaw-logo-wrap {
	margin-bottom: 14px;
	display: flex;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.jpaw-logo-img {
	max-width: 110px;
	height: auto;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

/* ---------- Headings ---------- */
.jpaw-heading {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--jpaw-purple);
	position: relative;
	z-index: 1;
	letter-spacing: 0.3px;
}

.jpaw-subheading {
	margin: 0 0 22px;
	color: var(--jpaw-muted);
	font-size: 15px;
	max-width: 480px;
	margin-inline: auto;
	position: relative;
	z-index: 1;
}

.jpaw-body-text {
	font-family: inherit;
}

/* ---------- Today Status Badge ---------- */
.jpaw-today-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	position: relative;
	z-index: 1;
}

.jpaw-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.jpaw-badge-open {
	background: rgba(46, 160, 67, 0.12);
	color: #1f8a3a;
}

.jpaw-badge-closed {
	background: rgba(230, 51, 41, 0.12);
	color: var(--jpaw-primary);
}

.jpaw-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}

.jpaw-badge-open.jpaw-pulse-on .jpaw-dot {
	animation: jpaw-pulse 1.6s ease-in-out infinite;
}

@keyframes jpaw-pulse {
	0% { box-shadow: 0 0 0 0 rgba(31, 138, 58, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(31, 138, 58, 0); }
	100% { box-shadow: 0 0 0 0 rgba(31, 138, 58, 0); }
}

.jpaw-today-time {
	font-size: 15px;
	font-weight: 600;
	color: var(--jpaw-secondary);
}

/* ---------- Weekly Schedule List ---------- */
.jpaw-week-list {
	background: #fff;
	border-radius: 16px;
	padding: 6px 18px;
	margin: 0 auto 26px;
	max-width: 420px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 1;
}

.jpaw-week-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 6px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 14.5px;
	opacity: 0;
	transform: translateY(8px);
}

.jpaw-week-row:last-child {
	border-bottom: none;
}

.jpaw-week-day {
	color: var(--jpaw-text);
	font-weight: 600;
}

.jpaw-week-time {
	color: var(--jpaw-muted);
	font-weight: 500;
}

.jpaw-row-today {
	background: linear-gradient(90deg, rgba(242, 169, 59, 0.12), rgba(230, 51, 41, 0.06));
	border-radius: 10px;
	margin: 2px -8px;
	padding: 11px 14px;
}

.jpaw-row-today .jpaw-week-day {
	color: var(--jpaw-primary);
}

.jpaw-row-today .jpaw-week-time {
	color: var(--jpaw-primary);
	font-weight: 700;
}

/* ---------- Contact Buttons ---------- */
.jpaw-contact-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	position: relative;
	z-index: 1;
}

.jpaw-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 24px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 14.5px;
	text-decoration: none;
	color: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	will-change: transform;
}

.jpaw-btn:hover {
	transform: translateY(-3px) scale(1.03);
	filter: brightness(1.05);
}

.jpaw-btn:active {
	transform: translateY(0) scale(0.98);
}

.jpaw-btn-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.jpaw-btn-call {
	background: linear-gradient(135deg, var(--jpaw-primary), #c4231b);
}

.jpaw-btn-email {
	background: linear-gradient(135deg, var(--jpaw-secondary), #1f4f7a);
}

.jpaw-btn-whatsapp {
	background: linear-gradient(135deg, #25D366, #1da851);
}

.jpaw-admin-hint {
	margin-top: 16px;
	font-size: 12.5px;
	color: var(--jpaw-primary);
	background: rgba(230, 51, 41, 0.06);
	border: 1px dashed rgba(230, 51, 41, 0.3);
	border-radius: 8px;
	padding: 8px 12px;
	position: relative;
	z-index: 1;
}

/* ---------- Entrance Animations ---------- */
.jpaw-animated .jpaw-logo-wrap {
	animation: jpaw-fade-down 0.7s ease both;
}

.jpaw-animated .jpaw-heading {
	animation: jpaw-fade-up 0.7s 0.1s ease both;
}

.jpaw-animated .jpaw-subheading {
	animation: jpaw-fade-up 0.7s 0.2s ease both;
}

.jpaw-animated .jpaw-today-status {
	animation: jpaw-pop-in 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.jpaw-animated .jpaw-week-list {
	animation: jpaw-fade-up 0.7s 0.35s ease both;
}

.jpaw-animated .jpaw-week-row {
	animation: jpaw-fade-up 0.5s ease both;
	animation-delay: calc(0.4s + var(--jpaw-delay, 0s));
}

.jpaw-animated .jpaw-contact-row {
	animation: jpaw-fade-up 0.7s 0.55s ease both;
}

@keyframes jpaw-fade-down {
	from { opacity: 0; transform: translateY(-18px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes jpaw-fade-up {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes jpaw-pop-in {
	0% { opacity: 0; transform: scale(0.85); }
	100% { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.jpaw-card-main {
		padding: 30px 18px;
		border-radius: 18px;
	}

	.jpaw-heading {
		font-size: 22px;
	}

	.jpaw-btn {
		padding: 12px 18px;
		font-size: 13.5px;
	}

	.jpaw-contact-row {
		gap: 10px;
	}

	.jpaw-week-list {
		padding: 4px 12px;
	}
}

/* ---------- Desktop: Left content / Right schedule table ---------- */
@media (min-width: 993px) {
	.jpaw-card-main {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 48px;
		row-gap: 0;
		align-items: center;
		text-align: left;
		grid-template-areas:
			"jpaw-area-logo  jpaw-area-table"
			"jpaw-area-head  jpaw-area-table"
			"jpaw-area-sub   jpaw-area-table"
			"jpaw-area-today jpaw-area-table"
			"jpaw-area-contact jpaw-area-contact";
	}

	.jpaw-logo-wrap {
		grid-area: jpaw-area-logo;
		justify-content: flex-start;
	}

	.jpaw-heading {
		grid-area: jpaw-area-head;
	}

	.jpaw-subheading {
		grid-area: jpaw-area-sub;
		margin-inline: 0;
	}

	.jpaw-today-status {
		grid-area: jpaw-area-today;
		justify-content: flex-start;
	}

	.jpaw-week-list {
		grid-area: jpaw-area-table;
		margin: 0;
		max-width: 100%;
		align-self: center;
	}

	.jpaw-contact-row {
		grid-area: jpaw-area-contact;
		justify-content: flex-start;
		margin-top: 28px;
	}
}
