/* xl - DESKTOP STYLES */ 
/* 1. Force the original SVG to stay hidden from the start */
.cc_cart_items_list svg {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 2. Inject your custom icon using a data-URI or mask */
.cc_cart_items_list::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 30px;
    vertical-align: middle;
    margin-right: 3px; /* Space between icon and number */
    
    /* This makes your icon inherit the theme text color */
    background-color: currentColor; 
    
    /* REPLACE THE URL BELOW WITH YOUR SVG CODE OR FILE PATH */
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'></circle><circle cx='20' cy='21' r='1'></circle><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'></path></svg>") no-repeat center;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'></circle><circle cx='20' cy='21' r='1'></circle><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'></path></svg>") no-repeat center;
    
    mask-size: contain;
    -webkit-mask-size: contain;
}

.header-search-wrapper{
}

.cwginstock-subscribe-form .panel-body input.cwgstock_email {
    border-radius: 4px !important;
}
.cwginstock-subscribe-form input.cwgstock_button {
    border-radius: 4px !important;
	font-weight: 700;
    padding: 20px 20px;
}
.cwginstock-subscribe-form .panel-heading{
	border-top-right-radius: 4px !important;
    border-top-left-radius: 4px !important;
}


/* checkout css */

/* Container Master Ruleset Override */
.vorteq-checkout-wrapper-main {
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.custom-vorteq-checkout {
    width: 100% !important;
}

/* Enforcing Strict Layout Rules Grid */
.vorteq-checkout-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 1250px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.vorteq-checkout-left, 
.vorteq-checkout-right {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
}

/* Layout Structural Blocks */
.vorteq-checkout-section {
    background: #ffffff !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Payment Gateway Section Styling & Accepted Card Asset Controls */
.vorteq-accepted-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.vorteq-card-logo {
    height: 32px !important;
    width: auto !important;
    object-fit: contain;
}

/* Required Terms Block layout */
.legal-section .required {
    color: #ef4444 !important;
    font-weight: bold;
}

.vorteq-policy-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* Sidebar Styling Blocks */
.vorteq-sticky-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-block {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 30px !important;
    border-radius: 8px !important;
}

/* Custom Mini Cart Items List layout */
.vorteq-sidebar-item {
    display: flex !important;
    align-items: start !important;
    gap: 20px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.vorteq-item-thumb {
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
	margin-top: 10px;
}

.vorteq-item-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

.vorteq-item-qty {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
}

.vorteq-item-meta {
    flex-grow: 1 !important;
}

.vorteq-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.vorteq-sidebar-totals {
    margin-top: 20px;
}

.totals-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    color: #475569 !important;
}

.final-total {
    border-top: 2px solid #cbd5e1 !important;
    padding-top: 20px !important;
    margin-top: 10px !important;
    font-size: 19px !important;
    color: #000000 !important;
}

/* Sidebar Custom Coupon Entry block styling */
.vorteq-coupon-custom-field {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
}

.vorteq-coupon-custom-field input {
    flex-grow: 1 !important;
    padding: 10px 15px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
}

.vorteq-coupon-custom-field button {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* CRITICAL: Style Native Pay Button Explicitly to High Contrast Yellow & Black */
.woocommerce-checkout #payment #place_order,
.custom-vorteq-checkout #place_order {
    background-color: #FFDE00 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 18px 25px !important;
    font-size: 17px !important;
    border-radius: 4px !important;
    width: 100% !important;
    border: none !important;
    margin-top: 15px !important;
    transition: background 0.2s ease-in-out !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.woocommerce-checkout #payment #place_order:hover,
.custom-vorteq-checkout #place_order:hover {
    background-color: #e5c700 !important;
}

/* Ensure the payment-only section hides structural table remnants */
.payment-section .woocommerce-NoticeGroup,
.payment-section table.shop_table {
    display: none !important;
}

/* Give the standard gateway list clean breathing room inside the block */
.payment-section #payment ul.payment_methods {
    padding-left: 0 !important;
    list-style: none !important;
    margin: 0 0 20px 0 !important;
    border-bottom: none !important;
}

#customer_details {
    width: 100% !important;
}

@media (max-width: 991px){

	.vorteq-checkout-left{
		order: 2 !important;
	}
}

/* Multi-Column Desktop Execution Grid Split */
@media (min-width: 992px) {
    .vorteq-checkout-container {
        grid-template-columns: 58fr 42fr !important;
    }
    
    .vorteq-sticky-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 40px !important;
    }
	
	
}

/* Style isolated active gateway loops */
#vorteq_isolated_payment_methods ul.payment_methods {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: none !important;
}

#vorteq_isolated_payment_methods ul.payment_methods li.wc_payment_method {
    margin-bottom: 15px !important;
    padding: 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
}

#vorteq_isolated_payment_methods ul.payment_methods li.wc_payment_method label {
    font-weight: 600 !important;
    display: inline-block !important;
    margin-left: 8px !important;
    cursor: pointer;
}

#vorteq_isolated_payment_methods .payment_box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 15px !important;
    margin-top: 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
}

/* Pay Now Button Style Wrapper Setup */
.vorteq-action-submit-wrapper {
    margin-top: 25px !important;
    width: 100% !important;
}

.custom-vorteq-checkout #place_order {
    background-color: #FEB800!important;
    color: #000000 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 18px 25px !important;
    font-size: 17px !important;
    border-radius: 4px !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease-in-out !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.custom-vorteq-checkout #place_order:hover {
    background-color: #e5c700 !important;
}
#order_review {
    width: 100% !important;
    float: unset !important;
    clear: unset !important;
	border: none !important;
    padding: 0 !important;
}

/* Sidebar Specific Notice Custom Presentation rules */
.vorteq-coupon-notice-container .woocommerce-error,
.vorteq-coupon-notice-container .woocommerce-message,
.vorteq-coupon-notice-container .woocommerce-info {
    padding: 8px 12px !important;
    margin: 0 !important;
    font-size: 13px !important;
    list-style: none !important;
    border-radius: 4px !important;
    line-height: 1.4 !important;
}

.vorteq-coupon-notice-container .woocommerce-error {
    background-color: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
    color: #991b1b !important;
}

.vorteq-coupon-notice-container .woocommerce-message {
    background-color: #f0fdf4 !important;
    border: 1px solid #dcfce7 !important;
    color: #166534 !important;
}

/* Ensure default global notices don't duplicate on top if handled here */
.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-message,
.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-error {
    display: none !important;
}

/* Sidebar Loader Visual Configuration Rules */
.vorteq-checkout-right {
    position: relative !important;
}

.vorteq-checkout-right .blockOverlay {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 50 50"><path fill="%23000" d="M25,5A20,20,0,1,0,45,25,20,20,0,0,0,25,5Zm0,36A16,16,0,1,1,41,25,16,16,0,0,1,25,41Z" opacity=".2"/><path fill="%23000" d="M42,25A17,17,0,0,0,25,8V5A20,20,0,0,1,45,25Z"><animateTransform attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.8s" repeatCount="indefinite"/></path></svg>') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 8px !important;
}

.vorteq-checkout-section .section-header{
	flex-direction: column;
	align-items: start;
}

dl.variation {
    display: grid;
    grid-template-columns: 120px 1fr;
}

dl.variation dd {
    margin: 0;
}
dl.variation dd p {
    margin: 0;
}

