/* ============================================================
   Emirates Peptides Calculator v2 — Optimized styles
   ============================================================ */

/* -- Reset & base wrapper ---------------------------------------- */
.ep-calc-wrap {
    background-color: #fff;
    border: 1px solid #e5e9ec;
    border-radius: 10px;
    padding: 28px 28px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2c3e50;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    container-type: inline-size;
}

@media (max-width: 767px) {
    .ep-calc-wrap {
        padding: 16px 12px 16px;
        border-radius: 6px;
        border-left: none;
        border-right: none;
    }
    /* Remove Elementor container side padding on mobile */
    .elementor-element[data-id="78cf60c"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Force white background on mobile — scoped to calculator elements only.
       WARNING: Do NOT add body / .e-con here — it kills hero backgrounds site-wide. */
    .elementor-element[data-id="78cf60c"],
    .elementor-element[data-id="ed4ee52"],
    .elementor-element[data-id="d8d083f"] {
        background-color: #ffffff !important;
    }
    /* Remove theme gradient on result panel */
    .ep-result-ok,
    .ep-calc-wrap .ep-result-ok,
    .elementor-page-101318 .ep-result-ok {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border: none !important;
    }
}

.ep-calc-wrap *,
.ep-calc-wrap *::before,
.ep-calc-wrap *::after {
    box-sizing: border-box;
}

/* -- Calculator title -------------------------------------------- */
.ep-calc-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 20px;
    padding: 0;}

/* == PRODUCT SELECTOR =========================================== */
/* == PRODUCT SELECTOR =========================================== */
.ep-product-selector {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e9ec;
}

/* Tabs — centered pill style */
.ep-ps-tabs {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-bottom: 24px !important;
}
.ep-ps-tab {
    padding: 10px 24px !important;
    border: none !important;
    border-radius: 28px !important;
    background: #f0f2f5 !important;
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all .25s !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}
.ep-ps-tab:hover {
    background: #e0e4ea !important;
    color: #333 !important;
}
.ep-ps-tab.active {
    background: #2979FF !important;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(41,121,255,.3) !important;
}

/* Scrollable grid */
.ep-ps-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px;
}
.ep-ps-scroll::-webkit-scrollbar {
    height: 6px;
}
.ep-ps-scroll::-webkit-scrollbar-thumb {
    background: #c8cdd3;
    border-radius: 3px;
}
.ep-ps-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: max-content !important;
    padding: 4px 2px !important;
}

/* Product card */
.ep-ps-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    flex: 0 0 180px !important;
    padding: 18px 12px 14px !important;
    border: 1px solid #e8eaed !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    cursor: pointer;
    transition: all .25s;
    text-align: center;
    font-family: inherit;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
}
.ep-ps-card:hover {
    border-color: #ccc !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
    transform: translateY(-2px);
}
.ep-ps-card.active {
    border-color: #2979FF !important;
    background: #f5f9ff !important;
    box-shadow: 0 0 0 3px rgba(41,121,255,.18) !important;
}
.ep-ps-card[data-hidden="1"] {
    display: none !important;
}

/* Card image — bigger */
.ep-ps-img {
    position: relative;
    width: 140px !important;
    height: 140px !important;
    margin-bottom: 10px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: #ffffff !important;
    border-radius: 8px !important;
}
.ep-ps-img img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
}

/* HOT badge */
.ep-ps-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #e74c3c !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
}

/* Out of stock badge */
.ep-ps-oos {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #e74c3c !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 3px 7px !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
}

/* Product name */
.ep-ps-name {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    line-height: 1.35 !important;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Vial size label — hidden since it's in the product name */
.ep-ps-size {
    display: none !important;
}

/* Section label override for product selector */
.ep-product-selector > .ep-section-label {
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}

/* Responsive */
@container (max-width: 500px) {
    .ep-ps-card { width: 130px !important; min-width: 130px !important; max-width: 130px !important; flex: 0 0 130px !important; }
    .ep-ps-img { width: 95px !important; height: 95px !important; }
    .ep-ps-tab { font-size: 11px !important; padding: 8px 14px !important; white-space: nowrap !important; }
    .ep-ps-tabs { gap: 6px !important; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto !important; overflow-y: hidden !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important; padding-bottom: 4px !important; }
    .ep-ps-tabs::-webkit-scrollbar { display: none !important; }
}
@media (max-width: 500px) {
    .ep-ps-tabs { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto !important; overflow-y: hidden !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important; padding-bottom: 4px !important; }
    .ep-ps-tabs::-webkit-scrollbar { display: none !important; }
    .ep-ps-tab { font-size: 11px !important; padding: 8px 14px !important; white-space: nowrap !important; flex-shrink: 0 !important; }
}
/* == DOSING INFO PANEL (single-row with mono icons) ============= */
/* Hidden by default — JS shows it when a product is selected */
.ep-dosing-panel {
    display: none;
    background: #f8f9fb !important;
    border: 1px solid #e2e6ec !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin-top: 20px !important;
    margin-bottom: 12px !important;
}
.ep-dosing-panel.ep-dosing-panel--visible {
    display: block;
}

.ep-dosing-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    font-size: 16px !important;
}
.ep-dosing-product-name {
    font-weight: 700 !important;
    color: #1a2a3a !important;
    font-size: 17px !important;
}
.ep-dosing-close {
    margin-left: auto !important;
    background: none !important;
    border: none !important;
    font-size: 22px !important;
    color: #aaa !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    font-family: inherit !important;
    display: none !important;
}
.ep-dosing-close:hover {
    color: #e74c3c !important;
}

/* Single-row grid */
.ep-dosing-grid {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}
.ep-dosing-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 18px !important;
}
.ep-dosing-item:first-child {
    padding-left: 0 !important;
}
.ep-dosing-item:last-child {
    padding-right: 0 !important;
}

/* Mono line icons */
.ep-dosing-icon-svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    color: #444 !important;
}

/* Text stack */
.ep-dosing-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}
.ep-dosing-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #888 !important;
    line-height: 1 !important;
}
.ep-dosing-value {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a2a3a !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Vertical dividers */
.ep-dosing-divider {
    width: 1px !important;
    height: 36px !important;
    background: #d8dde3 !important;
    flex-shrink: 0 !important;
}

/* Notes */
.ep-dosing-notes {
    margin: 16px 0 0 !important;
    padding: 10px 14px !important;
    background: rgba(0,0,0,.03) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    border-left: 3px solid #bbb !important;
}

/* Responsive: stack on small screens */
@container (max-width: 600px) {
    .ep-dosing-grid {
        flex-wrap: wrap !important;
        gap: 14px 0 !important;
    }
    .ep-dosing-item {
        flex: 0 0 50% !important;
        padding: 0 !important;
    }
    .ep-dosing-divider {
        display: none !important;
    }
}
@media (max-width: 600px) {
    .ep-dosing-grid {
        flex-wrap: wrap !important;
        gap: 14px 0 !important;
    }
    .ep-dosing-item {
        flex: 0 0 50% !important;
        padding: 0 !important;
    }
    .ep-dosing-divider {
        display: none !important;
    }
}
/* == OUT OF STOCK — disabled card =============================== */
.ep-ps-card[aria-disabled="true"] {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    filter: grayscale(0.4) !important;
}
.ep-ps-card[aria-disabled="true"]:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e8eaed !important;
}

/* == VALIDATION ERROR STATE ===================================== */
.ep-custom-input.ep-input--error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15) !important;
    animation: ep-shake 0.35s ease;
}
.ep-field-col.ep-field--error .ep-opt-circle {
    border-color: #e74c3c !important;
}
.ep-field-error-msg {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 5px;
    display: none;
    animation: ep-fade-in 0.2s ease;
}
.ep-field-col.ep-field--error .ep-field-error-msg {
    display: block;
}
@keyframes ep-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-4px); }
    60%      { transform: translateX(4px); }
}

/* == STEP NUMBERS =============================================== */
.ep-step-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 2px !important;
}
.ep-step-header .ep-section-label {
    margin-bottom: 0 !important;
}
.ep-step-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    background: #2979FF !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

/* == RESULT EXTRAS (Buy + Cost — clean) ========================== */
.ep-result-extras {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-top: 18px !important;
    padding-top: 18px !important;
    border-top: 1px solid #e2e8f0 !important;
    flex-wrap: wrap !important;
}
.ep-cost-per-dose {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    color: #555 !important;
}
.ep-cpd-label {
    font-weight: 600 !important;
}
.ep-cpd-value {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1a2a3a !important;
}
.ep-buy-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    background: #2979FF !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all .25s !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
.ep-buy-btn:hover {
    background: #4a9aff !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(41,121,255,.4) !important;
}
.ep-buy-btn svg {
    flex-shrink: 0 !important;
}
    line-height: 1.3;
}

/* -- Two-column grid (legacy) ------------------------------------ */
.ep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 36px;
    align-items: start;
}

@media (max-width: 768px) {
    .ep-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@container (max-width: 600px) {
    .ep-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* -- 3-column fields grid --------------------------------------- */
.ep-fields-3col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 20px 0 !important;
}
@media (max-width: 768px) {
    .ep-fields-3col { grid-template-columns: 1fr !important; }
}
@container (max-width: 700px) {
    .ep-fields-3col { grid-template-columns: 1fr !important; }
}
.ep-fields-3col .ep-field-col {
    padding: 16px !important;
    border: 1px solid #e8ecf0 !important;
    border-radius: 10px !important;
    background: #fafbfc !important;
}

/* Field header (icon + label) */
.ep-field-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}
.ep-field-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    color: #444 !important;
    margin-top: 1px !important;
}

/* Dose inputs row (buttons + unit select) */
.ep-dose-inputs {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
.ep-dose-inputs .ep-dose-unit-select {
    margin-top: 4px !important;
}
.ep-field-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}
.ep-field-col--unit {
    flex: 0 0 110px !important;
    align-self: flex-start !important;
    padding-top: 18px !important;
}
.ep-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Circle buttons */
.ep-opt-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    border: 1.5px solid #d0d8df !important;
    background: #fff !important;
    color: #334 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    outline: none !important;
}
.ep-opt-circle:hover {
    border-color: #5a9af5 !important;
    background: #f0f5ff !important;
}
.ep-opt-circle:focus-visible {
    box-shadow: 0 0 0 3px rgba(48, 113, 219, 0.3) !important;
}
.ep-opt-circle.active {
    border-color: #2979FF !important;
    background: #2979FF !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(41,121,255,0.3) !important;
}

/* Plus button */
.ep-opt-plus {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #999 !important;
    border-style: dashed !important;
}
.ep-opt-plus:hover {
    color: #5a9af5 !important;
    border-style: solid !important;
}
.ep-opt-plus.active {
    border-style: solid !important;
    color: #fff !important;
}

/* Unit badge (MG / ML next to heading) */
.ep-unit-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 8px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #5a9af5 !important;
    background: #eef4ff !important;
    border: 1px solid #d0e3f5 !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* MCG / MG toggle buttons */
.ep-unit-toggle {
    display: inline-flex !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    border: 1px solid #d0d8df !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}
.ep-unit-toggle-btn {
    padding: 3px 10px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    background: #fff !important;
    color: #888 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    outline: none !important;
}
.ep-unit-toggle-btn:hover {
    color: #555 !important;
    background: #f5f7fa !important;
}
.ep-unit-toggle-btn.active {
    background: #2979FF !important;
    color: #fff !important;
}

/* Options row for circle buttons */
.ep-fields-3col .ep-options-row {
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

/* Small custom input */
.ep-custom-sm {
    width: 70px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
}

/* Dose unit select (compact) */
.ep-dose-unit-select {
    width: 100%;
    padding: 5px 24px 5px 8px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 600;
    color: #334;
    background: #fff;
    border: 1.5px solid #d0d8df;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    margin-top: 0;
}
.ep-dose-unit-select:focus {
    border-color: #5a9af5;
    box-shadow: 0 0 0 3px rgba(48, 113, 219, 0.15);
}

/* Responsive: wrap to 2x2 on small screens */
@media (max-width: 768px) {
    .ep-fields-row {
        flex-wrap: wrap;
    }
    .ep-field-col {
        flex: 0 0 calc(50% - 8px);
    }
    .ep-field-col--unit {
        flex: 0 0 calc(50% - 8px);
    }
}
@media (max-width: 480px) {
    .ep-field-col {
        flex: 0 0 100%;
    }
    .ep-field-col--unit {
        flex: 0 0 100%;
    }
}
@container (max-width: 600px) {
    .ep-fields-row {
        flex-wrap: wrap;
    }
    .ep-field-col {
        flex: 0 0 calc(50% - 8px);
    }
    .ep-field-col--unit {
        flex: 0 0 calc(50% - 8px);
    }
}

/* -- Result cards (4 metric cards — white/clean) ----------------- */
.ep-result-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .ep-result-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
@container (max-width: 600px) {
    .ep-result-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
@media (max-width: 400px) {
    .ep-result-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}
.ep-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px;
    background: #e8f2ff;
    border: 1px solid #b8d4f8;
    border-radius: 12px;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.ep-result-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2979FF;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}
.ep-result-card-value {
    font-size: 13px;
    color: #1a2a3a;
    line-height: 1;
    overflow: hidden;
    max-width: 100%;
}
.ep-result-card-value strong {
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 800;
    color: #1a2a3a;
    letter-spacing: -0.5px;
}
.ep-result-card-value small {
    font-size: 12px;
    font-weight: 500;
    color: #7a8ea0;
}
.ep-result-card-sub {
    font-size: 11px;
    color: #8899aa;
    margin-top: 2px;
}

/* -- Syringe visual (U-100 only — clean) ------------------------ */
.ep-syringe-visual {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 14px 16px;
    background: #f5f7fa;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.ep-syringe-visual .ep-ruler-outer {
    flex: 1;
    background: #fff;
    border-color: #d8e0e8;
}
.ep-ruler-label-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 90px;
}
.ep-ruler-label {
    font-size: 20px;
    font-weight: 800;
    color: #2979FF;
}
.ep-ruler-label-sub {
    font-size: 11px;
    color: #7a8ea0;
}

/* -- Section labels ---------------------------------------------- */
.ep-section-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px;
    line-height: 1.4;
}

/* -- Left col: syringe buttons ----------------------------------- */
.ep-col-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ep-col-left .ep-section-label {
    margin-bottom: 10px;
}

.ep-syringe-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px solid #d8dfe5;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 10px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

.ep-syringe-btn:last-child { margin-bottom: 0; }

.ep-syringe-btn:hover {
    border-color: #aac;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.ep-syringe-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(48, 113, 219, 0.3);
    border-color: #5a9af5;
}

.ep-syringe-btn.active {
    border-color: #5a9af5;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
    box-shadow: 0 0 0 2px rgba(48, 113, 219, 0.2), 0 4px 15px rgba(48, 113, 219, 0.1);
    transform: translateY(-1px);
}

.ep-syringe-vol-label {
    font-size: 15px;
    font-weight: 700;
    color: #334;
    min-width: 56px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ep-syringe-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.ep-syringe-svg {
    width: 100%;
    max-width: 340px;
    height: 52px;
}



/* -- Syringe fill animation -------------------------------------- */
.ep-syringe-fill {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), fill 0.3s ease;
}

.ep-syringe-btn:hover .ep-syringe-fill {
    transform: scaleX(1);
    fill: rgba(48, 113, 219, 0.25);
}

.ep-syringe-btn.active .ep-syringe-fill {
    transform: scaleX(1);
    fill: rgba(48, 113, 219, 0.4);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), fill 0.3s ease;
}

/* -- Right col --------------------------------------------------- */
.ep-col-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid #e8ecf0;
    padding-left: 28px;
}

@media (max-width: 768px) {
    .ep-col-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e8ecf0;
        padding-top: 20px;
    }
}

@container (max-width: 600px) {
    .ep-col-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e8ecf0;
        padding-top: 20px;
    }
}

.ep-right-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f3f6;
}

.ep-right-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ep-right-row--no-icon .ep-right-options {
    padding-left: 0;
}

.ep-right-icon {
    flex-shrink: 0;
    width: 52px;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.ep-vial-svg {
    width: 44px;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.14));
}

.ep-right-options {
    flex: 1;
    min-width: 0;
}

/* -- Option buttons ---------------------------------------------- */
.ep-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-opt-btn {
    padding: 7px 14px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 400;
    color: #445;
    background: #fff;
    border: 1.5px solid #d0d8df;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    outline: none;
    text-transform: uppercase;
}

.ep-opt-btn:hover {
    border-color: #aac;
    background: #f8fbff;
}

.ep-opt-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(48, 113, 219, 0.3);
    border-color: #5a9af5;
}

.ep-opt-btn.active {
    border-color: #5a9af5;
    color: #5a9af5;
    background: #f0f5ff;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(48, 113, 219, 0.15);
}

/* -- Custom input ------------------------------------------------ */
.ep-custom-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    animation: ep-slide-in 0.2s ease;
}

.ep-custom-input {
    width: 100px;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    border: 1.5px solid #b0c8d8;
    border-radius: 5px;
    outline: none;
    color: #334;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
}

.ep-custom-input::-webkit-outer-spin-button,
.ep-custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ep-custom-input:focus {
    border-color: #7ab3ff;
    box-shadow: 0 0 0 3px rgba(48, 113, 219, 0.15);
}

.ep-unit-lbl {
    font-size: 12px;
    color: #789;
    font-weight: 500;
    text-transform: uppercase;
}

/* -- Result panel (white/clean) ---------------------------------- */
.ep-result-panel,
.ep-calc-wrap .ep-result-panel,
.elementor-widget .ep-calc-wrap .ep-result-panel,
.elementor-element .ep-result-panel {
    margin-top: 24px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e6ec !important;
    border-radius: 14px !important;
    padding: 28px 28px 24px !important;
    animation: ep-fade-in 0.35s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}

@media (max-width: 767px) {
    .ep-result-panel,
    .ep-calc-wrap .ep-result-panel {
        padding: 16px 12px 12px !important;
        margin-top: 16px !important;
        border-radius: 10px !important;
    }
    .ep-cta-section {
        margin-top: 12px !important;
    }
    .ep-result-extras {
        margin-top: 12px !important;
        padding-top: 12px !important;
    }
}

/* -- Ruler (clean) ----------------------------------------------- */
.ep-ruler-outer {
    position: relative;
    background: #fff;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    overflow: hidden;
    user-select: none;
}

.ep-ruler-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #2979FF;
    width: 0%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    z-index: 1;
    border-radius: 6px 0 0 6px;
    opacity: 0.2;
}

.ep-ruler-img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

/* Ticks removed - using ruler images */



.ep-tick:first-child { border-left: none; }

.ep-tick--5 {
    height: 14px;
    margin-top: 2px;
}

.ep-tick--10 {
    height: 20px;
    margin-top: 0;
    border-left-color: rgba(0,0,0,0.4);
}



.ep-ruler-lbl {
    position: absolute;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(0,0,0,0.65);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    line-height: 1;
}

/* -- Warning ----------------------------------------------------- */
.ep-warn-text {
    margin: 0;
    font-size: 14px;
    color: #c0392b;
    line-height: 1.5;
}

.ep-warn-icon {
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

/* -- Disclaimer -------------------------------------------------- */
.ep-disclaimer {
    margin: 14px 0 0;
    font-size: 11px;
    color: #9aabba;
    text-align: center;
    line-height: 1.5;
    font-style: italic;
}

/* -- Animations -------------------------------------------------- */
@keyframes ep-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ep-slide-in {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* -- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ep-ruler-fill {
        transition: none;
    }
    .ep-result-panel,
    .ep-custom-wrap {
        animation: none;
    }
    .ep-syringe-btn,
    .ep-opt-btn,
    .ep-custom-input {
        transition: none;
    }
}

/* -- Dark mode support (optional) -------------------------------- */
@media (prefers-color-scheme: dark) {
    .ep-calc-wrap {
        background-color: #1a1f2e;
        border-color: #2d3548;
        color: #cdd6e0;
    }
    .ep-section-label { color: #cdd6e0; }
    .ep-opt-btn {
        background: #1e2436;
        border-color: #2d3548;
        color: #b0bec5;
    }
    .ep-opt-btn:hover {
        background: #252b3d;
        border-color: #3d4a60;
    }
    .ep-opt-btn.active {
        background: #0d1a2e;
        border-color: #5a9af5;
        color: #7ab3ff;
    }
    .ep-field-block {
        border-bottom-color: #2d3548;
    }
    .ep-custom-input,
    .ep-dose-unit-select {
        background: #1e2436;
        border-color: #3d4a60;
        color: #cdd6e0;
    }
    .ep-result-panel {
        background: #151a28;
        border-color: #2d3548;
    }
    .ep-result-card {
        background: rgba(48, 113, 219, 0.08);
        border-color: rgba(48, 113, 219, 0.2);
    }
    .ep-result-card-value strong { color: #d4b85c; }
    .ep-result-card-value small { color: #8899aa; }
    .ep-ruler-outer {
        background: #1e2436;
        border-color: #2d3548;
    }
    .ep-ruler-label { color: #d4b85c; }
    .ep-unit-select-label { color: #8899aa; }
}

/* -- Print ------------------------------------------------------- */
@media print {
    .ep-calc-wrap {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    .ep-ruler-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .ep-syringe-btn.active,
    .ep-opt-btn.active {
        border-width: 2px;
    }
}


/* ── CTA Actions Section ──────────────────────────────────────── */
.ep-cta-section {
    margin-top: 20px;
    animation: ep-fade-in 0.4s ease 0.15s both;
}

.ep-cta-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

@media (max-width: 768px) {
    .ep-cta-card {
        flex: 0 0 calc(50% - 4px) !important;
    }
}
@media (max-width: 480px) {
    .ep-cta-card {
        flex: 0 0 100% !important;
    }
}

/* Card base */
.ep-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: #fff;
    border: 1px solid #e2e8ec;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 0;
}
.ep-cta-card:hover {
    border-color: #3071DB;
}
.ep-cta-card.ep-cta--expanded {
    flex: 1 0 100% !important;
    cursor: default;
}

/* Icon */
.ep-cta-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    color: #555;
    flex-shrink: 0;
}
.ep-cta-icon svg {
    width: 28px;
    height: 28px;
}
.ep-cta-icon--wa {
    background: none;
    color: #25d366;
}
.ep-cta-icon--shop {
    background: none;
    color: #e67e22;
}

/* Body text */
.ep-cta-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ep-cta-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}
.ep-cta-desc {
    font-size: 11px;
    color: #8899aa;
    line-height: 1.3;
}

/* Close button for expanded CTA cards */
.ep-cta-close {
    position: absolute !important;
    top: 6px !important;
    right: 8px !important;
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    color: #999 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    font-family: inherit !important;
    display: none !important;
}
.ep-cta-close:hover {
    color: #e74c3c !important;
}
.ep-cta--expanded .ep-cta-close {
    display: block !important;
}

/* Buttons */
.ep-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: 1.5px solid transparent;
}
.ep-cta-btn--primary {
    background: #3071DB;
    color: #fff;
    border-color: #3071DB;
}
.ep-cta-btn--primary:hover {
    background: #2560c4;
    box-shadow: 0 2px 8px rgba(48,113,219,0.3);
}
.ep-cta-btn--outline {
    background: transparent;
    color: #3071DB;
    border-color: #3071DB;
}
.ep-cta-btn--outline:hover {
    background: #3071DB;
    color: #fff;
}

/* Email form */
.ep-cta-email-form {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    animation: ep-slide-in 0.2s ease;
}
.ep-cta-email-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    border: 1.5px solid #d0d8df;
    border-radius: 6px;
    outline: none;
    color: #334;
    min-width: 0;
}
.ep-cta-email-input:focus {
    border-color: #3071DB;
}

/* Contact form */
.ep-cta-contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    animation: ep-slide-in 0.2s ease;
}
.ep-cta-contact-form input,
.ep-cta-contact-form textarea {
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    border: 1.5px solid #d0d8df;
    border-radius: 6px;
    outline: none;
    color: #334;
    resize: vertical;
}
.ep-cta-contact-form input:focus,
.ep-cta-contact-form textarea:focus {
    border-color: #3071DB;
}

/* Success states */
.ep-cta-email-success,
.ep-cta-contact-success {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    animation: ep-fade-in 0.3s ease;
}
.ep-cta-email-success svg,
.ep-cta-contact-success svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.ep-cta-email-success span,
.ep-cta-contact-success span {
    font-size: 13px;
    color: #27ae60;
    font-weight: 500;
}

/* QR display */
.ep-cta-qr-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    animation: ep-fade-in 0.3s ease;
}
.ep-qr-canvas {
    border: 1px solid #e2e8ec;
    border-radius: 6px;
}

/* Copy feedback */
.ep-cta-card.ep-cta--copied .ep-cta-title {
    color: #27ae60;
}
.ep-cta-card.ep-cta--copied .ep-cta-icon {
    background: #e8f5e9;
    color: #27ae60;
}

/* Spinner */
.ep-cta-btn.ep-loading {
    pointer-events: none;
    opacity: 0.7;
}
.ep-cta-btn.ep-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 8px;
    animation: ep-spin 0.6s linear infinite;
}
@keyframes ep-spin {
    to { transform: rotate(360deg); }
}

/* ── Doses per vial ──────────────────────────────────────────── */
.ep-result-doses {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-left: 3px solid #7ab3ff;
    background: #f0f5ff;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #445;
    line-height: 1.5;
}
.ep-result-doses strong {
    color: #3071DB;
    font-weight: 700;
}

/* ── Print styles ────────────────────────────────────────────── */
@media print {
    .ep-cta-section { display: none !important; }
    .ep-calc-wrap { border: none; padding: 0; }
}
/* ============================================================
   WINDOWS FIX: Force black text + 20% wider option boxes
   Issue: Windows forced-colors / dark-mode override causes
   white text on light backgrounds on some Windows PCs.
   Fix: opt out of forced-color-adjust, lock color-scheme to
   light, and use explicit black for all option/result text.
   Added: 2026-04-08
   ============================================================ */

/* Lock the entire calculator to light-mode rendering.
   Prevents Chrome/Edge on Windows from applying dark-mode
   color overrides that turn dark text white. */
.ep-calc-wrap {
    color-scheme: light !important;
    forced-color-adjust: none !important;
}

/* Circle option buttons — 20% wider (42px → 50px) + black text */
.ep-opt-circle {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    color: #111111 !important;
    forced-color-adjust: none !important;
}
.ep-opt-circle.active {
    color: #ffffff !important;
}

/* Rectangular option buttons — 20% more horizontal padding + black text */
.ep-opt-btn {
    padding: 7px 17px !important;
    color: #111111 !important;
    forced-color-adjust: none !important;
}
.ep-opt-btn.active {
    color: #2979FF !important;
}

/* Result cards — ensure black text in all rendering modes */
.ep-result-card,
.ep-result-card-label,
.ep-result-card-value,
.ep-result-card-value strong,
.ep-result-card-sub {
    forced-color-adjust: none !important;
}
.ep-result-card-value strong {
    color: #1a2a3a !important;
    -webkit-text-fill-color: #1a2a3a !important;
}
.ep-result-card-value small {
    color: #7a8ea0 !important;
    -webkit-text-fill-color: #7a8ea0 !important;
}

/* Windows High Contrast Mode — fallback to system black/white */
@media (forced-colors: active) {
    .ep-calc-wrap,
    .ep-opt-circle,
    .ep-opt-btn,
    .ep-result-card,
    .ep-result-card-value strong {
        forced-color-adjust: none !important;
        color: ButtonText !important;
        background: ButtonFace !important;
        border-color: ButtonBorder !important;
    }
    .ep-opt-circle.active,
    .ep-opt-btn.active {
        color: HighlightText !important;
        background: Highlight !important;
    }
}

/* ============================================================
   PAGE-LEVEL GAP FIX — Peptide Calculator page
   Targets the empty widget and oversized container spacing
   that creates a blank gap between calculator and FAQ on mobile.
   ============================================================ */

/* Hide the empty text-editor widget (id 02f2a3e) */
[data-id="02f2a3e"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove Elementor's default min-height on all containers on this page */
.elementor-element[data-id="78cf60c"],
.elementor-element[data-id="d8d083f"],
.elementor-element[data-id="ed4ee52"] {
    min-height: 0 !important;
}

/* Reduce FAQ heading top padding on mobile from 6% to 2% */
@media (max-width: 767px) {
    .elementor-element[data-id="58ef793"] {
        padding-top: 2% !important;
    }
    /* Ensure no extra bottom padding on calculator container */
    .elementor-element[data-id="78cf60c"] {
        padding-bottom: 0 !important;
    }
    /* Tighten top container bottom padding */
    .elementor-element[data-id="ed4ee52"] {
        padding-bottom: 1% !important;
    }
}

/* ============================================================
   THEME OVERRIDE — Remove WoodMart gradient on result panel
   The theme injects a gray gradient on .ep-result-ok via
   body.elementor-page-101318 .ep-result-ok selector.
   Force white everywhere.
   ============================================================ */
.ep-result-ok,
.ep-calc-wrap .ep-result-ok,
body .ep-result-ok,
body.elementor-page-101318 .ep-result-ok {
    background: white !important;
    background-color: white !important;
    border: 0px !important;
    box-shadow: none !important;
}

/* ============================================================
   MOBILE PADDING FIX — Remove extra white space in result panel
   Uses maximum specificity to beat the 4-selector !important rule
   ============================================================ */
@media (max-width: 767px) {
    body .ep-calc-wrap .ep-result-panel,
    body.elementor-page-101318 .ep-calc-wrap .ep-result-panel {
        padding: 12px 10px 8px !important;
        margin-top: 12px !important;
    }
    body .ep-calc-wrap .ep-result-extras,
    body.elementor-page-101318 .ep-calc-wrap .ep-result-extras {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
    body .ep-calc-wrap .ep-syringe-visual {
        margin-top: 6px !important;
        padding: 10px 12px !important;
    }
    body .ep-calc-wrap .ep-result-cards {
        gap: 6px !important;
        margin-bottom: 10px !important;
    }
}

/* ============================================================
   MOBILE UX TOP 5 IMPROVEMENTS
   1. Touch-friendly 44px minimum targets
   2. Single column layout
   3. Sticky results bar
   4. Better input sizing
   5. Stepper/button improvements
   ============================================================ */

@media (max-width: 767px) {

    /* ── 1. TOUCH-FRIENDLY 44px MINIMUM TARGETS ─────────────── */
    .ep-opt-circle {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        font-size: 14px !important;
    }
    .ep-opt-btn {
        min-height: 44px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
    }
    .ep-unit-toggle-btn {
        min-height: 36px !important;
        padding: 6px 14px !important;
        font-size: 11px !important;
    }
    .ep-custom-input {
        min-height: 44px !important;
        font-size: 16px !important; /* prevents iOS zoom on focus */
        padding: 10px 12px !important;
    }
    .ep-ps-tab {
        min-height: 40px !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
    }
    .ep-buy-btn {
        min-height: 52px !important;
        width: 100% !important;
        justify-content: center !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }
    .ep-cta-card {
        min-height: 80px !important;
    }

    /* ── 2. SINGLE COLUMN LAYOUT ─────────────────────────────── */
    .ep-fields-3col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 12px 0 !important;
    }
    .ep-fields-3col .ep-field-col {
        padding: 14px !important;
    }
    .ep-fields-3col .ep-options-row {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .ep-result-extras {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .ep-cost-per-dose {
        justify-content: center !important;
    }
    .ep-cta-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* ── 3. STICKY RESULTS BAR ───────────────────────────────── */
    .ep-sticky-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 60px !important; /* above mobile nav */
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #1a2a3a !important;
        color: #fff !important;
        padding: 10px 16px !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.18) !important;
        gap: 12px !important;
        transform: translateY(100px);
        transition: transform 0.3s ease !important;
        border-radius: 16px 16px 0 0 !important;
    }
    .ep-sticky-bar.ep-sticky-bar--visible {
        transform: translateY(0) !important;
    }
    .ep-sticky-bar-result {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }
    .ep-sticky-bar-label {
        font-size: 10px !important;
        color: rgba(255,255,255,0.6) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    .ep-sticky-bar-value {
        font-size: 20px !important;
        font-weight: 800 !important;
        color: #fff !important;
        line-height: 1 !important;
    }
    .ep-sticky-bar-btn {
        background: #2979FF !important;
        color: #fff !important;
        border: none !important;
        border-radius: 10px !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        min-height: 44px !important;
    }
    /* Add bottom padding to page so sticky bar doesn't cover content */
    .ep-calc-wrap {
        padding-bottom: 80px !important;
    }
}

/* Hide sticky bar on desktop */
@media (min-width: 768px) {
    .ep-sticky-bar { display: none !important; }
}

/* ============================================================
   STICKY BAR WITH SCALE — replaces old sticky bar styles
   ============================================================ */
@media (max-width: 767px) {
    .ep-sticky-bar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        bottom: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #1a2a3a !important;
        color: #fff !important;
        padding: 10px 16px 8px !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.25) !important;
        gap: 8px !important;
        transform: translateY(140px) !important;
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1) !important;
        border-radius: 16px 16px 0 0 !important;
    }
    .ep-sticky-bar.ep-sticky-bar--visible {
        transform: translateY(0) !important;
    }
    .ep-sticky-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    .ep-sticky-stats {
        display: flex !important;
        gap: 16px !important;
        align-items: center !important;
    }
    .ep-sticky-bar-result {
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important;
    }
    .ep-sticky-bar-label {
        font-size: 9px !important;
        color: rgba(255,255,255,0.55) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    .ep-sticky-bar-value {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #fff !important;
        line-height: 1 !important;
    }
    .ep-sticky-bar-btn {
        background: #2979FF !important;
        color: #fff !important;
        border: none !important;
        border-radius: 10px !important;
        padding: 8px 18px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
    }
    /* Scale */
    .ep-sticky-scale {
        width: 100% !important;
        margin-top: 32px !important;
    }
    .ep-sticky-scale-track {
        position: relative !important;
        height: 18px !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 4px !important;
    }
    .ep-sticky-scale-fill {
        position: absolute !important;
        top: 0 !important; left: 0 !important;
        height: 100% !important;
        width: 0%;
        background: linear-gradient(90deg, #2979FF, #00c6ff) !important;
        border-radius: 4px !important;
        opacity: 0.85 !important;
    }
    .ep-sticky-scale-needle {
        position: absolute !important;
        top: -4px !important;
        left: 0%;
        width: 2px !important;
        height: 26px !important;
        background: #fff !important;
        border-radius: 2px !important;
        box-shadow: 0 0 6px rgba(255,255,255,0.7) !important;
        z-index: 2 !important;
    }
    .ep-sticky-scale-ticks {
        position: absolute !important;
        top: 0 !important; left: 0 !important; right: 0 !important;
        height: 100% !important;
        pointer-events: none !important;
    }
    .ep-sticky-tick {
        position: absolute !important;
        top: 0 !important;
        width: 1px !important;
        height: 7px !important;
        background: rgba(255,255,255,0.25) !important;
        transform: translateX(-50%) !important;
    }
    .ep-sticky-tick--major {
        height: 100% !important;
        background: rgba(255,255,255,0.5) !important;
    }
    .ep-sticky-scale-labels {
        position: relative !important;
        height: 14px !important;
        margin-top: 2px !important;
    }
    .ep-sticky-tick-lbl {
        position: absolute !important;
        font-size: 8px !important;
        color: rgba(255,255,255,0.45) !important;
        transform: translateX(-50%) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
    .ep-calc-wrap {
        padding-bottom: 120px !important;
    }
}
@media (min-width: 768px) {
    .ep-sticky-bar { display: none !important; }
}

/* ============================================================
   SCALE VISUAL UPGRADE — Bigger, bolder, animated
   ============================================================ */
@media (max-width: 767px) {
    .ep-sticky-scale-track {
        height: 32px !important;
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        border-radius: 8px !important;
        overflow: visible !important;
    }
    .ep-sticky-scale-fill {
        background: linear-gradient(90deg, #0040cc 0%, #2979FF 60%, #00c6ff 100%) !important;
        border-radius: 7px !important;
        transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        box-shadow: 0 0 14px rgba(41,121,255,0.7), inset 0 1px 0 rgba(255,255,255,0.2) !important;
        height: 100% !important;
    }
    .ep-sticky-scale-needle {
        width: 3px !important;
        height: 50px !important;
        top: -9px !important;
        border-radius: 3px !important;
        background: #ffffff !important;
        box-shadow: 0 0 8px rgba(255,255,255,1), 0 0 20px rgba(255,255,255,0.6) !important;
        transition: left 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        z-index: 10 !important;
    }
    .ep-sticky-scale-needle::before {
        content: attr(data-iu) !important;
        position: absolute !important;
        top: -20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: #fff !important;
        color: #1a2a3a !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
        line-height: 1.4 !important;
    }
    .ep-sticky-scale-needle::after {
        content: '' !important;
        position: absolute !important;
        bottom: -5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-left: 4px solid transparent !important;
        border-right: 4px solid transparent !important;
        border-top: 5px solid #fff !important;
    }
    .ep-sticky-tick {
        bottom: 0 !important;
        top: auto !important;
        height: 10px !important;
        background: rgba(255,255,255,0.25) !important;
    }
    .ep-sticky-tick--major {
        height: 100% !important;
        background: rgba(255,255,255,0.12) !important;
    }
    .ep-sticky-scale-labels {
        margin-top: 6px !important;
        height: 16px !important;
    }
    .ep-sticky-tick-lbl {
        font-size: 9px !important;
        font-weight: 600 !important;
        color: rgba(255,255,255,0.55) !important;
    }
}

/* SCALE: mobile uses same % layout as base — 900px scroll removed */

/* Needle label — real DOM element, not ::before */
@media (max-width: 767px) {
    .ep-sticky-scale-needle::before,
    .ep-sticky-scale-needle::after { display: none !important; content: none !important; }
    .ep-sticky-needle-lbl {
        position: absolute !important;
        top: -24px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: #ffffff !important;
        color: #1a2a3a !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        padding: 3px 7px !important;
        border-radius: 5px !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
        line-height: 1.4 !important;
        pointer-events: none !important;
        z-index: 20 !important;
    }
    /* Triangle tip below label */
    .ep-sticky-needle-lbl::after {
        content: '' !important;
        position: absolute !important;
        bottom: -5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-left: 4px solid transparent !important;
        border-right: 4px solid transparent !important;
        border-top: 5px solid #ffffff !important;
    }
}

/* == ELEMENTOR FLEX-HEIGHT GAP FIX ============================
   Root cause: .e-con-inner inside section 78cf60c has
   height:100% + flex:1 1 auto — a circular reference in Chrome's
   flex layout engine inflates the section from ~1980px → 3637px,
   creating a ~1660px phantom gap below the calculator.
   Fix: force the inner wrapper to block layout so height resolves
   from content rather than the flex container's computed size.
   ============================================================== */
.elementor-element-78cf60c > .e-con-inner {
    display: block !important;
    height: auto !important;
}

/* == CTA MOBILE IMPROVEMENTS v3.5.4 == */
@media (max-width: 767px) {
    .ep-cta-email-form { display: flex !important; flex-direction: column !important; gap: 8px !important; }
    .ep-cta-email-input { width: 100% !important; min-height: 44px !important; font-size: 16px !important; box-sizing: border-box !important; }
    .ep-cta-email-form .ep-cta-btn { width: 100% !important; min-height: 44px !important; justify-content: center !important; }
}
.ep-cta-grid .ep-cta--expanded { grid-column: 1 / -1 !important; }
.ep-cta-close { padding: 10px !important; margin: -10px -10px -10px auto !important; min-width: 44px !important; min-height: 44px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; }
.ep-cta--copied { background-color: #e6f9ef !important; border-color: #27ae60 !important; transition: background-color 0.2s ease, border-color 0.2s ease !important; }
.ep-cta--copied .ep-cta-icon { color: #27ae60 !important; filter: none !important; }
.ep-cta--copied .ep-cta-title { color: #27ae60 !important; }
.ep-qr-print { margin-top: 6px !important; }
