/**
 * ADV Cart & Authentication Plugin Styles
 *
 * Consolidated styles for all shortcodes:
 * - Login/Register/Logout ([login_reg_logout])
 * - Product Add-to-Cart ([addtocart])
 * - Archive Add-to-Cart ([addtocartArchives])
 *
 * @package ADV_Cart_Authentication
 */

/* ==========================================================================
   Login/Register/Logout Shortcode Styles
   ========================================================================== */

.loginHolder {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: bold;
	font-size: normal;
}

.loginHolder .btned {
	background-color: transparent;
	color: red;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 0 5px;
	border: 0;
	cursor: pointer;
}

.loginHolder .cartIcon {
	display: flex;
	position: relative;
	align-items: center;
	cursor: pointer;
	margin-right: 10px;
}

.loginHolder .cartIcon i {
	font-size: 23px;
	color: red;
}

.loginHolder .cartIcon .cartTotal {
	position: absolute;
	bottom: -5px;
	right: -10px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	background-color: #000;
	color: white;
	height: 23px;
	width: 23px;
	border-radius: 9999px;
	font-size: 12px;
}

/* Responsive styles for login holder */
@media screen and (max-width: 992px) {
	.loginHolder {
		font-size: 14px;
		gap: 5px;
	}

	.loginHolder .cartIcon i {
		font-size: 20px;
	}
}

/* ==========================================================================
   Product Add-to-Cart Shortcode Styles
   ========================================================================== */

.cartWrapper .strong {
	font-weight: bold;
}

#add-to-cart-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#add-to-cart-form label {
	font-weight: 500;
	font-size: 0.875rem;
}

#add-to-cart-form .insuNotify {
	color: red;
	font-size: 0.875rem;
	font-weight: 600;
}

.rowFields {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rowFields label {
	width: 30%;
}

.rowFields .secondDiv {
	width: 60%;
}

#details1 {
	margin: 1rem 0;
}

#details1 #content1 {
	padding-left: 1rem;
}

.productPrice {
	font-size: 0.875rem;
	text-transform: uppercase;
}

.productPrice .coPayPriceEl {
	font-size: 1.6rem !important;
}

.productPrice .priceTitle {
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1;
	/* Fallback color if Elementor CSS variable is not available */
	color: var(--e-global-color-quaternary, #d9534f);
}

.qtyBtnDisplay {
	display: inline-flex;
	gap: 5px;
}

.qtyBtnDisplay input {
	width: 50px;
	height: 50px;
	border-color: antiquewhite;
	text-align: center;
	border-width: 1px;
	border-style: solid;
}

.qtyBtnDisplay button {
	width: 50px;
	height: 50px;
	background-color: transparent;
	border-color: antiquewhite;
	color: #333;
	font-size: 2rem;
	line-height: 1rem;
	border-width: 1px;
	border-style: solid;
	cursor: pointer;
}

.qtyBtnDisplay button:hover {
	background-color: #f5f5f5;
}

/* Login required note */
.login-required-note {
	padding: 12px 0;
	line-height: 1.4;
}

.login-required-note .login-link {
	color: #0056d2;
	text-decoration: underline;
	font-weight: 500;
}

.login-required-note .login-link:hover {
	color: #003d99;
}

/* ==========================================================================
   Archive Add-to-Cart Shortcode Styles
   ========================================================================== */

/* Utility class for rounded corners */
.rounded-1 {
	border-radius: 5px !important;
}

/* Archive form specific styles */
.col-12.align-items-center {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.col-4 {
	width: 33.333%;
}

.col-8 {
	width: 66.667%;
}

/* Form select styling */
.form-select {
	width: 100%;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
}

.form-select:focus {
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Archive-specific quantity button display */
#add-to-cart-form .qtyBtnDisplay input {
	width: 90px;
	height: 45px;
	border-color: antiquewhite;
	text-align: center;
}

#add-to-cart-form .qtyBtnDisplay button {
	width: 45px;
	height: 45px;
	background-color: white;
	border-color: antiquewhite;
	color: #333;
	font-size: 2rem;
	line-height: 1rem;
}

/* ==========================================================================
   Common Utility Classes
   ========================================================================== */

/* Row layout */
.row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}

.row.align-items-center {
	align-items: center;
}

/* Column form label */
.col-form-label {
	padding-top: calc(0.375rem + 1px);
	padding-bottom: calc(0.375rem + 1px);
	margin-bottom: 0;
	font-size: inherit;
	line-height: 1.5;
}

/* Button styling */
#add-to-cart-button {
	padding: 0.5rem 1rem;
	font-size: 1rem;
	font-weight: 500;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 0.25rem;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

#add-to-cart-button:hover {
	background-color: #0056b3;
}

#add-to-cart-button:focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

/* Hidden content */
.hidden-content {
	margin-top: 0.5rem;
}

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

@media (max-width: 768px) {
	.rowFields {
		flex-direction: column;
		align-items: flex-start;
	}

	.rowFields label,
	.rowFields .secondDiv {
		width: 100%;
	}

	.col-4,
	.col-8 {
		width: 100%;
	}

	.productPrice .priceTitle {
		font-size: 1.2rem;
	}

	.productPrice .coPayPriceEl {
		font-size: 1.4rem !important;
	}
}
