/*
Theme Name: ThemeChapati
Theme URI: https://getchapati.com
Author: Varad Khadke
Description: Custom theme for GetChapati service.
Version: 5.4
*/

/* Centralized Theme Colors — ThemePallete */
:root {
	--tp-darkest:  #331b0f;   /* richest dark – used for base text */
	--tp-dark:     #6a3b1f;   /* warm contrast – headings/buttons */
	--tp-light:    #bc8355;   /* mid brown – used in UI highlights */
	--tp-lightest: #f9ecdd; /* brighter, softer beige */
	--tp-white:    #ffffff;   /* accents and contrast text */
}

/* Base Defaults */
body {
	background-color: var(--tp-lightest);
	font-family: "Nunito", system-ui, sans-serif;
	color: var(--tp-darkest);
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

.main-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 32px 24px 120px; /* room for floating nav */
	box-sizing: border-box;
}

.logo-header {
	display: flex;
	justify-content: space-between;
	padding: 12px 0 24px 0;
	align-items: center;
	margin-bottom: 24px;
	border-bottom:1px solid var(--tp-light);
}

.logo-img {
	width: 120px;
	height: auto;
}

.section {
	margin: 24px 0 48px 0;
}

button:disabled{
	opacity:0.6;
	cursor:not-allowed;
}

button{
	background-color: var(--tp-lightest);
	color: var(--tp-dark);
	padding: 16px;
	border:1px solid white;
	border-radius: 16px;
	font-weight: bold;
	font-family: inherit;
	font-size: 1rem;
	cursor: pointer;
	margin:8px 0;
	transition: 0.2s ease;
	box-sizing: border-box;
	width:100%;
	box-shadow:0 6px 24px rgba(51,27,15,0.06);
}

button:hover{
	transform:scale(0.985);
	transition: 0.2s ease;
}

select, input, textarea{
	width: 100%;
	box-sizing: border-box;
	border-radius: 12px;
	border: 1px solid var(--tp-light);
	outline: none;
	background-color: var(--tp-lightest);
	padding: 12px;
	font-family: inherit;
	font-size: 1rem;
	text-align:center;
}

/* Headings (keep default sizes, style only) */
h1, h2, h3, h4, h5, h6 {
	color: var(--tp-dark);
	font-weight: 700;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

/* Paragraphs */
p {
	font-size:0.9em;
	color: var(--tp-darkest);
	margin: 0 0 16px 0;
}

/* Links */
a {
	color: var(--tp-dark);
	text-decoration: underline;
	transition: color 0.2s ease-in-out;
	cursor:pointer;
}

a:hover {
	color: var(--tp-darkest);
	text-decoration: underline;
}

/* Popup Overlay */
.general-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #f9ecdd;
	opacity:0.85;
	backdrop-filter: blur(10px);
	z-index: 999;
	justify-content: center;
	align-items: flex-end; /* mobile default */
	transition: opacity 0.3s ease-in-out;
	overflow: hidden;
}

/* Popup Container */
.general-popup-container {
	width: 100vw;
	max-width: 700px;
	height: auto;
	min-height: 30vh;
	max-height: 90vh;
	background-color: var(--tp-lightest);
	border-radius: 32px 32px 0 0;
	border:2px solid white;
	position: relative;
	padding: 32px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
	overflow-x: hidden;
	z-index: 1000;
	box-shadow: 0px 0px 36px rgba(0, 0, 0, 0.15);
	transform: translateY(100%);
	opacity: 1;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

/* Popup Content */
.general-popup-content {
	flex: 1;
	overflow-y: auto;
	padding-bottom: 42px;
	box-sizing: border-box;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	gap: 12px;
	filter: none;
	transition: none;
}

.no-scroll {
	overflow: hidden;
	height: 100vh;
}

.popup-content {
	display: flex;
}

.popup-extra-content,
.nogapColumn {
	display: flex;
	flex-direction: column;
}

.popup-header {
	display: flex;
}

/* 🖥️ Desktop Behavior */
@media (min-width: 768px) {
	.general-popup-overlay {
		align-items: center;
		background: #f9ecdd;
		opacity:0.85;
	}

	.general-popup-container {
		width: 90vw;
		max-width: 600px;
		max-height: 90vh;
		border-radius: 32px;
		transform: scale(0.95); /* start zoomed out slightly */
	}

	.general-popup-content {
		padding-bottom: 0px;
	}
}