/* Casa Borsani Customer Portal - Frontend Styles */

.cbc-login-form-wrap {
	max-width: 400px;
	margin: 40px auto;
	padding: 30px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: #fafafa;
}

.cbc-login-form-wrap form {
	display: flex;
	flex-direction: column;
}

.cbc-field {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.cbc-field label {
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
}

.cbc-field input[type="email"],
.cbc-field input[type="password"] {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
}

.cbc-field input[type="email"]:focus,
.cbc-field input[type="password"]:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.cbc-login-form-wrap .et_pb_button {
	margin-top: 10px;
	padding: 12px 24px;
	background-color: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.cbc-login-form-wrap .et_pb_button:hover {
	background-color: #005a87;
}

.cbc-error {
	padding: 12px;
	margin-bottom: 20px;
	background-color: #fee;
	color: #c33;
	border: 1px solid #fcc;
	border-radius: 4px;
}

.cbc-success {
	padding: 12px;
	margin-bottom: 20px;
	background-color: #efe;
	color: #3c3;
	border: 1px solid #cfc;
	border-radius: 4px;
}

/* Offers Dashboard */
.cbc-offers-dashboard {
	margin: 20px 0;
}

.cbc-offer-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.cbc-offer-card {
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s ease;
}

.cbc-offer-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cbc-offer-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #333;
}

.cbc-offer-details {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

.cbc-offer-details p {
	margin: 5px 0;
}

.cbc-offer-discount {
	font-weight: 600;
	color: #0073aa;
	font-size: 16px;
}

.cbc-offer-date {
	font-size: 13px;
	color: #999;
	margin-top: 10px;
}

/* Single Offer */
.cbc-single-offer {
	max-width: 800px;
	margin: 40px auto;
	padding: 30px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: white;
}

.cbc-offer-products {
	margin: 20px 0;
}

.cbc-product-item {
	padding: 15px;
	margin-bottom: 10px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 4px;
}

.cbc-product-name {
	font-weight: 600;
	margin-bottom: 8px;
}

.cbc-add-to-cart-btn {
	margin-top: 10px;
	padding: 10px 20px;
	background-color: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.cbc-add-to-cart-btn:hover {
	background-color: #005a87;
}

.cbc-add-to-cart-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

@media (min-width: 981px) {
	.cbc-portal-container .products {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(calc(33.333% - 20px), 1fr));
		gap: 20px;
		margin-top: 20px;
	}
}
.cbc-portal-container {
	margin: 0px;
	padding: 0px;
}
.cbc-portal-container .products li {
	list-style: none;
	position: relative;
}
.cbc-portal-container .products li .onsale {
	position: absolute;
	top: 0;
	left: 0;
}
.cbc-portal-container .products li .short-desc {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.cbc-portal-container .products li .casa-custom-add-to-cart {
	display: flex;
	flex-direction: row;
	width: 100%;
	max-width: 230px;
	margin: 0 auto;
}

.cbc-portal-container .products li .casa-custom-add-to-cart .quantity-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	min-width: 42px;
	height: 42px;
	cursor: pointer;
	user-select: none;
	background: rgba(0, 0, 0, 1);
	color: #ffffff;
	border-radius: 300px;
	border-style: solid;
	border-width: 0;
	border-color: transparent;
	font-size: 20px;
}
.cbc-portal-container .products li .casa-custom-add-to-cart .quantity-button p {
	font-size: 20px;
	font-weight: 100;
}
.cbc-portal-container .products li .casa-custom-add-to-cart .et_quantity_wrapper input{
	background-color: #1b3c33 !important;
	font-size: 20px !important;
	font-weight: 100;
}
.cbc-portal-container .products li .casa-custom-add-to-cart button.cbp-add-to-cart-icon-only {
	background-color: #1b3c33 !important;
	width: 46px !important;
	height: 42px !important;
}

.cbc-portal-container .products li  span.onsale{
	z-index: 2;
	background: #b70b16 !important;
	border-radius: 3px !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	color: #fff;
	font-size: 20px;
	font-weight: 500 !important;
	line-height: inherit !important;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 6px 18px !important;
	text-shadow: none !important;
}
.cbc-portal-container .products li .cbp-cart-icon {
	width: 46px !important;
	height: 42px !important;
	display: inline-block;
	color: #ffffff;
}
.cbc-portal-container .products li .cbp-cart-icon-svg {
	fill: #ffffff;
}
.cbc-portal-container .products li .cbp-cart-icon::before {
	content: none;
}
.cbp-add-to-cart-icon-only {
	font-size: 0 !important;
}

/* Hidden by selection - hide wrapper when options are present */
.casa-custom-add-to-cart.cbp-cart-waiting-selection {
	display: none !important;
}