/* CPC v1.6.3 - FINAL FIX: Checkbox Rounded Corners and Alignment */
.cpc-v15-root {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

/* --- FIX FOR H1 VISIBILITY --- */
/* Ensure the H1 title is always visible and white within the main column. */
.cpc-main-col h1 {
    color: #fff !important;
    display: block !important;
    font-size: 42px; /* Maintain the title size */
    margin: 0 0 12px; /* Maintain spacing */
}
/* --- END FIX --- */

.cpc-v15-wrap {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cpc-main-col {
    flex: 3;
    background: #1F1F1F;
    padding: 18px;
    border-radius: 10px;
    box-sizing: border-box;
    min-width: 0;
    margin-top: 0;
    position: relative;
}

.cpc-side-col {
    width: 300px;
    flex-shrink: 0;
}

.cpc-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cpc-page-title {
    font-size: 28px;
    margin: 0 0 6px;
    color: #fff;
}

.cpc-sub {
    color: #cfcfcf;
    margin: 0 0 16px;
}

.cpc-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cpc-tab {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #FEFEFE;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cpc-tab:hover {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-tab.active {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-end;
}

#cpc-search {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #5E6164;
    background: #2E2E2E;
    color: #fff;
    opacity: 80%;
    min-width: 0;
}

/* --- UPDATED SEARCH BUTTON STYLES --- */
#cpc-search-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: none;
    background: #FFBC00;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative; 
}

/* STYLE THE INJECTED SVG ICON */
#cpc-search-btn svg.e-fas-search {
    width: 20px; /* Set the size of the icon */
    height: 20px;
    /* 🛑 FIX: Explicitly set fill to black and use !important to override potential hover states */
    fill: #000000 !important;
}

/* REMOVE the previous CSS icon fix */
#cpc-search-btn::after {
    content: none !important; 
}
/* --- END UPDATED SEARCH BUTTON STYLES --- */


.cpc-table-head,
.cpc-row {
    display: flex;
    gap: 12px;
    align-items: center; 
}

.cpc-table-head {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    z-index: 40;
    /* background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);*/
    min-width: auto;
    margin-top: 0; 
}

.cpc-col {
    min-width: 0;
    text-transform: capitalize;
    font-weight: 500;
    color: #fff;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
}

/* Column Flex Distribution */
.cpc-col-product {
    flex: 2;
    text-align: left;
    /* FIX: Desktop Vertical Alignment */
    display: flex; 
    align-items: center;
}

.cpc-col-countries {
    flex: 3;
    position: relative; 
}

.cpc-col-price {
    flex: 1;
    text-align: left;
    font-weight: 500;
    max-width: 87px;
}

.cpc-col-price-all {
    flex: 1;
    text-align: left;
    font-weight: 500;
    max-width: 87px;
}

.cpc-col-price-single {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.cpc-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpc-row {
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    min-width: auto;
    flex-wrap: wrap;
}

/* Odd rows (1, 3, 5, ...) */
.cpc-row:nth-child(odd) {
  background-color: #1F1F1F; /* darker shade */
}

/* Even rows (2, 4, 6, ...) */
.cpc-row:nth-child(even) {
  background-color: #2E2E2E; /* slightly lighter shade */
}

/* Increased Specificity on Checkbox Text Container */
.cpc-row .cpc-col-product .cpc-title {
    font-weight: 500;
    color: #fff;
    position: relative;
    padding-left: 44px; 
    display: block;
    /* 🔥 FIX: Allow text to wrap onto multiple lines */
    white-space: normal; 
    text-transform: capitalize;
    font-size: 15px;
    line-height: 1.2; 
}

.cpc-product-link,
.cpc-product-link:link,
.cpc-product-link:visited,
.cpc-product-link:active {
    display: block;
    font-size: 9px;
    color: #FFBC00;
    text-decoration: none;
    margin-top: 4px;
    margin-left: 44px;
    font-weight: 500;
    transition: color 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.cpc-product-link:hover {
    color: #fff;
    text-decoration: underline;
}

.cpc-checkbox-wrap input[type="checkbox"] {
    display: none;
}

/* --- DESKTOP CHECKBOX STYLES (Absolute Positioning) --- */
/* CRITICAL: Increased specificity to guarantee the style applies */
.cpc-row .cpc-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    /* 🔥 FINAL ROUNDED CORNER FIX with !important */
    border-radius: 10px !important; 
    background: #1a1a1a;
    border: 1px solid #FEFEFE;
    box-sizing: border-box;
}

.cpc-row .cpc-title::after {
    content: "";
    position: absolute;
    left: 10px; 
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 18px; 
    color: #000;
    z-index: 1;
}

.cpc-checkbox-wrap input[type="checkbox"]:checked + .cpc-title::before {
    background: #FFBC00;
    border-color: #FFBC00;
}

.cpc-checkbox-wrap input[type="checkbox"]:checked + .cpc-title::after {
    content: "✓";
    color: #000;
    font-weight: 800;
}
/* --- END DESKTOP CHECKBOX STYLES --- */

.cpc-panel {
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #0b0b0b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    max-height: 260px;
    overflow: auto;
    position: absolute;
    z-index: 60;
    left: 0;
    right: 0;
    max-width: 300px;
}

.cpc-country-list label {
    display: block;
    margin: 6px 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.02);
    color: #fff;
}

.cpc-country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cpc-open-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.cpc-open-panel.country-select-disabled::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: none;
    z-index: 10;
    cursor: not-allowed;
}

.cpc-open-panel.country-select-disabled::after {
    display: none;
}


.cpc-open-panel::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cpc-open-panel:hover,
.cpc-open-panel:focus {
    background: #FFBC00 !important;
    border-color: #FFBC00 !important;
    color: #000 !important;
    outline: none !important;
}

.cpc-consultant-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    cursor: none;
    transition: all 0.3s ease;
    font-size: 10px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.cpc-consultant-tag:hover {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-consultant-tag.active {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-offers {
    background: #1F1F1F;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #fff;
}

.cpc-offer-item {
    color: #fff;
    padding: 6px 0;
}

#cpc-min-note {
    font-size: 12px;
    color: #cfcfcf;
    margin-top: 5px;
}

.cpc-quote {
    background: #1F1F1F;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #fff;
}
.cpc-benefits{
    background: #1F1F1F;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #fff;
    max-width: 100%;
}
/*.cpc-benefits li{
    font-size: 15px;
    line-height: 1.4;
}*/

.cpc-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cpc-benefits ul li {
  position: relative;
  padding-left: 1.2rem; /* space for tick */
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-size: 15px;
}

.cpc-benefits ul li::before {
  content: "✔";
  color: #FFBC00;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 1rem;
}
/* --- QUOTE SUMMARY LAYOUT --- */
.cpc-quote-list .quote-item {
    display: block;
    margin-bottom: 4px; 
    padding: 8px 0; 
    overflow: hidden;
}

.cpc-quote-list .quote-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    line-height: 1; 
    min-height: 16px; 
    margin-bottom: 2px;
}

.cpc-quote-list .quote-item-header .product-title {
    flex: 1;
    text-align: left;
    margin: 0;
    font-weight: 500; 
    font-size: 13px; 
    color: #fff; 
    /* Allow product titles to wrap if necessary */
    white-space: normal;
}

.cpc-quote-list .quote-item-header .product-price {
    text-align: right;
    margin: 0;
    white-space: nowrap;
    font-weight: 500; 
    font-size: 13px; 
}

.cpc-quote-list .quote-item-info {
    font-size: 11px;
    color: #cfcfcf;
    margin: 2px 0 0; 
    padding-left: 0;
    width: 100%;
    text-align: left;
    line-height: 1;
    clear: both;
}

.cpc-currency {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cpc-currency:hover {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-currency.active {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 6px;
    color: #fff;
}

.cpc-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.bNow{
    border: 2px solid #FFBC00;
    box-shadow: 0 0 8px rgba(255, 209, 102, 0.5);
    animation: pulse-border 1.5s infinite;
    font-size: 16px;
    font-weight: bold;
}

.cpc-btn:hover {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

button.cpc-btn-outline {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #FEFEFE;
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.3s ease;
}

button.cpc-btn-outline:hover {
    background: #FFBC00 !important;
    color: #000;
    border-color: #FFBC00;
}

.cpc-help {
    background: #1F1F1F;
    padding: 18px;
    border-radius: 10px;
    color: #fff;
}

.cpc-pager {
    margin-top: 16px;
    text-align: center;
    color: #fff;
}

.cpc-pager button {
    margin: 0 4px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cpc-pager button:hover {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-pager button.active {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-pager .dots {
    margin: 0 6px;
    color: #888;
}

/* FIXES */
.sticky-header {
    position: sticky;
    top: 20px;
    z-index: 50;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.cpc-table-head {
    margin-top: 0;
    top: 0;
}

.cpc-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    margin-top: 4px;
    min-width: 250px;
}

/* ---------------------------------------------------- */
/* --- NEW: STYLES FOR THE SIDEBAR MOBILE CLOSE BUTTON --- */
/* ---------------------------------------------------- */
.cpc-close-sidebar {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001; /* High Z-index to be on top of the popup */
    /* Hide button by default (will be shown in mobile media query) */
    display: none; 
}


/* Responsive adjustments for mobile and tablet */
@media (max-width: 1000px) {
    .cpc-v15-wrap {
        flex-direction: column;
    }
    .cpc-side-col {
        width: 100%;
        order: 2;
    }
    .cpc-main-col {
        flex: 1;
        order: 1;
        margin-top: 0;
        padding: 12px;
        overflow-x: hidden; /* Prevents horizontal scroll in main column */
    }
    
    .cpc-popup-content {
        overflow-x: hidden; /* Prevents horizontal scroll in the quote popup */
    }
    
    .cpc-panel {
        position: relative;
        z-index: 1;
        max-width: none;
    }
    .cpc-table-head {
        display: none;
    }
    .cpc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        width: 100%; /* Ensure row takes full width */
    }
    .cpc-col {
        width: 100%; /* Ensure all columns take full width to stack */
        flex: none;
        min-width: 0; /* Critical for wrapping */
    }
    .cpc-col-product {
        /* FIX: Mobile Vertical Alignment */
        display: flex; 
        align-items: center; 
        gap: 12px;
    }
    .cpc-col-countries {
        position: relative;
    }

    /* Tablet and Mobile Price Display */
    .cpc-row .cpc-col-price,
    .cpc-row .cpc-col-price-all,
    .cpc-row .cpc-col-price-single { /* Added single price column */
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        width: 100%;
        padding: 0;
        margin-top: 8px;
        font-size: 14px;
        max-width: none; /* Override desktop max-width */
    }
    .cpc-row .cpc-col-price::before,
    .cpc-row .cpc-col-price-all::before,
    .cpc-row .cpc-col-price-single::before { /* Added single price column */
        font-size: 13px;
        font-weight: normal;
        color: #cfcfcf;
        text-transform: uppercase;
        margin-right: 10px;
        white-space: nowrap;
        content: "Price Per Product, Per Country:"; /* Default for price */
    }
    .cpc-row .cpc-col-price-all::before {
        content: "Price Per Product, All Countries:";
    }
    .cpc-row .cpc-col-price-single::before {
        content: "Price:"; /* Content for consultant price */
    }
    
    .cpc-row .cpc-col-price > span,
    .cpc-row .cpc-col-price-all > span,
    .cpc-row .cpc-col-price-single > span {
        font-size: 14px;
        font-weight: 800;
        white-space: nowrap;
    }

    /* --- MOBILE CHECKBOX STYLES (Flexbox Alignment) --- */
    .cpc-row .cpc-col-product .cpc-title {
        padding-left: 0; 
        font-size: 15px;
        white-space: normal;
        display: flex; 
        align-items: center;
        gap: 12px;
    }
    
    /* Apply mobile styles to the checkbox box (::before) */
    .cpc-row .cpc-title::before {
        position: static; 
        transform: none;
        margin: 0; 
        flex-shrink: 0; 
        /* The !important rule from the desktop block should ensure the border-radius */
    }
    
    /* Apply mobile styles to the checkmark (::after) */
    .cpc-row .cpc-title::after {
        position: absolute; 
        left: 10px; /* Positioned absolutely relative to the row's position: relative; */
        top: 50%;
        transform: translateY(-50%);
    }
    
    .cpc-product-link {
        margin-left: 0 !important;
        font-size: 10px;
        margin-top: 4px !important;
        /* Align link text under the title text, compensating for the checkbox */
        padding-left: 46px; 
    }
    
    .cpc-country-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Mobile-specific adjustments (smaller screens like 375px) */
@media (max-width: 600px) {
    .cpc-row .cpc-col-price,
    .cpc-row .cpc-col-price-all,
    .cpc-row .cpc-col-price-single {
        font-size: 13px;
        margin-top: 6px;
    }
    .cpc-row .cpc-col-price::before,
    .cpc-row .cpc-col-price-all::before,
    .cpc-row .cpc-col-price-single::before {
        font-size: 11px;
        margin-right: 6px;
    }
    .cpc-row .cpc-col-price > span,
    .cpc-row .cpc-col-price-all > span,
    .cpc-row .cpc-col-price-single > span {
        font-size: 13px;
    }
    .cpc-product-link {
        padding-left: 46px; 
    }
    .cpc-benefits ul li {
    font-size: 0.95rem;
    padding-left: 1.5rem;
  }

  .cpc-benefits ul li::before {
    font-size: 0.95rem;
  }
}


/* NEW STYLES */
.quote-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.quote-item-header .product-title {
    flex: 1;
    text-align: left;
    margin: 0;
}

.quote-item-header .product-price {
    text-align: right;
    margin: 0;
    white-space: nowrap;
}

.desc {
    margin-top: 5px;
    font-size: 0.9em;
    color: #a0a0a0;
}

.cpc-open-panel {
    position: relative;
}

.pending-selection .cpc-open-panel {
    border: 2px solid #FFBC00;
    box-shadow: 0 0 8px rgba(255, 209, 102, 0.5);
    animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 209, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 209, 102, 0);
    }
}

.selection-prompt {
    font-size: 0.8em;
    color: #FFBC00;
    margin-left: 10px;
    font-weight: bold;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cpc-col-countries {
    display: flex;
    align-items: center;
}

.cpc-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.cpc-popup-content {
    background: #0f0f0f;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    width: 90%;
    color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cpc-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #FFBC00;
}

/*.cpc-popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: left;
    line-height: 1.4;
}*/

.cpc-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.cpc-form-group {
    flex: 1;
    min-width: 250px;
}

.cpc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.cpc-form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    color: #fff;
}

.cpc-form-group-full {
    margin-bottom: 15px;
}

.cpc-form-group-full label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.cpc-form-group-full input,  .cpc-form-group-full textarea{
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none !important;
    background-color: #262626;
    color: #fff;
}

#cpc-form-submit-btn {
    background: #FFBC00;
    color: #000;
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 20px;
}

#cpc-form-submit-btn:hover {
    background: #ffc233;
}

.cpc-btn-group {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.cpc-btn.support-chat {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
    transition: all 0.3s ease;
}

.cpc-btn.support-chat:hover {
    background: #ffc233;
    color: #fff;
    border-color: #ffc233;
}

.cpc-btn-book {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cpc-btn-book:hover {
    background: #FFBC00;
    color: #000;
    border-color: #FFBC00;
}

.cpc-pager-info {
    display: none !important;
}

/* Button state changes for "Get payment link" */
#cpc-get-link.cpc-btn.disabled {
    background: #333;
    color: #888;
    cursor: not-allowed;
    border: 1px solid #333;
}

/* Styles for the contact info section */
.cpc-help h4 {
    font-size: 18px;
    margin: 0 0 6px;
    color: #fff;
    line-height: 1.2;
}

.cpc-help p {
    color: #cfcfcf;
    margin: 0 0 16px;
    line-height: 1.4;
}

.cpc-contact-info {
    margin: 15px 0 20px;
}

.cpc-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.cpc-contact-item a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    padding-left: 30px;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: left center;
}

.cpc-contact-item a:hover {
    color: #FFBC00;
}

/* Specific background images for each link, using SVGs from asset path */
.cpc-contact-item:first-child a {
    background-image: url("/wp-content/plugins/commodity-pricing/assets/mail.svg");
}

.cpc-contact-item:last-child a {
    background-image: url("/wp-content/plugins/commodity-pricing/assets/call.svg");
}


.cpc-currency:not([data-currency="USD"]) {
    display:none;
}

/* --- START: STICKY TOTAL BAR STYLES (MOBILE ONLY) --- */
@media (max-width: 768px) {
    /* Show the mobile close button */
    .cpc-close-sidebar {
        display: block; 
    }
    
    /* Sticky Bar container */
    #cpc-sticky-total {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box; 
        background-color: #0f0f0f; 
        border-top: 1px solid #333;
        padding: 15px 20px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
        z-index: 9999;
        display: block; /* New flex-based layout for mobile bar */
        cursor: default;
        color: #fff;
    }
    
    /* Hide the redundant desktop "Get Payment Link" button */
    .cpc-quote #cpc-get-link {
        display: none !important;
    }
    
    /* Highlight the Total Price */
    #cpc-sticky-total .cpc-sticky-price {
        color: #fff; /* Reset to white for the new block layout */
    }
    
    /* Initially hide the main quote section on mobile screens */
    .cpc-side-col {
        display: none !important; 
    }
    
    /* Show the quote section when the 'is-open' class is toggled by JS */
    .cpc-side-col.is-open {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        z-index: 10000;
        padding-top: 50px; 
        overflow-y: auto;
        background: #0f0f0f;
    }
    
    /* Add padding to the body to prevent content from being hidden by the sticky bar */
    body {
        padding-bottom: 70px;
    }
}

/* Hide the sticky bar on desktop/larger screens */
@media (min-width: 769px) {
    #cpc-sticky-total {
        display: none !important;
    }
    /* Ensure the main quote section is always visible on desktop */
    .cpc-side-col {
        display: block !important; 
        position: static !important; 
    }
    
    /* 🛑 FIX 1: Hide the contact form popup close button on desktop */
    /*.cpc-close-btn { 
        display: none !important; 
    }*/
    
    /* ✅ FIX 2: Hide the sidebar close button on desktop (This was the issue!) */
    .cpc-close-sidebar {
        display: none !important;
    }
}
/* --- END: STICKY TOTAL BAR STYLES --- */
/* --- START: NEW STICKY BAR STYLES (MOCKUP) --- */
@media (max-width: 768px) {
    #cpc-sticky-total {
        display: block; /* Change from flex to block to stack items vertically */
        padding: 12px 15px;
        cursor: default; /* The whole bar is no longer clickable */
    }

    #cpc-quote-count.cpc-sticky-link {
        font-size: 14px;
        font-weight: 500;
        text-decoration: underline;
        text-align: center;
        margin-bottom: 12px;
        cursor: pointer; /* Only this link is clickable to open the summary */
        position: relative;
        padding-right: 15px; /* Space for the arrow */
    }

    #cpc-quote-count.cpc-sticky-link::after {
        content: '▲';
        font-size: 10px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .cpc-sticky-total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    #cpc-sticky-price {
        font-size: 20px;
        color: #fff; /* Ensure price is white */
    }

    #cpc-sticky-get-link.cpc-btn {
        width: 100%;
        background-color: #FFBC00;
        color: #000;
        font-weight: 700;
        font-size: 16px;
        padding: 14px;
        border: none;
        border-radius: 10px;
    }
    
    #cpc-sticky-get-link.cpc-btn.disabled {
        background-color: #333;
        color: #888;
    }
}
/* --- END: NEW STICKY BAR STYLES --- */
/*.cpc-offers, */
.cpc-currency-tabs {
    display: none !important;
}
/*.cpc-table-head .cpc-head{
    font-weight: 800 !important;
    font-size: 15px !important;
    text-transform: capitalize !important;
}*/
/* --- POPUP CLOSE BUTTON FIX --- */
/* =========================================================
   CPC Popup Form Styles - v1.6.4
   Author: Price-Watch Dev Team
   Description:
   Unified color scheme (#FFBC00), removed #c36,
   fixed Send OTP alignment + mobile responsiveness.
   ========================================================= */

/* ========== Overlay & Popup Container ========== */
.cpc-contact-popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.cpc-popup-content {
    background-color: #111;
    color: #fff;
    padding: 32px;
    border-radius: 14px;
    width: 100%;
    max-width: 720px;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.35s ease-out;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Close Button ========== */
.cpc-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    font-weight: 700;
    color: #FFBC00;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.25s ease;
}
.cpc-close-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

/* ========== Popup Title ========== */
.cpc-popup-title {
    font-size: 15px;
    line-height: 22px !important;
    margin-bottom: 14px;
    color: #fff;
    font-weight: 500;
}
h3.cpc-popup-title b{
    font-size: 18px;
    color: #FFBC00;
}

/* ========== Form Layout ========== */
.cpc-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.cpc-form-group,
.cpc-form-group-full {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.cpc-form-group-full {
    width: 100%;
}

.cpc-form-group label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.cpc-form-group small {
    color: #aaa;
    font-size: 0.8rem;
}

/* ========== Input & Textarea ========== */
.cpc-form-group input,
.cpc-form-group textarea {
    width: 100%;
    background-color: #262626;
    border: none !important;
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    font-size: 0.95rem;
    /*transition: border-color 0.3s ease, background-color 0.3s ease;*/
}

.cpc-form-group input:focus,
.cpc-form-group textarea:focus {
    outline: none;
    border: none !important;
    background-color: #262626;
}

/* ========== Submit Button ========== */
#cpc-form-submit-btn {
    background-color: #FFBC00;
    border: none;
    color: #000;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}
#cpc-form-submit-btn:hover {
    background-color: #000;
    color: #FFBC00;
}

/* ========== OTP Section ========== */
#otp-section,
.cpc-otp-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

#email,
#otp-input,
#email-input {
    flex: 1;
    min-width: 220px;
}

#send-otp-btn,
#verify-otp-btn {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* --- Send OTP Button --- */
#send-otp-btn {
    background-color: #000;
    border: 2px solid #000;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#send-otp-btn:hover {
    background-color: #FFBC00;
    color: #000;
}

/* --- Verify OTP Button --- */
#verify-otp-btn {
    background-color: transparent;
    border: 2px solid #FFBC00;
    color: #FFBC00;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#verify-otp-btn:hover {
    background-color: #FFBC00;
    color: #000;
}

/* ========== Messages (OTP + Form) ========== */
#cpc-form-message {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}
#cpc-form-message.success {
    color: #00c851;
}
#cpc-form-message.error {
    color: #ff4444;
}

/* ========== Responsive Styles ========== */
@media (max-width: 768px) {
    .cpc-popup-content {
        padding: 24px;
    }
    .cpc-form-row {
        flex-direction: column;
    }
    #send-otp-btn,
    #verify-otp-btn {
        width: 100%;
        margin-top: 10px;
    }
}
@media (max-width: 480px) {
    .cpc-popup-content {
        border-radius: 10px;
    }
    .cpc-popup-title {
        font-size: 1rem;
    }
}
/* CSS to make the percentage text smaller and properly spaced */
.cpc-line.discount-line span:first-child .cpc-inline-percent-value {
    font-size: 0.8em; /* Sets the font size to 80% of the parent font size */
    opacity: 0.8;   /* Makes the text slightly lighter */
    font-weight: normal; /* Ensures the percentage is not bold */
}
.quote-desc{
    font-size: 18px;
}
label.cpc-selectall{
    padding: 10px 0;
}
/* CSS to hide the tiers that should only show after clicking "Show More" */
.cpc-tier-hidden {
    display: none;
}

/* Optional styling for the link */
.cpc-show-more-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9em;
    cursor: pointer;
    color: #FFBC00 !important;
    text-decoration: underline; 
}