/**
 * Custom Commerce Rewards Frontend Styles
 */

.ccr-referral-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #ffffff;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	margin: 15px 0;
	position: relative;
	z-index: 9999;
}

.ccr-banner-content {
	flex: 1;
	text-align: center;
}

.ccr-banner-close {
	background: transparent !important;
	border: none !important;
	color: #ffffff !important;
	font-size: 22px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 4px !important;
	margin-left: 15px !important;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	box-shadow: none !important;
}

.ccr-banner-close:hover {
	opacity: 1;
	background: transparent !important;
}

.ccr-referral-banner code {
	background: #ffffff;
	color: #1e40af;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 700;
	font-family: monospace;
	font-size: 0.95em;
	margin: 0 4px;
	border: 1px solid #bfdbfe;
}

/* Cart page coupon input box styling */
.woocommerce-cart .coupon #coupon_code,
.woocommerce-cart .coupon input[name="coupon_code"],
.cart .coupon #coupon_code {
	min-width: 250px !important;
	width: 250px !important;
}

/* Left-align 'Or Select from Your Earned Rewards:' label and wrapper */
.ccr-cart-coupon-select-wrapper {
	text-align: left !important;
	width: 100% !important;
	clear: both !important;
	margin-top: 12px !important;
	margin-bottom: 12px !important;
}

.ccr-cart-coupon-select-wrapper label {
	text-align: left !important;
	display: block !important;
	width: 100% !important;
	float: none !important;
	margin-bottom: 6px !important;
}

.ccr-cart-coupon-select-wrapper select {
	min-width: 250px !important;
	width: 100% !important;
	max-width: 100% !important;
}

.ccr-my-coupons-wrapper {
	margin-bottom: 30px;
}

.ccr-my-coupons-subtitle {
	color: #64748b;
	margin-bottom: 20px;
}

.ccr-coupons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.ccr-coupon-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ccr-coupon-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.ccr-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px dashed #e2e8f0;
}

.ccr-discount-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
}

.ccr-status-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ccr-status-badge.status-active {
	background-color: #d1fae5;
	color: #065f46;
}

.ccr-status-badge.status-used {
	background-color: #f1f5f9;
	color: #64748b;
}

.ccr-status-badge.status-expired {
	background-color: #fee2e2;
	color: #991b1b;
}

.ccr-code-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 12px;
}

.ccr-code-text {
	font-family: monospace;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: #2563eb;
	background: none;
	padding: 0;
}

.ccr-copy-btn {
	padding: 4px 10px !important;
	font-size: 0.8rem !important;
	border-radius: 4px !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ccr-copy-btn.copied {
	background-color: #10b981 !important;
	color: #ffffff !important;
	border-color: #10b981 !important;
}

.ccr-card-details {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.85rem;
	color: #475569;
}

.ccr-card-details li {
	margin-bottom: 4px;
}
