/* assets/css/frontend.css */

.abm-purchase-interface {
	padding: 20px 0;
	color: #e0e0e0;
}

.abm-purchase-interface h2 {
	color: #ffffff;
}

.abm-ad-types-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.abm-ad-type-card {
	border: 1px solid #444;
	border-radius: 8px;
	padding: 0;
	background: #2a2a2a;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	display: flex;
	flex-direction: column;
	min-height: 200px;
}

.abm-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #444;
}

.abm-card-header h3 {
	margin: 0;
	color: #ffffff;
	font-size: 18px;
	font-weight: 500;
}

.abm-price-container {
	text-align: right;
}

.abm-price {
	display: block;
	font-size: 24px;
	font-weight: bold;
	color: #ff6900;
	line-height: 1;
}

.abm-price-period {
	display: block;
	font-size: 11px;
	color: #999;
	margin-top: 2px;
}

.abm-dimensions {
	padding: 10px 20px;
	color: #999;
	font-size: 14px;
}

.abm-description {
	padding: 0 20px 15px 20px;
	color: #b0b0b0;
	font-size: 14px;
	line-height: 1.5;
	flex-grow: 1;
}

.abm-card-footer {
	padding: 20px;
	margin-top: auto;
	border-top: 1px solid #444;
}

.abm-btn-full {
	width: 100%;
	text-align: center;
}

.abm-next-available {
	text-align: center;
	color: #ffc107;
	font-size: 14px;
}

.abm-no-slots-text {
	text-align: center;
	color: #999;
	font-size: 14px;
}

.abm-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #ff6900;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.3s;
}

.abm-btn:hover {
	background: #e55a00;
}

.abm-btn:disabled {
	background: #555;
	cursor: not-allowed;
}

.abm-btn-primary {
	background: #ff6900;
}

.abm-btn-primary:hover {
	background: #e55a00;
}

.abm-btn-demo {
	background: #28a745;
}

.abm-btn-demo:hover {
	background: #218838;
}

.abm-btn-paypal {
	background: #0070ba;
	font-weight: 600;
	padding: 12px 24px;
	font-size: 16px;
}

.abm-btn-paypal:hover {
	background: #005ea6;
}

.abm-btn-paypal:before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjMDAyOTkxIiBkPSJNMzguOTE0IDEzLjM1YzAgNS41NzQtNS4xNDQgMTIuMTUtMTIuOTI3IDEyLjE1SDE4LjQ5bC0uMzY4IDIuMzIyTDE2LjM3MyAzOUg3LjA1Nmw1LjYwNS0zNmgxNS4wOTVjNS4wODMgMCA5LjA4MiAyLjgzMyAxMC41NTUgNi43N2E5LjY4NyA5LjY4NyAwIDAgMSAuNjAzIDMuNTh6Ii8+PHBhdGggZmlsbD0iIzYwQ0RGRiIgZD0iTTQ0LjI4NCAyMy43QTEyLjg5NCAxMi44OTQgMCAwIDEgMzEuNTMgMzQuNWgtNS4yMDZMMjQuMTU3IDQ4SDE0Ljg5bDEuNDgzLTkgMS43NS0xMS4xNzguMzY3LTIuMzIyaDcuNDk3YzcuNzczIDAgMTIuOTI3LTYuNTc2IDEyLjkyNy0xMi4xNSAzLjgyNSAxLjk3NCA2LjA1NSA1Ljk2MyA1LjM3IDEwLjM1eiIvPjxwYXRoIGZpbGw9IiMwMDhDRkYiIGQ9Ik0zOC45MTQgMTMuMzVDMzcuMzEgMTIuNTExIDM1LjM2NSAxMiAzMy4yNDggMTJoLTEyLjY0TDE4LjQ5IDI1LjVoNy40OTdjNy43NzMgMCAxMi45MjctNi41NzYgMTIuOTI3LTEyLjE1eiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik03LjA1NiAzaDM3LjM1djQ1SDcuMDU2eiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==') no-repeat center;
	background-size: contain;
	margin-right: 8px;
	vertical-align: middle;
}


.abm-payment-separator {
	text-align: center;
	color: #999;
	margin: 15px 0;
	font-size: 14px;
	position: relative;
}

.abm-payment-separator:before,
.abm-payment-separator:after {
	content: "";
	position: absolute;
	top: 50%;
	width: 40%;
	height: 1px;
	background: #444;
}

.abm-payment-separator:before {
	left: 0;
}

.abm-payment-separator:after {
	right: 0;
}

.abm-btn-small {
	padding: 5px 10px;
	font-size: 12px;
}

.abm-reservation-active {
	background: rgba(255, 105, 0, 0.1);
	padding: 15px;
	border-radius: 4px;
	margin-top: 10px;
	border: 1px solid #ff6900;
}

.abm-reservation-timer {
	color: #ff6b6b;
	font-weight: bold;
	margin-top: 10px;
	text-align: center;
	font-size: 13px;
}

.abm-no-slots {
	background: rgba(255, 193, 7, 0.1);
	padding: 15px;
	border-radius: 4px;
	margin-top: 10px;
	border: 1px solid #ffc107;
	color: #ffc107;
}

.abm-next-available {
	color: #ffc107;
	font-size: 14px;
	margin: 10px 0px;
}

.countdown {
	font-weight: bold;
	color: #ff6900;
}

/* Modal styles */
.abm-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	overflow: auto;
}

.abm-modal-content {
	background-color: #2a2a2a;
	margin: 5% auto;
	padding: 30px;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	position: relative;
	border: 1px solid #444;
	color: #e0e0e0;
}

.abm-modal-content h2 {
	color: #ffffff;
}

.abm-close {
	position: absolute;
	right: 20px;
	top: 20px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	color: #999;
}

.abm-close:hover {
	color: #fff;
}

.abm-form-group {
	margin-bottom: 20px;
}

.abm-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #e0e0e0;
}

.abm-form-group input[type="text"],
.abm-form-group input[type="url"],
.abm-form-group input[type="file"] {
	width: 100%;
	padding: 8px;
	border: 1px solid #444;
	border-radius: 4px;
	font-size: 14px;
	background: #1a1a1a;
	color: #e0e0e0;
}

.abm-form-group input[type="text"]:focus,
.abm-form-group input[type="url"]:focus {
	outline: none;
	border-color: #ff6900;
}

.abm-help-text {
	font-size: 12px;
	color: #999;
	margin-top: 5px;
}

.abm-payment-options {
	padding: 15px;
	background: #1a1a1a;
	border-radius: 4px;
	border: 1px solid #444;
	text-align: center;
}

.abm-payment-options .abm-btn {
	margin: 5px;
	min-width: 200px;
}

.abm-timer-warning {
	background: rgba(255, 193, 7, 0.1);
	padding: 15px;
	border-radius: 4px;
	margin-top: 20px;
	text-align: center;
	border: 1px solid #ffc107;
	color: #ffc107;
}

.abm-modal-timer {
	font-weight: bold;
	color: #ff6b6b;
	font-size: 18px;
}

/* Processing overlay */
#abm-processing-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.abm-processing-message {
	background: #2a2a2a;
	padding: 40px;
	border-radius: 8px;
	text-align: center;
	color: #fff;
	font-size: 18px;
	border: 1px solid #444;
}

.abm-spinner {
	width: 40px;
	height: 40px;
	margin: 20px auto;
	border: 4px solid #444;
	border-top: 4px solid #ff6900;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* User ads table */
.abm-user-ads {
	margin-top: 40px;
}

.abm-user-ads h2 {
	color: #ffffff;
}

.abm-ads-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background: #2a2a2a;
}

.abm-ads-table th,
.abm-ads-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #444;
	color: #e0e0e0;
}

.abm-ads-table th {
	background: #1a1a1a;
	font-weight: bold;
	color: #ffffff;
}

.abm-ads-table tr:hover {
	background: #333;
}

/* Status badges */
.abm-status-active {
	display: inline-block;
	padding: 3px 8px;
	background: #28a745;
	color: #fff;
	border-radius: 3px;
	font-size: 12px;
}

.abm-status-inactive {
	display: inline-block;
	padding: 3px 8px;
	background: #6c757d;
	color: #fff;
	border-radius: 3px;
	font-size: 12px;
}

.abm-status-pending {
	display: inline-block;
	padding: 3px 8px;
	background: #ffc107;
	color: #000;
	border-radius: 3px;
	font-size: 12px;
}

/* Ad display container */
.abm-ad-container {
	display: inline-block;
	position: relative;
}

.abm-ad-loading {
	padding: 20px;
	text-align: center;
	color: #666;
	font-size: 12px;
}

.abm-ad img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Notice */
.abm-notice {
	padding: 15px;
	background: #2a2a2a;
	border-left: 4px solid #ff6900;
	margin: 20px 0;
	color: #e0e0e0;
}

.abm-notice a {
	color: #ff6900;
	text-decoration: none;
	font-weight: bold;
}

.abm-notice a:hover {
	text-decoration: underline;
	color: #ff8533;
}

/* Responsive */
@media (max-width: 768px) {
	.abm-ad-types-grid {
		grid-template-columns: 1fr;
	}
	
	.abm-modal-content {
		width: 95%;
		margin: 10% auto;
		padding: 20px;
	}
	
	.abm-ads-table {
		font-size: 14px;
	}
	
	.abm-ads-table th,
	.abm-ads-table td {
		padding: 8px;
	}
	
	.abm-payment-options .abm-btn {
		width: 100%;
		margin: 10px 0;
	}
}





/* Coinbase button styling */
.abm-btn-coinbase {
	background: linear-gradient(135deg, #0052FF 0%, #003AD5 100%);
	font-weight: 600;
	padding: 12px 24px;
	font-size: 16px;
	position: relative;
	overflow: hidden;
}

.abm-btn-coinbase:hover {
	background: linear-gradient(135deg, #003AD5 0%, #00299E 100%);
}

.crypto-icon {
	font-weight: bold;
	margin-right: 8px;
}

.bonus-badge {
	display: inline-block;
	background: #28a745;
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	margin-left: 8px;
	font-weight: bold;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

.crypto-icon-large {
	font-size: 48px;
	color: #ff6900;
}

.extended-notice {
	background: rgba(40, 167, 69, 0.1);
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #28a745;
	margin-top: 10px;
}

.abm-crypto-status.success {
	animation: successPulse 0.5s ease;
}

@keyframes successPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}







/* Banner wrapper positioning */
.abm-banner-wrapper {
	position: relative;
	display: inline-block;
	line-height: 0; /* Remove spacing below images/videos */
}

.abm-promo-container .abm-banner-wrapper {
	position: relative;
	display: inline-block;
}

/* Ensure banner media fills wrapper properly */
.abm-banner-item {
	position: relative;
	display: block;
}

.abm-promo-link {
	display: block;
	line-height: 0;
}

.abm-banner-media {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Disclaimer icon styling */
.abm-info-icon {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 20px;
	height: 20px;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: help;
	z-index: 10;
	transition: all 0.3s ease;
}

.abm-info-icon:hover {
	background-color: rgba(0, 0, 0, 0.9);
	transform: scale(1.1);
}

/* Question mark text */
.abm-info-text {
	color: #ffffff;
	font-size: 12px;
	font-weight: bold;
	font-family: Arial, sans-serif;
	line-height: 1;
	user-select: none;
}

/* Tooltip styling */
.abm-info-tooltip {
	position: absolute;
	top: 25px;
	right: 0;
	background-color: rgba(0, 0, 0, 0.95);
	color: #ffffff;
	padding: 10px 15px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.4;
	width: 450px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	pointer-events: none;
	z-index: 999999;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	text-align: left;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tooltip arrow */
.abm-info-tooltip::before {
	content: "";
	position: absolute;
	top: -5px;
	right: 10px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid rgba(0, 0, 0, 0.95);
}

/* Show tooltip on hover */
.abm-info-icon:hover .abm-info-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Prevent disclaimer from interfering with banner clicks */
.abm-info-icon {
	pointer-events: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
	.abm-info-tooltip {
		width: 200px;
		font-size: 11px;
		right: -10px; /* Adjust position on mobile */
	}
	
	.abm-info-icon {
		width: 18px;
		height: 18px;
		top: 3px;
		right: 3px;
	}
	
	.abm-info-text {
		font-size: 11px;
	}
	
	/* Use tap instead of hover on mobile */
	.abm-info-icon.active .abm-info-tooltip {
		opacity: 1 !important;
		visibility: visible !important;
	}
}

/* For banners loaded via AJAX - ensure proper positioning */
.abm-promo-container[data-promo-type] {
	position: relative;
	display: inline-block;
}

/* Video specific styles */
video.abm-banner-media {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}