/**
 * Frontend Styles for WP Dynamic Temporary Email System
 * FreeMail AI Brand Theme - Modern Clean Sky-Blue & Royal Navy Interface
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
	/* FreeMail AI Exact Brand Colors */
	--wp-temp-brand-blue: #295cff;
	--wp-temp-brand-blue-hover: #1c4ee6;
	--wp-temp-brand-blue-glow: rgba(41, 92, 255, 0.35);
	--wp-temp-brand-sky: #0e94ff;
	--wp-temp-brand-navy: #1c0d5a;
	--wp-temp-brand-bg: #e7f4ff;
	--wp-temp-brand-bg-soft: #f4f9ff;
	--wp-temp-card-bg: #ffffff;
	
	--wp-temp-primary: #295cff;
	--wp-temp-primary-hover: #1c4ee6;
	--wp-temp-danger: #ef4444;
	--wp-temp-danger-hover: #dc2626;

	--wp-temp-text-main: #1c0d5a;
	--wp-temp-text-body: #475569;
	--wp-temp-text-muted: #64748b;
	--wp-temp-text-light: #94a3b8;
	
	--wp-temp-border: #dbeafe;
	--wp-temp-border-hover: #93c5fd;
	--wp-temp-radius-pill: 9999px;
	--wp-temp-radius-card: 20px;
	--wp-temp-shadow-card: 0 16px 40px -10px rgba(41, 92, 255, 0.12), 0 4px 16px -2px rgba(28, 13, 90, 0.05);
	--wp-temp-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Widget Container */
.wp-temp-email-widget {
	max-width: 880px;
	margin: 2rem auto;
	background: #ffffff;
	border: 1.5px solid var(--wp-temp-border);
	border-radius: var(--wp-temp-radius-card);
	box-shadow: var(--wp-temp-shadow-card);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--wp-temp-text-main);
	overflow: hidden;
	box-sizing: border-box;
	line-height: 1.5;
	position: relative;
}

.wp-temp-email-widget * {
	box-sizing: border-box;
}

/* ==========================================================================
   HERO SECTION (FREEMAIL AI LIGHT BRAND THEME)
   ========================================================================== */
.wp-temp-hero {
	background: linear-gradient(180deg, #e7f4ff 0%, #f3f8fe 100%);
	padding: 3rem 2rem 2.75rem;
	text-align: center;
	position: relative;
	border-bottom: 1.5px solid var(--wp-temp-border);
}

.wp-temp-hero-inner {
	max-width: 720px;
	margin: 0 auto;
}

/* Brand Header & Logo (FreeMail AI) */
.wp-temp-brand-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.25rem;
}

.wp-temp-brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	cursor: pointer;
	padding: 6px 16px 6px 8px;
	border-radius: var(--wp-temp-radius-pill);
	background: #ffffff;
	border: 1.5px solid var(--wp-temp-border);
	box-shadow: 0 4px 16px rgba(41, 92, 255, 0.08);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-temp-brand-lockup:hover {
	transform: translateY(-2px);
	border-color: var(--wp-temp-brand-blue);
	box-shadow: 0 8px 24px rgba(41, 92, 255, 0.16);
}

.wp-temp-brand-logo-img {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(41, 92, 255, 0.22);
	display: block;
	object-fit: contain;
}

.wp-temp-brand-logo-text {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: var(--wp-temp-brand-blue);
	letter-spacing: -0.02em;
	line-height: 1;
}

.wp-temp-brand-logo {
	height: 48px;
	width: auto;
	max-width: 240px;
	object-fit: contain;
	filter: drop-shadow(0 2px 10px rgba(41, 92, 255, 0.18));
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-temp-brand-logo:hover {
	transform: scale(1.04);
}

/* Brand Badge (FreeMail AI) */
.wp-temp-brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px;
	border-radius: var(--wp-temp-radius-pill);
	background: #ffffff;
	border: 1px solid var(--wp-temp-border);
	box-shadow: 0 2px 8px rgba(41, 92, 255, 0.08);
	margin-bottom: 1.25rem;
}

.wp-temp-brand-icon {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--wp-temp-brand-blue);
}

.wp-temp-ai-pill {
	background: var(--wp-temp-brand-blue);
	color: #ffffff;
	font-size: 0.6875rem;
	font-weight: 800;
	padding: 1px 5px;
	border-radius: 4px;
	line-height: 1.2;
}

.wp-temp-brand-name {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wp-temp-brand-navy);
	letter-spacing: -0.01em;
}

.wp-temp-hero-title {
	margin: 0 0 1.25rem;
	font-size: 2.15rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--wp-temp-brand-navy);
	line-height: 1.25;
}

/* Dashed Outline Frame */
.wp-temp-dashed-frame {
	max-width: 600px;
	margin: 0 auto 1.5rem;
	border: 2px dashed #93c5fd;
	border-radius: var(--wp-temp-radius-pill);
	padding: 6px;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(8px);
	box-shadow: 0 6px 24px rgba(41, 92, 255, 0.08);
	transition: var(--wp-temp-transition);
}

.wp-temp-dashed-frame:hover {
	border-color: var(--wp-temp-brand-blue);
}

/* Capsule Email Box */
.wp-temp-capsule {
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 1.5px solid #bfdbfe;
	border-radius: var(--wp-temp-radius-pill);
	padding: 6px 8px 6px 24px;
	box-shadow: 0 4px 14px rgba(41, 92, 255, 0.06);
	transition: var(--wp-temp-transition);
}

.wp-temp-capsule:focus-within {
	border-color: var(--wp-temp-brand-blue);
	box-shadow: 0 0 0 3.5px rgba(41, 92, 255, 0.2);
}

.wp-temp-address-display {
	flex: 1;
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: var(--wp-temp-brand-navy) !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

/* QR Code Capsule Button */
.wp-temp-capsule-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f0f7ff;
	color: var(--wp-temp-brand-blue);
	border: 1px solid var(--wp-temp-border);
	cursor: pointer;
	margin-right: 8px;
	transition: var(--wp-temp-transition);
	flex-shrink: 0;
}

.wp-temp-capsule-icon-btn:hover {
	background: #dbeafe;
	color: var(--wp-temp-brand-blue-hover);
	transform: scale(1.05);
}

/* FreeMail AI Royal Blue Copy Button */
.wp-temp-copy-circle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--wp-temp-brand-blue);
	color: #ffffff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px var(--wp-temp-brand-blue-glow);
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	flex-shrink: 0;
}

.wp-temp-copy-circle-btn:hover {
	background: var(--wp-temp-brand-blue-hover);
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(41, 92, 255, 0.5);
}

.wp-temp-copy-circle-btn:active {
	transform: scale(0.95);
}

.wp-temp-hero-desc {
	margin: 0 auto;
	max-width: 640px;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--wp-temp-text-body);
}

/* ==========================================================================
   5 ACTION PILLS BAR
   ========================================================================== */
.wp-temp-actions-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	padding: 1.25rem 1.5rem;
	background: #ffffff;
	border-bottom: 1px solid var(--wp-temp-border);
	flex-wrap: wrap;
}

.wp-temp-pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0.65rem 1.4rem;
	border-radius: var(--wp-temp-radius-pill);
	background: #ffffff;
	border: 1.5px solid var(--wp-temp-border);
	color: var(--wp-temp-brand-navy);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(41, 92, 255, 0.04);
	transition: var(--wp-temp-transition);
	white-space: nowrap;
	min-height: 42px;
}

.wp-temp-pill-btn:hover {
	transform: translateY(-1px);
	border-color: var(--wp-temp-brand-blue);
	color: var(--wp-temp-brand-blue);
	box-shadow: 0 4px 12px rgba(41, 92, 255, 0.12);
	background: #f8fbff;
}

.wp-temp-pill-btn:active {
	transform: translateY(0);
}

.wp-temp-pill-btn svg {
	flex-shrink: 0;
}

/* Primary "New" Pill Variant */
.wp-temp-pill-btn-new {
	background: var(--wp-temp-brand-blue);
	color: #ffffff;
	border-color: var(--wp-temp-brand-blue);
	box-shadow: 0 4px 14px rgba(41, 92, 255, 0.3);
}

.wp-temp-pill-btn-new:hover {
	background: var(--wp-temp-brand-blue-hover);
	border-color: var(--wp-temp-brand-blue-hover);
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(41, 92, 255, 0.45);
}

/* Delete Pill Variant */
.wp-temp-pill-btn-danger {
	color: var(--wp-temp-danger);
	border-color: #fecaca;
}

.wp-temp-pill-btn-danger:hover {
	background: #fef2f2;
	border-color: #f87171;
	color: var(--wp-temp-danger-hover);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.wp-temp-refresh-icon.spin {
	animation: wpTempSpin 0.8s linear infinite;
}

@keyframes wpTempSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   SUB-TOOLBAR (STATUS, TIMER & LIVE INDICATOR)
   ========================================================================== */
.wp-temp-subtoolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.85rem 1.75rem;
	background: #f8fbff;
	border-bottom: 1px solid var(--wp-temp-border);
	flex-wrap: wrap;
	gap: 12px;
}

.wp-temp-subtoolbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.wp-temp-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: var(--wp-temp-radius-pill);
	font-size: 0.75rem;
	font-weight: 700;
	background: #eef6ff;
	color: var(--wp-temp-brand-blue);
	border: 1px solid #bfdbfe;
}

.wp-temp-status-badge.expired {
	background: #fef2f2;
	color: #dc2626;
	border-color: #fecaca;
}

.wp-temp-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp-temp-brand-blue);
	box-shadow: 0 0 0 2px rgba(41, 92, 255, 0.3);
}

.wp-temp-status-badge.expired .wp-temp-status-dot {
	background: #ef4444;
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.wp-temp-timer-badge-wrap {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8125rem;
	color: var(--wp-temp-text-muted);
	font-weight: 600;
}

.wp-temp-timer-digits {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-weight: 700;
	color: var(--wp-temp-brand-navy);
}

.wp-temp-timer-bar {
	width: 100px;
	height: 6px;
	background: #dbeafe;
	border-radius: 9999px;
	overflow: hidden;
}

.wp-temp-timer-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--wp-temp-brand-blue) 0%, var(--wp-temp-brand-sky) 100%);
	transition: width 1s linear;
}

.wp-temp-live-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp-temp-brand-blue);
}

.wp-temp-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp-temp-brand-blue);
	animation: wpTempPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes wpTempPulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.4;
		transform: scale(0.85);
	}
}

/* ==========================================================================
   INBOX TABLE SECTION (SENDER | SUBJECT | VIEW)
   ========================================================================== */
.wp-temp-table-card {
	margin: 1.5rem;
	border-radius: 14px;
	overflow: hidden;
	border: 1.5px solid var(--wp-temp-border);
	box-shadow: 0 4px 16px rgba(41, 92, 255, 0.05);
	background: #ffffff;
}

/* Royal Navy Table Header */
.wp-temp-table-header {
	display: flex;
	align-items: center;
	background: var(--wp-temp-brand-navy);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 1rem 1.5rem;
}

.wp-temp-col-sender {
	flex: 0 0 32%;
	padding-right: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wp-temp-col-subject {
	flex: 1;
	padding-right: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wp-temp-col-view {
	flex: 0 0 80px;
	text-align: right;
}

/* Table Body */
.wp-temp-table-body {
	min-height: 220px;
	background: #ffffff;
}

/* Empty State */
.wp-temp-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1.5rem;
	text-align: center;
}

.wp-temp-empty-icon-wrap {
	position: relative;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.wp-temp-empty-spin-icon {
	animation: wpTempSpin 12s linear infinite;
	color: #93c5fd;
}

.wp-temp-empty-mail-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--wp-temp-brand-blue);
}

.wp-temp-empty-heading {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--wp-temp-brand-navy);
}

.wp-temp-empty-subheading {
	margin: 0;
	font-size: 0.9rem;
	color: var(--wp-temp-text-muted);
	max-width: 480px;
	line-height: 1.5;
}

/* Email Table Row */
.wp-temp-email-row {
	display: flex;
	align-items: center;
	padding: 1.1rem 1.5rem;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wp-temp-email-row:last-child {
	border-bottom: none;
}

.wp-temp-email-row:hover {
	background: #f8fbff;
}

.wp-temp-row-sender {
	font-weight: 700;
	color: var(--wp-temp-brand-navy);
	font-size: 0.9375rem;
}

.wp-temp-row-subject-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wp-temp-row-subject-title {
	font-weight: 700;
	color: var(--wp-temp-brand-blue);
	font-size: 0.9375rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wp-temp-row-snippet {
	font-size: 0.8125rem;
	color: var(--wp-temp-text-body);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wp-temp-row-time {
	font-size: 0.75rem;
	color: var(--wp-temp-text-light);
	margin-top: 2px;
}

.wp-temp-row-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px 14px;
	border-radius: 6px;
	background: #eef6ff;
	border: 1px solid #bfdbfe;
	color: var(--wp-temp-brand-blue);
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: var(--wp-temp-transition);
}

.wp-temp-email-row:hover .wp-temp-row-view-btn {
	background: var(--wp-temp-brand-blue);
	border-color: var(--wp-temp-brand-blue);
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(41, 92, 255, 0.3);
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */
.wp-temp-dialog {
	border: none;
	padding: 0;
	border-radius: 18px;
	box-shadow: 0 25px 50px -12px rgba(28, 13, 90, 0.3);
	background: transparent;
	max-width: 580px;
	width: 90%;
}

.wp-temp-dialog::backdrop {
	background: rgba(28, 13, 90, 0.65);
	backdrop-filter: blur(5px);
}

.wp-temp-dialog-content {
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1.5px solid var(--wp-temp-border);
}

.wp-temp-dialog-sm {
	max-width: 440px;
}

.wp-temp-dialog-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--wp-temp-border);
	background: #f8fbff;
}

.wp-temp-dialog-heading {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--wp-temp-brand-navy);
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: -0.01em;
}

.wp-temp-close-btn {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp-temp-text-light);
	cursor: pointer;
	padding: 4px;
	transition: color 0.15s;
}

.wp-temp-close-btn:hover {
	color: var(--wp-temp-brand-navy);
}

/* Forms inside Dialogs */
.wp-temp-form {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.wp-temp-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wp-temp-field label {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wp-temp-brand-navy);
}

.wp-temp-input,
.wp-temp-textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.9375rem;
	outline: none;
	transition: var(--wp-temp-transition);
	background: #ffffff;
	color: var(--wp-temp-brand-navy);
}

.wp-temp-input:focus,
.wp-temp-textarea:focus {
	border-color: var(--wp-temp-brand-blue);
	box-shadow: 0 0 0 3.5px rgba(41, 92, 255, 0.2);
}

.wp-temp-prefix-input-wrap {
	display: flex;
	align-items: center;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.wp-temp-prefix-input-wrap:focus-within {
	border-color: var(--wp-temp-brand-blue);
	box-shadow: 0 0 0 3.5px rgba(41, 92, 255, 0.2);
}

.wp-temp-prefix-input-wrap input {
	border: none !important;
	box-shadow: none !important;
	padding: 0.65rem 0.85rem !important;
	flex: 1;
	outline: none !important;
	font-size: 0.9375rem;
	color: var(--wp-temp-brand-navy) !important;
	font-weight: 600 !important;
}

.wp-temp-suffix-tag {
	padding: 0 12px;
	background: #eef6ff;
	color: var(--wp-temp-brand-blue);
	font-size: 0.875rem;
	font-weight: 700;
	border-left: 1px solid var(--wp-temp-border);
	height: 100%;
	display: flex;
	align-items: center;
}

.wp-temp-dialog-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	padding: 1.25rem 1.5rem;
	background: #f8fbff;
	border-top: 1px solid var(--wp-temp-border);
}

.wp-temp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0.65rem 1.35rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition: var(--wp-temp-transition);
	border: none;
}

.wp-temp-btn-primary {
	background: var(--wp-temp-brand-blue);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(41, 92, 255, 0.3);
}

.wp-temp-btn-primary:hover {
	background: var(--wp-temp-brand-blue-hover);
	box-shadow: 0 6px 16px rgba(41, 92, 255, 0.45);
}

.wp-temp-btn-ghost {
	background: transparent;
	color: var(--wp-temp-text-muted);
	border: 1px solid #cbd5e1;
}

.wp-temp-btn-ghost:hover {
	background: #f1f5f9;
	color: var(--wp-temp-brand-navy);
}

.wp-temp-btn-outline {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: var(--wp-temp-brand-navy);
}

.wp-temp-btn-outline:hover {
	background: #f8fbff;
	border-color: var(--wp-temp-brand-blue);
	color: var(--wp-temp-brand-blue);
}

/* QR Code Dialog Body */
.wp-temp-qr-body {
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

.wp-temp-qr-render-box {
	background: #ffffff;
	padding: 16px;
	border: 1.5px solid var(--wp-temp-border);
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(41, 92, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 220px;
	height: 220px;
}

.wp-temp-qr-email-label {
	margin: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wp-temp-brand-navy);
	word-break: break-all;
}

/* Email Detail View */
.wp-temp-detail-content {
	max-height: 85vh;
}

.wp-temp-detail-header-card {
	padding: 1.75rem 1.5rem 1.25rem;
	background: #f8fbff;
	border-bottom: 1.5px solid var(--wp-temp-border);
}

.wp-temp-detail-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.wp-temp-detail-badge {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--wp-temp-brand-blue);
	background: #eef6ff;
	padding: 3px 10px;
	border-radius: var(--wp-temp-radius-pill);
	border: 1px solid #bfdbfe;
}

.wp-temp-detail-title {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--wp-temp-brand-navy);
	letter-spacing: -0.01em;
}

.wp-temp-detail-meta-grid {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.875rem;
	color: var(--wp-temp-text-body);
}

.wp-temp-detail-body-view {
	padding: 1.75rem 1.5rem;
	overflow-y: auto;
	font-size: 0.9375rem;
	color: var(--wp-temp-text-body);
	line-height: 1.65;
	min-height: 140px;
}

/* Toast */
.wp-temp-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--wp-temp-brand-navy);
	color: #ffffff;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	box-shadow: 0 12px 30px rgba(28, 13, 90, 0.35);
	border: 1px solid rgba(41, 92, 255, 0.4);
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.25s ease;
	pointer-events: none;
	z-index: 999999;
}

.wp-temp-toast.show {
	opacity: 1;
	transform: translateY(0);
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
	.wp-temp-hero {
		padding: 2rem 1.25rem;
	}
	.wp-temp-hero-title {
		font-size: 1.5rem;
	}
	.wp-temp-capsule {
		padding: 6px 8px 6px 16px;
	}
	.wp-temp-address-display {
		font-size: 0.9375rem !important;
	}
	.wp-temp-actions-bar {
		gap: 8px;
		padding: 1rem;
	}
	.wp-temp-pill-btn {
		padding: 0.5rem 1rem;
		font-size: 0.875rem;
	}
	.wp-temp-table-card {
		margin: 1rem 0.75rem;
	}
	.wp-temp-col-sender {
		flex: 0 0 35%;
		font-size: 0.75rem;
	}
	.wp-temp-col-subject {
		font-size: 0.75rem;
	}
	.wp-temp-col-view {
		flex: 0 0 60px;
	}
}

/* Suppress default WordPress theme page header/title above the temporary email widget */
.wp-block-post-title,
.entry-header,
.entry-title,
.page-title {
	display: none !important;
}

