/**
 * Gift Selector - Frontend Styles (Minimal)
 *
 * @package Softweb_Subscription_Gift
 */

/* ==========================================================================
   Gift Selector Container
   ========================================================================== */

.softweb-gift-selector {
	margin: 1.5em 0;
}

.softweb-gift-selector__label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 600;
	color: #333;
}

.softweb-gift-selector__label .required {
	color: #e74c3c;
	text-decoration: none;
	border: none;
}

/* ==========================================================================
   Select Field
   ========================================================================== */

.softweb-gift-selector__select {
	width: 100%;
	max-width: 400px;
	padding: 0.75em 1em;
	font-size: 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	color: #333;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.softweb-gift-selector__select:hover {
	border-color: #999;
}

.softweb-gift-selector__select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.softweb-gift-selector__select option:disabled {
	color: #999;
}

/* ==========================================================================
   Error State
   ========================================================================== */

.softweb-gift-selector--error .softweb-gift-selector__select {
	border-color: #dc3545;
}

.softweb-gift-selector--error .softweb-gift-selector__label {
	color: #dc3545;
}

/* ==========================================================================
   Cart Styles
   ========================================================================== */

.softweb-gift-item {
	background-color: #f9fdf9 !important;
}

.softweb-gift-badge {
	display: inline-block;
	padding: 0.15em 0.5em;
	margin-right: 0.5em;
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #155724;
	background-color: #d4edda;
	border-radius: 3px;
	vertical-align: middle;
}

.softweb-gift-quantity {
	display: inline-block;
	padding: 0.25em 0.75em;
	background-color: #f0f0f0;
	border-radius: 3px;
	font-weight: 500;
}

/* ==========================================================================
   Cart/Checkout Gift Notice
   ========================================================================== */

.softweb-gift-cart-notice {
	margin-bottom: 1.5em;
	padding: 1.25em;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
}

.softweb-gift-cart-notice__message {
	margin: 0 0 1em;
	font-size: 1em;
	color: #333;
}

.softweb-gift-cart-notice__selector {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
}

.softweb-gift-cart-notice__label {
	font-weight: 600;
	color: #333;
}

.softweb-gift-cart-select {
	flex: 1;
	min-width: 200px;
	max-width: 300px;
	padding: 0.5em 0.75em;
	font-size: 0.95em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
}

.softweb-gift-cart-select:focus {
	outline: none;
	border-color: #2271b1;
}

.softweb-gift-cart-add {
	padding: 0.5em 1.25em !important;
	font-size: 0.95em !important;
}

.softweb-gift-cart-add:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.softweb-gift-cart-notice__price {
	margin: 0.75em 0 0;
	font-size: 0.9em;
	color: #666;
}

.softweb-gift-cart-notice__price--free {
	color: #155724;
	font-weight: 600;
}

.softweb-gift-cart-notice--success {
	border-left-color: #28a745;
	background-color: #d4edda;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
	.softweb-gift-selector__select {
		max-width: 100%;
	}

	.softweb-gift-cart-notice__selector {
		flex-direction: column;
		align-items: stretch;
	}

	.softweb-gift-cart-select {
		max-width: 100%;
	}

	.softweb-gift-cart-add {
		width: 100%;
	}
}
