/* =============================================================================
   Awtoma — Try Example Shortcode
   Plugin by Sufyan Shahid | https://digihood.agency/
   ============================================================================= */

/* ── Button ─────────────────────────────────────────────────────────────────── */

.awtoma-try-wrap {
	display: inline-block;
}

.awtoma-try-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	background: #2563EB;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.30);
	line-height: 1;
}

.awtoma-try-btn:hover {
	background: #1D4ED8;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
}

.awtoma-try-btn:active {
	transform: translateY(1px);
	box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}

/* ── Modal overlay ───────────────────────────────────────────────────────────── */

.awtoma-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.awtoma-modal-overlay.awtoma-modal-open {
	display: flex;
}

/* ── Modal box ───────────────────────────────────────────────────────────────── */

.awtoma-modal {
	position: relative;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
	width: 100%;
	max-width: 420px;
	padding: 40px 36px 36px;
	box-sizing: border-box;
	animation: awtoma-modal-in 0.2s ease;
}

@keyframes awtoma-modal-in {
	from { opacity: 0; transform: translateY(10px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Close button ────────────────────────────────────────────────────────────── */

.awtoma-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #94A3B8;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 6px;
	transition: color 0.15s, background 0.15s;
	font-family: inherit;
}

.awtoma-modal-close:hover {
	color: #1E293B;
	background: #F1F5F9;
}

/* ── States ──────────────────────────────────────────────────────────────────── */

.awtoma-modal-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.awtoma-modal-hidden {
	display: none !important;
}

/* Loading */
.awtoma-modal-loading p {
	font-size: 15px;
	color: #64748B;
	margin: 0;
}

.awtoma-modal-spinner {
	width: 44px;
	height: 44px;
	border: 3px solid #E2E8F0;
	border-top-color: #2563EB;
	border-radius: 50%;
	animation: awtoma-spin 0.75s linear infinite;
}

@keyframes awtoma-spin {
	to { transform: rotate(360deg); }
}

/* Error */
.awtoma-modal-error svg {
	color: #DC2626;
}

.awtoma-modal-error-msg {
	font-size: 14px;
	color: #DC2626;
	margin: 0;
}

.awtoma-modal-retry {
	margin-top: 4px;
	padding: 8px 20px;
	background: #FEF2F2;
	color: #DC2626;
	border: 1px solid #FECACA;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s;
}

.awtoma-modal-retry:hover {
	background: #FEE2E2;
}

/* Success */
.awtoma-modal-success-icon {
	width: 56px;
	height: 56px;
	background: #DCFCE7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #16A34A;
	margin-bottom: 4px;
}

.awtoma-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: #1E293B;
	margin: 0;
}

.awtoma-modal-subtitle {
	font-size: 14px;
	color: #64748B;
	margin: 0;
	line-height: 1.5;
}

.awtoma-modal-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 12px 28px;
	background: #2563EB;
	color: #ffffff !important;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s, box-shadow 0.15s;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.30);
	font-family: inherit;
}

.awtoma-modal-download-btn:hover {
	background: #1D4ED8;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
	color: #ffffff !important;
}
