/**
 * Credits frontend styles.
 *
 * @package Amamente_Orders_Dashboard
 */

/* Credits Notice */
.aod-credits-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.aod-credits-notice strong {
	white-space: nowrap;
}

/* Credits Row in Cart/Checkout */
.aod-credits-row th,
.aod-credits-row td {
	vertical-align: top;
	padding: 15px 10px;
}

.aod-credits-option {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aod-credits-available {
	margin: 0;
	color: #2271b1;
	font-weight: 600;
}

.aod-credits-applied {
	margin: 0;
	color: #00a32a;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}

.aod-remove-credits {
	color: #d63638;
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
}

.aod-remove-credits:hover {
	color: #a00;
}

.aod-credits-form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.aod-credits-form label {
	margin: 0;
	font-weight: normal;
}

.aod-credits-form input[type="number"] {
	width: 70px;
	text-align: center;
}

.aod-credits-form .button {
	margin: 0;
}

.aod-no-credits,
.aod-no-eligible {
	margin: 0;
	color: #666;
	font-style: italic;
}

/* Product Badges */
.aod-credits-badge {
	display: inline-block;
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 3px;
	margin-top: 5px;
	position: absolute;
	left: 10px;
	z-index: 10;
}

.aod-gives-credits {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	top: 10px;
}

.aod-accepts-credits {
	background: #00a32a;
	color: #fff;
	top: 40px;
}

/* Single Product Info */
.aod-credits-info {
	margin: 15px 0;
	padding: 12px 15px;
	border-radius: 6px;
}

.aod-gives-credits-info {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
	border: 1px solid rgba(102, 126, 234, 0.3);
}

.aod-gives-credits-info p {
	margin: 0;
}

.aod-validity {
	margin-top: 5px !important;
	color: #666;
}

.aod-can-use-credits {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.aod-can-use-credits p {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.aod-can-use-credits .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* My Account Dashboard Widget */
.aod-credits-dashboard-widget {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 10px;
	padding: 20px;
	color: #fff;
	margin-bottom: 20px;
}

.aod-credits-dashboard-widget h3 {
	margin: 0 0 10px 0;
	color: #fff;
	font-size: 1rem;
	opacity: 0.9;
}

.aod-credits-dashboard-widget .aod-credits-total {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 15px;
}

.aod-credits-dashboard-widget .aod-credits-number {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
}

.aod-credits-dashboard-widget .aod-credits-label {
	opacity: 0.9;
}

.aod-credits-dashboard-widget .button {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.aod-credits-dashboard-widget .button:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
	.aod-credits-form {
		flex-direction: column;
		align-items: flex-start;
	}

	.aod-credits-form input[type="number"] {
		width: 100%;
	}

	.aod-credits-form .button {
		width: 100%;
	}
}
