* {
  box-sizing: border-box;
}
/*----important for svg so the svg can controller by the font-size parent-----*/
.cl-icon {
    display: inline-flex;
    align-items: center;
    padding-top: 2px;
}
.cl-icon svg {
    height: 1em !important;
    width: 1em !important;
    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---------*/
/*----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;
}

/*--------------------------*/

/*-----this is for all jquery modal in the frontend-----*/
div.jquery-modal {
    z-index: 1000000;
}

/*------error an succes---------*/
.cl-notification {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000000;
    transition: transform 0.3s;
    text-align: center;
}

.cl-error-response {
   border: 1px solid #dc3545;
   background-color: #fff5f5;
   color: #dc3545;
   padding: 10px;
   border-radius: 4px;
}
.cl-success-response {
   border: 1px solid #28a745;
   background-color: #f0fff4;
   color: #28a745;
   padding: 10px;
   border-radius: 4px;
}

/*-------------------*/

.single h1.entry-title {
    display: none !important;
}
.cl-products-archive .cl-products-list {
    padding: 30px 0 40px 0;
}
.cl-hide { display: none !important; }

.elementor-button { cursor: pointer;}
.entry-meta { display: none;}


.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-button-update {
    background-color: #fff;
    border-color: #2196F3;
    color: #2196F3;
}

.cl-button-update:hover {
    background-color: #2196F3;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.cl-button-delete {
    background-color: #fff;
    border-color: #dc2626;
    color: #dc2626;
}

.cl-button-delete:hover {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}
/*------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%;
}

.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;
}
/*-----------*/

/*----- 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;
    padding: 5px;
    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="yes"] .cl-icon-open {
    display: block;
}
.cl_toggle_block[is_open="no"] .cl-icon-close {
    display: block;
    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_shake_animation {
    animation-name: shakeMe;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/*-------Modal system----------*/

.cl_modal {
    z-index: 10000000;
    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;
}
.cl_modal_body {
    padding: 10px;
}
.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);
    bottom : 0;
    flex-direction: column;
}
.cl_modal_center .cl_modal_container {
    position: fixed;
    top: 50%;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 1000px;
    margin: auto;
    height: auto;
    max-height: 96%;
    overflow: auto;
    border-radius: 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----------*/