/* Photo Card Studio: public card editor. Override the variables below from your theme. */
.pcs-app {
	--pcs-primary: #0f79b8;
	--pcs-primary-dark: #0b5f92;
	--pcs-border: #d3dce3;
	--pcs-bg: #f4f8fb;
	--pcs-text: #1b2a35;
	--pcs-muted: #5b6b78;
	--pcs-danger: #c0392b;

	max-width: 1100px;
	margin: 0 auto;
	color: var(--pcs-text);
	font-family: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", Vrinda, system-ui, sans-serif;
	line-height: 1.55;
}
.pcs-app *,
.pcs-app *::before,
.pcs-app *::after {
	box-sizing: border-box;
}
.pcs-banner {
	margin: 0 0 16px;
	padding: 10px 14px;
	background: #fff6e0;
	border: 1px solid #f0d58a;
	border-radius: 6px;
}
.pcs-intro {
	margin: 0 0 16px;
}

/* Layout */
.pcs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}
@media (min-width: 860px) {
	.pcs-grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}
	.pcs-form {
		position: sticky;
		top: 24px;
	}
}

/* Canvas stage */
.pcs-canvas {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
	border: 1px solid var(--pcs-border);
	border-radius: 6px;
	touch-action: none; /* lets a finger drag the photo instead of scrolling the page */
	cursor: grab;
}
.pcs-canvas.is-dragging {
	cursor: grabbing;
}
.pcs-canvas:focus-visible {
	outline: 3px solid var(--pcs-primary);
	outline-offset: 2px;
}
.pcs-zoom {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}
.pcs-zoom input[type="range"] {
	flex: 1;
	min-width: 0;
}
.pcs-icon-btn {
	flex: none;
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--pcs-primary);
	background: #fff;
	border: 1px solid var(--pcs-border);
	border-radius: 50%;
	cursor: pointer;
}
.pcs-icon-btn:disabled,
.pcs-link-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.pcs-link-btn {
	padding: 4px 6px;
	color: var(--pcs-primary);
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
}
.pcs-hint {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--pcs-muted);
}

/* Form */
.pcs-form {
	padding: 18px;
	background: var(--pcs-bg);
	border: 1px solid var(--pcs-border);
	border-radius: 8px;
}
.pcs-group {
	margin-bottom: 14px;
}
.pcs-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}
.pcs-req {
	color: var(--pcs-danger);
}
.pcs-form input[type="text"],
.pcs-form input[type="file"] {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
	border: 1px solid var(--pcs-border);
	border-radius: 6px;
}
.pcs-form input[type="text"]:focus {
	outline: 2px solid var(--pcs-primary);
	border-color: var(--pcs-primary);
}
.pcs-help {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--pcs-muted);
}
.pcs-check {
	display: block;
	margin: 4px 0 14px;
	font-size: 14px;
}
.pcs-btn {
	display: inline-block;
	padding: 12px 22px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	text-align: center;
	text-decoration: none;
	background: var(--pcs-primary);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.pcs-btn:hover {
	background: var(--pcs-primary-dark);
	color: #fff;
}
.pcs-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}
.pcs-form .pcs-btn {
	width: 100%;
}
.pcs-msg {
	min-height: 1.5em;
	margin: 10px 0 0;
	color: var(--pcs-danger);
	font-weight: 600;
}

/* Result */
.pcs-result {
	max-width: 540px;
	margin: 28px auto 0;
	text-align: center;
}
.pcs-result[hidden] {
	display: none;
}
.pcs-result img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 10px;
	border: 1px solid var(--pcs-border);
	border-radius: 6px;
}
.pcs-result .pcs-btn[hidden] {
	display: none;
}

/* Email verification dialog + session bar */
.pcs-session {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--pcs-muted);
}
.pcs-session[hidden] {
	display: none;
}
html.pcs-modal-open {
	overflow: hidden;
}
.pcs-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	max-width: none;
	margin: 0;
}
.pcs-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 30, 42, 0.6);
}
.pcs-modal__box {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 100%;
	padding: 22px;
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.pcs-modal__title {
	margin: 0 28px 10px 0;
	font-size: 20px;
}
.pcs-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	font-size: 26px;
	line-height: 1;
	color: var(--pcs-muted);
	background: none;
	border: 0;
	cursor: pointer;
}
.pcs-modal input[type="email"],
.pcs-modal input[type="text"] {
	display: block;
	width: 100%;
	margin-bottom: 12px;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
	border: 1px solid var(--pcs-border);
	border-radius: 6px;
}
.pcs-modal input[type="text"] {
	font-size: 22px;
	letter-spacing: 6px;
	text-align: center;
}
.pcs-modal .pcs-btn {
	width: 100%;
}
.pcs-modal__links {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 12px 0 0;
}
.pcs-captcha {
	margin: 8px 0;
}
.pcs-step[hidden] {
	display: none;
}

/* Buttons: variants */
.pcs-btn--ghost {
	color: var(--pcs-primary);
	background: #fff;
	border: 2px solid var(--pcs-primary);
}
.pcs-btn--ghost:hover {
	color: #fff;
}
.pcs-btn--small {
	padding: 7px 14px;
	font-size: 14px;
}
.pcs-btn--danger {
	color: var(--pcs-danger);
	background: #fff;
	border: 1px solid var(--pcs-danger);
}
.pcs-btn--danger:hover {
	color: #fff;
	background: var(--pcs-danger);
}
.pcs-result .pcs-btn + .pcs-btn {
	margin-left: 8px;
}

/* Standalone shell (share page, my cards) */
body.pcs-standalone {
	margin: 0;
	background: #fff;
}
.pcs-shell {
	max-width: 1100px;
	padding: 0 16px;
}
.pcs-shell__header,
.pcs-shell__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
}
.pcs-shell__header {
	border-bottom: 1px solid var(--pcs-border);
}
.pcs-shell__brand {
	font-size: 20px;
	font-weight: 700;
	color: var(--pcs-primary);
	text-decoration: none;
}
.pcs-shell__link {
	color: var(--pcs-primary);
}
.pcs-shell__main {
	min-height: 60vh;
	padding: 24px 0 40px;
}
.pcs-shell__footer {
	font-size: 14px;
	color: var(--pcs-muted);
	border-top: 1px solid var(--pcs-border);
}
.pcs-message {
	max-width: 520px;
	margin: 40px auto;
	text-align: center;
}

/* Share page */
.pcs-card-page {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}
.pcs-card-page__img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 14px;
	border: 1px solid var(--pcs-border);
	border-radius: 6px;
}
.pcs-card-page__name {
	margin: 0;
	font-size: 26px;
}
.pcs-card-page__line {
	margin: 2px 0 16px;
	color: var(--pcs-muted);
}
.pcs-card-page__sub {
	margin: 26px 0 10px;
	font-size: 18px;
}
.pcs-card-page__cta {
	margin-top: 28px;
}
.pcs-card-page__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.pcs-card-page__actions .pcs-btn {
	flex: 1 1 200px;
	max-width: 260px;
	text-align: center;
}
.pcs-my__new {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}
.pcs-shell__brand img {
	display: block;
	width: auto;
	max-width: 60vw;
}
.pcs-shell__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.pcs-share {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.pcs-share__btn {
	padding: 9px 16px;
	font: inherit;
	font-size: 15px;
	color: var(--pcs-text);
	text-decoration: none;
	background: var(--pcs-bg);
	border: 1px solid var(--pcs-border);
	border-radius: 999px;
	cursor: pointer;
}
.pcs-share__btn:hover {
	border-color: var(--pcs-primary);
	color: var(--pcs-primary);
}
.pcs-share__btn[hidden] {
	display: none;
}
.pcs-msg--ok {
	color: #1f7a3d;
}

/* My cards */
.pcs-my__title {
	margin: 0 0 12px;
	font-size: 26px;
}
.pcs-my__login[hidden],
.pcs-my__session[hidden] {
	display: none;
}
.pcs-my__session {
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--pcs-muted);
}
.pcs-my__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}
.pcs-my__list > .pcs-hint {
	grid-column: 1 / -1;
}
.pcs-mycard {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--pcs-border);
	border-radius: 8px;
}
.pcs-mycard__thumb img {
	display: block;
	width: 100%;
	height: auto;
}
.pcs-mycard__body {
	padding: 12px 14px 14px;
}
.pcs-mycard__name {
	margin: 0;
	font-size: 18px;
}
.pcs-mycard__line {
	margin: 2px 0 8px;
	color: var(--pcs-muted);
}
.pcs-mycard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.pcs-badge {
	display: inline-block;
	margin: 0;
	padding: 2px 10px;
	font-size: 13px;
	border-radius: 999px;
	background: #eef2f5;
}
.pcs-badge--approved {
	color: #1f7a3d;
	background: #e3f4e8;
}
.pcs-badge--pending {
	color: #8a5a00;
	background: #fff3d6;
}
.pcs-badge--rejected,
.pcs-badge--flagged {
	color: var(--pcs-danger);
	background: #fbe6e3;
}
.pcs-link {
	color: var(--pcs-primary);
}
