/* Donation Manager — Frontend CSS */
:root {
	--dm-primary:       #9F1720;
	--dm-secondary:     #641A20;
	--dm-card-bg:       #ffffff;
	--dm-heading-color: #222222;
	--dm-desc-color:    #666666;
	--dm-btn-text:      #ffffff;
	--dm-radius:        18px;
	--dm-width:         240px;
	--dm-shadow:        0 8px 32px rgba(0,0,0,0.18);
}

/* ── WRAPPER ── */
.dm-donation-float {
	position: fixed;
	z-index: 99999;
}
.dm-donation-inline {
	position: relative;
	display: inline-block;
}

/* ── FULL CARD ── */
.dm-card-box {
	width: var(--dm-width);
	background: var(--dm-card-bg);
	border-radius: var(--dm-radius);
	box-shadow: var(--dm-shadow);
	padding: 20px 18px 16px;
	position: relative;
	text-align: center;
	animation: dmFadeUp 0.4s ease both;
}
@keyframes dmFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

.dm-card-box.dm-hidden { display: none; }

.dm-close-btn {
	position: absolute;
	top: 10px; right: 12px;
	background: none; border: none;
	font-size: 16px; cursor: pointer;
	color: #aaa; line-height: 1;
	padding: 2px 4px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}
.dm-close-btn:hover { color: #333; background: #f1f5f9; }

/* ── CARD CONTENT ── */
.dm-card-heading {
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #003a65 !important;
	margin: 0 0 6px !important;
	line-height: 1.3 !important;
	padding: 0 20px;
}
.dm-card-desc {
	font-size: 12px !important;
	color: var(--dm-desc-color) !important;
	margin: 0 0 12px !important;
	line-height: 1.5 !important;
}
.dm-qr-wrap { margin: 0 auto 10px; }
.dm-qr-img  { width: 100%; max-width: 160px; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
.dm-qr-caption  { font-size: 14px !important; color: #003a65 !important; margin: 0 0 10px !important; font-weight: 700 !important; }
.dm-bottom-text { font-size: 12px !important; color: #000000 !important; margin: 8px 0 0 !important; font-weight: 500 !important; letter-spacing: 0.3px; }

.dm-donate-btn {
	display: inline-block;
	background: linear-gradient(135deg, var(--dm-primary), var(--dm-secondary));
	color: var(--dm-btn-text) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	padding: 9px 20px !important;
	border-radius: 8px;
	text-decoration: none !important;
	margin: 4px 0 8px;
	transition: opacity 0.2s, transform 0.2s;
	border: none;
	cursor: pointer;
	width: 100%;
	text-align: center;
}
.dm-donate-btn:hover { opacity: 0.88; transform: translateY(-1px); color: var(--dm-btn-text) !important; }

/* ── MINIMIZED TAB ── */
.dm-tab-btn {
	display: none;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	background: linear-gradient(180deg, var(--dm-primary), var(--dm-secondary));
	color: #fff;
	border: none;
	padding: 20px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	border-radius: 8px 0 0 8px;
	cursor: pointer;
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 99999;
	transition: opacity 0.2s;
	box-shadow: var(--dm-shadow);
}
.dm-tab-btn.dm-tab-left  { right: auto; left: 0; border-radius: 0 8px 8px 0; writing-mode: vertical-lr; }
.dm-tab-btn.dm-tab-right { right: 0;    left: auto; border-radius: 8px 0 0 8px; }
.dm-tab-btn.dm-visible   { display: block; }
.dm-tab-btn:hover { opacity: 0.88; }

/* ── MOBILE FAB ── */
.dm-mobile-fab {
	display: none;
	position: fixed;
	z-index: 99999;
	background: linear-gradient(135deg, var(--dm-primary), var(--dm-secondary));
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--dm-shadow);
	transition: transform 0.2s, opacity 0.2s;
}
.dm-mobile-fab:hover { transform: scale(1.04); }

/* ── MOBILE MODAL ── */
.dm-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.dm-modal-overlay.dm-open { display: flex; }
.dm-modal-box {
	background: var(--dm-card-bg);
	border-radius: var(--dm-radius);
	padding: 24px 20px 18px;
	width: 100%;
	max-width: 340px;
	position: relative;
	text-align: center;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 16px 48px rgba(0,0,0,0.3);
	animation: dmFadeUp 0.3s ease both;
}
.dm-modal-close {
	position: absolute;
	top: 12px; right: 14px;
	background: none; border: none;
	font-size: 18px; cursor: pointer;
	color: #aaa; padding: 2px 5px; border-radius: 4px;
}
.dm-modal-close:hover { color: #333; background: #f1f5f9; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
	.dm-card-box { display: none !important; }
	.dm-tab-btn  { display: none !important; }
	.dm-mobile-fab { display: block; }
}
@media (min-width: 768px) {
	.dm-mobile-fab    { display: none !important; }
	.dm-modal-overlay { display: none !important; }
}

/* ── DEVICE HIDE CLASSES ── */
.dm-hide-desktop { }
.dm-hide-tablet  { }
.dm-hide-mobile  { }
@media (min-width: 1025px) { .dm-hide-desktop .dm-card-box, .dm-hide-desktop .dm-tab-btn { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .dm-hide-tablet .dm-card-box, .dm-hide-tablet .dm-tab-btn { display: none !important; } }
@media (max-width: 767px) { .dm-hide-mobile .dm-mobile-fab { display: none !important; } }

/* ── INLINE MODE ── */
.dm-donation-inline .dm-card-box   { position: static; width: var(--dm-width); margin: 0 auto; }
.dm-donation-inline .dm-tab-btn    { display: none !important; }
.dm-donation-inline .dm-mobile-fab { display: none !important; }
.dm-donation-inline .dm-modal-overlay { display: none !important; }

/* ── TRANSITIONS ── */
.dm-card-box { transition: opacity 0.35s ease, transform 0.35s ease; }
