* {
  box-sizing: border-box;
}
a {
    text-decoration: none;
}
/*----lightbox-----*/
body.lightbox-active {
    overflow: hidden !important;
}
body.lightbox-active .cl-site-header, body.lightbox-active .cart_open  {
    z-index: -1;
}
/*----------*/
/* Prevent horizontal overflow from long unbreakable content
   (encoded HTML entities, long URLs, unspaced text) */
div {
    overflow-wrap: break-word;
    word-break: break-word;
}
/*----------*/
.cl-hide { display: none !important; }
/* SVG icon wrapper — every icon rendered by IconsManagerSelectorFR is
   wrapped in <span class="cl-icon"><svg>...</svg></span>. The wrapper
   inline-flexes the SVG so it centers cleanly next to text without
   the inline-baseline drop. line-height:1 prevents the wrapper from
   inheriting larger line-heights that would add phantom space.
   Note: a previous version had `padding-top: 2px` here — that caused
   visible vertical offset in tight header layouts and was removed. */
.cl-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.cl-icon svg {
    height: 1em !important;
    width: 1em !important;
    display: block;
    vertical-align: middle !important;
}
/*---------*/
/* For SOLID icons (like Font Awesome). This makes them inherit text color. */
.cl-icon svg[fill="currentColor"] {
    stroke: none; /* Ensure no unwanted outline appears */
}

/* For OUTLINE icons (like the one you provided). */
.cl-icon svg[fill="none"] {
    fill: none; /* Redundant but safe */
    stroke: currentColor; /* THIS IS THE MAGIC: Inherits text color for the outline */
    stroke-width: 2px; /* A good default thickness. Adjust if needed. */
    stroke-linecap: round; /* Makes line ends look nice */
    stroke-linejoin: round; /* Makes line corners look nice */
}

/*----------------------------*/
/*------ todo this code should be optimized---------*/

.single h1.entry-title {
    display: none !important;
}
.elementor-button { cursor: pointer;}
.entry-meta { display: none;}

/*----blocks editor---*/
body > .wp-site-blocks {
    padding: 0 !important;
}
.wp-site-blocks main {
    padding-top: 0 !important;
}
.wp-site-blocks:has(.cl-header-container) {
    margin-block-start: 0 !important;
 }
 .cl-footer-container {
     width: 100%;display: flex;flex-direction: column
 }
/*-----astra theme------*/
body #primary {
    padding-top: 0px;
    margin-top: 0;
}
.single-product #primary ,
.single-product .type-product {
    padding-top: 0px;
    padding: 0;
}
.ast-container #content, main#content {
    width: 100%;
    max-width: 100%;
}
.site-content .ast-container{
    flex-direction: column;
}
.single-product article {
    background: transparent !important;
}
/*--------------------------*/

/*------notification toast---------*/
.cl-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100000000;
    text-align: left;
    max-width: 320px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.cl-notification.cl-toast-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cl-error-response {
    background-color: #fff5f5;
    color: #dc3545;
    border: 1px solid #fecdd3;
}
.cl-success-response {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
/* Image-mode toast — flex row [thumbnail | text]. Triggered by the JS adding
   .cl-notification-with-image when showNotification() is called with an
   imageUrl arg. Without that class the toast keeps its legacy text-only
   layout (just .cl-notification with text content). */
.cl-notification.cl-notification-with-image {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    max-width: 360px;
}
.cl-notification.cl-notification-with-image .cl-notification-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.cl-notification.cl-notification-with-image .cl-notification-content {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

/*-------------------*/
.cl-custom-block {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}
.cl-custom-block .wp-block-group, .cl-custom-block .alignfull {
    max-width: 100% !important;
    margin-inline: 0 !important;
    width: auto !important;
}

.cl-editor-content img {
    max-width: 100%;
    height: auto;
}
.cl-editor-content ul {
    list-style: initial;
    padding: 0 5px 0px 5px;
    margin: 0 15px 0px 15px;
}
.cl-editor-content li {
    line-height: 22px;
    margin-bottom: 0;
}
.cl-editor-content p {
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 21px;
}


/*----global button------*/
button {
    cursor: pointer;
}
.cl-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    border-width: 2px;
    border-style: solid;
    border-radius: 6px;
    padding: 4px 12px;
    min-height: 32px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cl-button:active {
    transform: translateY(1px);
    box-shadow: none;
}

.cl-primary-btn {
    background-color: #fff;
    border-color: #2196F3;
    color: #2196F3;
}

.cl-primary-btn:hover {
    background-color: #2196F3;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.cl-danger-btn {
    background-color: #d63638;
    border-color: #d63638;
    color: white;
}

.cl-danger-btn:hover {
    background-color: #b32d2e;
    border-color: #b32d2e;
    box-shadow: 0 2px 8px rgba(214, 54, 56, 0.3);
}
/*------buttons-------*/

/*--dont use float left because that can triggere a conflict with the next landing page block if they not also have the flost left -*/
.cl-product-container, .cl-checkout-container {
    display: flex;
    column-gap: 15px;
    width: 100%;
    margin: auto;
    margin-top: 15px;
}
.cl-product-container img {
    max-width: 100%;
    height: auto;
}

div[cl-block] {
    width: 100%;
}

/* Override the global div[cl-block]{width:100%} for inner header/footer
   elements that need flex-default sizing. Adding cl-block to these
   inner elements is required for iframe-click routing to their
   respective admin tabs; this override stops the global rule from
   collapsing the flex layouts.
   - Header logo sits flex-aligned next to nav.main-nav and nav.end-menu
     (nav siblings escape the global rule naturally — they're <nav>).
   - Footer branding column + menus column are flex children of
     .cl-footer-main; both need flex-default width to stay side-by-side. */
[cl-compo="header"] [cl-block="logo"],
[cl-compo="footer"] [cl-block="branding"],
[cl-compo="footer"] [cl-block="menus"] {
    width: auto;
}

.cl-checkout-sections {
    /*float: left; this i creating bug in the desktop version so the shipping is not clicked*/
    width: 100%;
    padding-bottom: 20px;
}
.cl-checkout-sections > div:last-child {
    margin-bottom: 0px;
}
.checkout-desktop-container #cl_summary {
    margin-top: 0px !important;
}
/*-----------*/

/*----- prices -----*/
.cl-regular-price {
    text-decoration: line-through;
}
/*---------- toggle block -------------*/
.cl_toggle_block[is_open="no"] .cl_toggle_body {
    display: none;
}
.cl_toggle_block[is_open="no"] *[show_in_open], .cl_toggle_block[is_open="yes"] *[show_in_close] {
    display: none;
}
.cl_toggle_header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    cursor: pointer !important;
    justify-content: space-between;
    gap: 5px;
}
/*----the title container-----*/
.cl_toggle_header div.toggle-title {
    display: flex;
    align-items: center;
    column-gap: 3px;
}
.cl_toggle_header div.toggle-close {
    display: flex;
    column-gap: 3px;
    align-items: center;
}
.cl_toggle_preview {
    cursor: pointer;
    width: 100%; flex-grow: 1;display: flex; justify-content: center;
}

.cl_toggle_block .toggle-close .cl-icon {
    cursor: pointer;
    display: none;
}
.cl_toggle_block[is_open="no"] .cl-icon-open {
    display: inline-flex;
}
.cl_toggle_block[is_open="yes"] .cl-icon-close {
    display: inline-flex;
    animation-name: shakeMe;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
/*---------- End toggle block -------------*/

/* --- Sticky Header Styles (IntersectionObserver Method) --- */
.cl-header-placeholder {
    display: none;
}

.cl_can_be_sticky.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000000;
    animation: slideDown 0.3s ease-in-out;
}

.hide_in_sticky {
    /* You can add transition here for smoother hiding if needed */
}

.is-sticky + .cl-header-placeholder {
    display: block;
}

.is-sticky .hide_in_sticky {
    display: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
 
/*--------- End Sticky system handler---------*/

@keyframes shakeMe {
    2%, 18% {
        transform: translate3d(-5px, 0, 0);
    }

    4%, 16% {
        transform: translate3d(5px, 0, 0);
    }

    6%, 10%, 14% {
        transform: translate3d(-5px, 0, 0);
    }

    8%, 12% {
        transform: translate3d(5px, 0, 0);
    }
    
    18.1% {
        transform: translate3d(0px, 0, 0);
    }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
   .cl-btn-loading — frontend AJAX-button loading utility
   ============================================================
   Apply this class to any button (or interactive element) for the
   duration of an AJAX request. CSS-only — no markup needed inside
   the button. Disables clicks via pointer-events:none, fades the
   element slightly, and renders a small spinner via ::after next
   to the button text.

   Usage pattern (frontend JS):
     $btn.addClass('cl-btn-loading');
     FrontendFn_cl.sendAjaxRequest(formData, onSuccess, function (response) {
         $btn.removeClass('cl-btn-loading');
         onError(response);
     });
   public.js auto-removes the class on every AJAX success, so most
   call sites only need to clear it explicitly in their error path.

   Reuses @keyframes spin defined just above (canonical home —
   public.css is enqueued unconditionally on every public page).
   ============================================================ */
.cl-btn-loading {
    pointer-events: none;
    opacity: 0.7;
}
.cl-btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}
.cl_shake_animation {
    animation-name: shakeMe;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/*-------Modal system----------*/

.cl_modal {
    z-index: 100000001;
    position: fixed;
    overflow: auto;
    background-color: #00000087;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    max-height: 100%;
}
.cl_modal_header {
    display: flex;
    gap: 10px;
    z-index: 10;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    position: sticky;
    top: 0;
    background: #fff;
    color: #000;
}
.cl_modal_title {
    color: inherit;
}
.cl_modal_logo {
    display: flex;
    align-items: center;
}
.cl_modal_close {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    /* Native-button reset — .cl_modal_close is a <button> for keyboard/SR
       accessibility; strip the browser's default chrome so it keeps the
       icon-only close look (it carries no design preset by design). */
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
}
.cl_modal_container {
    background: #fff;
}
.cl_modal_left .cl_modal_container {
    right: auto;
    left: 0;
    margin-inline-end: auto;
    margin-inline-start: 0;
}
.cl_modal_right .cl_modal_container {
    left: auto;
    right: 0;
    margin-inline-end: 0;
    margin-inline-start: auto;
}
.cl_modal_left .cl_modal_container, .cl_modal_right .cl_modal_container {
    inset-block: .001px 0;
    width: min(340px, 100vw);
    min-height: 100%;
    bottom : 0;
    flex-direction: column;
}
.cl_modal_center .cl_modal_container {
    position: fixed;
    top: 50%;
    left: 50% !important;
    transform: translate(-50%, -50%);
    /*width: auto;*/
    width: max-content;
    max-width: 1000px;
    margin: auto;
    height: auto;
    max-height: 96%;
    overflow: auto;
    border-radius: 10px;
}
/*-custom-*/
.cl_modal_body .cl_toggle_body {
    padding: 10px;
}
@media (max-width: 767px) {
    .cl_modal_center .cl_modal_container {
        max-width: 96% !important;
        width: 94%;
    }
    
    .cl-checkout-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .cl_modal_left .cl_modal_container, .cl_modal_right .cl_modal_container {
        max-width: 96% !important;
        width: 94%;
    }
}

/*------Modal system end----------*/


/*------Tooltip utility start------
 * Reusable persistent tooltip for all frontend components.
 * Shows a small label when data-selected attribute is set on the element.
 * Default position: top. Override with data-pos="bottom|left|right".
 *
 * Usage:
 *   <span class="cl-tooltip" data-selected="value"></span>           (top)
 *   <span class="cl-tooltip" data-selected="value" data-pos="bottom"></span>
 *   <span class="cl-tooltip" data-selected="value" data-pos="left"></span>
 *   <span class="cl-tooltip" data-selected="value" data-pos="right"></span>
 *
 * The parent element MUST have position:relative for correct positioning.
 * The tooltip only appears when data-selected is present — remove the attribute to hide it.
 *------*/
.cl-tooltip[data-selected]::after {
    content: attr(data-selected);
    position: absolute;
    bottom: calc(100% + 0px);
    inset-inline-start: 0;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 1.2;
    padding: 2px 4px;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    pointer-events: none;
    z-index: 1;
}

/* Bottom */
.cl-tooltip[data-selected][data-pos="bottom"]::after {
    bottom: auto;
    top: calc(100% + 4px);
}

/* Left */
.cl-tooltip[data-selected][data-pos="left"]::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: calc(100% + 6px);
    transform: translateY(-50%);
}

/* Right */
.cl-tooltip[data-selected][data-pos="right"]::after {
    bottom: auto;
    top: 50%;
    left: calc(100% + 6px);
    transform: translateY(-50%);
}
/*------Tooltip utility end--------*/

/*------Celebration confetti — shared utility--------
   Used by both thankyou page-level overlay (.celebration-wrapper alone) AND
   any compo Confirmation Modal that opts in (e.g. p_upsell, thankyou upsell)
   via .celebration-wrapper.modal-celebration. Promoted from inline <style>
   blocks per the DRY decision in p-upsell-subtabs-confirmation-26-04-2026
   task. Per-compo z-index overrides for the modal variant live in each
   compo's generated_css.php. */
.celebration-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 16px;
    background: #ffd700;
    top: -20px;
    opacity: 0;
}
.confetti-piece:nth-child(1) { background: #ffbe0b; left: 10%; animation: confettiFall 3s ease-in infinite; animation-delay: 0s; }
.confetti-piece:nth-child(2) { background: #fb5607; left: 20%; animation: confettiFall 2.5s ease-in infinite; animation-delay: 0.2s; }
.confetti-piece:nth-child(3) { background: #ff006e; left: 30%; animation: confettiFall 2.8s ease-in infinite; animation-delay: 0.4s; }
.confetti-piece:nth-child(4) { background: #8338ec; left: 40%; animation: confettiFall 2.6s ease-in infinite; animation-delay: 0.6s; }
.confetti-piece:nth-child(5) { background: #3a86ff; left: 50%; animation: confettiFall 3.2s ease-in infinite; animation-delay: 0.8s; }
.confetti-piece:nth-child(6) { background: #ff006e; left: 60%; animation: confettiFall 2.9s ease-in infinite; animation-delay: 1s; }
.confetti-piece:nth-child(7) { background: #fb5607; left: 70%; animation: confettiFall 2.7s ease-in infinite; animation-delay: 1.2s; }
.confetti-piece:nth-child(8) { background: #ffbe0b; left: 80%; animation: confettiFall 3.1s ease-in infinite; animation-delay: 1.4s; }

@keyframes confettiFall {
    0%   { transform: translateY(0)     rotate(0deg);   opacity: 1; }
    25%  { transform: translateY(100px) rotate(45deg);  opacity: 1; }
    50%  { transform: translateY(200px) rotate(90deg);  opacity: 0.7; }
    75%  { transform: translateY(300px) rotate(135deg); opacity: 0.4; }
    100% { transform: translateY(400px) rotate(180deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .confetti-piece { animation: none !important; }
}
/*------Celebration confetti end--------*/
