/* Daily Breakings PWA Pro - Frontend Styles */

/* Floating Install Button */
.dbpwa-float-btn {
	position: fixed;
	bottom: 22px;
	right: 18px;
	z-index: 99990;
	background: #c41e3a;
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 6px 24px rgba(196, 30, 58, 0.45);
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.2s, box-shadow 0.2s;
	-webkit-tap-highlight-color: transparent;
}
.dbpwa-float-btn:hover,
.dbpwa-float-btn:active {
	transform: scale(1.04);
	box-shadow: 0 8px 28px rgba(196, 30, 58, 0.55);
}
.dbpwa-float-icon {
	font-size: 16px;
	line-height: 1;
}

/* Bottom Banner */
.dbpwa-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99989;
	background: #fff;
	box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.12);
	animation: dbpwaSlideUp 0.35s ease;
	font-family: inherit;
}
.dbpwa-banner-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	max-width: 600px;
	margin: 0 auto;
}
.dbpwa-banner-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f0f0f0;
}
.dbpwa-banner-text {
	flex: 1;
	min-width: 0;
}
.dbpwa-banner-title {
	font-weight: 700;
	font-size: 14px;
	color: #111;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dbpwa-banner-sub {
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}
.dbpwa-banner-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.dbpwa-btn-later {
	background: transparent;
	border: none;
	color: #777;
	font-size: 13px;
	padding: 8px 10px;
	cursor: pointer;
	font-family: inherit;
}
.dbpwa-btn-install {
	background: #c41e3a;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

@keyframes dbpwaSlideUp {
	from { transform: translateY(100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* Header button (optional) */
.dbpwa-header-btn {
	background: #c41e3a;
	color: #fff !important;
	border: none;
	border-radius: 6px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Donation Modal */
.dbpwa-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.dbpwa-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.dbpwa-modal-box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px 24px;
	max-width: 340px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: dbpwaFadeIn 0.3s ease;
}
.dbpwa-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	color: #999;
	cursor: pointer;
	line-height: 1;
}
.dbpwa-modal-box h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: #111;
}
.dbpwa-donate-desc {
	font-size: 13px;
	color: #555;
	margin: 0 0 16px;
	line-height: 1.45;
}
.dbpwa-qr {
	display: block;
	margin: 0 auto 14px;
	border-radius: 10px;
	border: 1px solid #eee;
}
.dbpwa-upi-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #f7f7f7;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 12px;
}
.dbpwa-upi-box code {
	font-size: 13px;
	color: #222;
	word-break: break-all;
}
.dbpwa-copy-btn {
	background: #eee;
	border: none;
	border-radius: 5px;
	padding: 5px 10px;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
}
.dbpwa-upi-btn {
	display: inline-block;
	background: #c41e3a;
	color: #fff !important;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 14px;
	margin-top: 4px;
}
.dbpwa-thanks {
	margin: 14px 0 0;
	font-size: 13px;
	color: #888;
}

@keyframes dbpwaFadeIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

/* Mobile safety */
@media (max-width: 480px) {
	.dbpwa-float-btn {
		bottom: 16px;
		right: 12px;
		padding: 11px 16px;
		font-size: 13px;
	}
}
