/* Quick 2.0.0 / isolated service hero, Woo quantity, project breadcrumb.
   IMPORTANT: do not add a general .q-breadcrumb / .q-ajax-search-form rule here. */

/* Project breadcrumb is contained in its own width-controlled frame and has a
   unique component class. Global page, post and Woo breadcrumb rules cannot
   turn it into a full-width banner. */
html body.quantum-theme .q-quantum-project-single > .q-project-breadcrumb-frame {
    box-sizing:border-box;
    display:flex;
    flex-flow:row nowrap;
    justify-content:flex-start;
    align-items:flex-start;
    direction:rtl;
    width:min(1180px, calc(100% - 32px));
    max-width:1180px;
    min-width:0;
    margin:0 auto 20px;
    padding:0;
}
html body.quantum-theme .q-project-breadcrumb-frame > nav.q-breadcrumb.q-project-breadcrumb-isolated {
    box-sizing:border-box !important;
    display:inline-flex !important;
    flex:0 1 auto !important;
    align-self:flex-start !important;
    width:fit-content !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:7px 12px !important;
    border:1px solid color-mix(in srgb,var(--q-primary,#3518b0) 14%,#e9e8ee) !important;
    border-radius:12px !important;
    background:var(--q-card,#fff) !important;
    box-shadow:0 6px 18px rgba(17,24,39,.045) !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:thin;
    text-align:right !important;
}
html body.quantum-theme .q-project-breadcrumb-frame > nav.q-breadcrumb.q-project-breadcrumb-isolated > ol {
    display:inline-flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:max-content !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
}
html body.quantum-theme .q-project-breadcrumb-frame > nav.q-breadcrumb.q-project-breadcrumb-isolated li {
    flex:0 0 auto !important;
    max-width:100% !important;
}
html body.quantum-theme .q-project-breadcrumb-frame > nav.q-breadcrumb.q-project-breadcrumb-isolated li:last-child span {
    max-width:min(410px, 42vw) !important;
}
@media(max-width:640px) {
    html body.quantum-theme .q-quantum-project-single > .q-project-breadcrumb-frame {
        width:calc(100% - 24px);
        margin-bottom:14px;
    }
    html body.quantum-theme .q-project-breadcrumb-frame > nav.q-breadcrumb.q-project-breadcrumb-isolated {
        max-width:100% !important;
        padding:4px 8px !important;
    }
    html body.quantum-theme .q-project-breadcrumb-frame > nav.q-breadcrumb.q-project-breadcrumb-isolated li:last-child span {
        max-width:50vw !important;
    }
}

/* Services: compact, proportionate hero. Elementor style controls remain free
   to override colours, spacing and typography through their wrapper rules. */
.qsvc-page-hero {
    padding-block:42px;
}
.qsvc-page-hero-inner {
    width:min(var(--qsvc-hero-width,1320px), calc(100% - 48px));
    column-gap:clamp(22px,3.2vw,56px);
    grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
}
.qsvc-page-hero-searchside {
    min-height:365px;
}
.qsvc-page-hero-ring {
    width:340px;
    height:340px;
    left:14px;
    top:14px;
    box-shadow:-8px 9px 0 var(--qsvc-ring-shadow,rgba(5,0,90,.17));
    opacity:.87;
}
.qsvc-page-hero-ring:after {
    width:150px;
    height:150px;
    inset:20px auto auto 44px;
}
.qsvc-page-hero-card {
    width:min(100%,510px);
    margin-right:35px;
    padding:24px 25px 22px;
    border-radius:21px;
    box-shadow:0 12px 32px rgba(17,24,39,.07);
}
.qsvc-hero-media,
.qsvc-megaphone {
    width:72px;
    height:72px;
    top:-35px;
    left:14px;
}
.qsvc-page-hero-card h3 {
    font-size:clamp(20px,1.6vw,26px);
    margin-bottom:6px;
}
.qsvc-finder-subtitle {
    font-size:14px;
    line-height:1.75;
    margin-bottom:15px;
}
.qsvc-page-hero-title {
    font-size:clamp(29px,3.1vw,43px);
    line-height:1.37;
    margin-bottom:12px;
}
.qsvc-page-hero-desc {
    font-size:15px;
    line-height:1.9;
}
.qsvc-page-hero-ticker {
    margin-top:17px;
    margin-bottom:19px;
}
.qsvc-page-hero-actions {
    gap:9px;
}
.qsvc-page-hero-actions .qsvc-btn {
    min-height:42px;
    padding:7px 14px;
    border-radius:11px;
    gap:8px;
    font-size:13px;
    box-shadow:none;
    white-space:nowrap;
}
.qsvc-page-hero-actions .qsvc-btn-icon {
    width:26px;
    height:26px;
    min-width:26px;
    border-radius:8px;
}
.qsvc-page-hero-actions .qsvc-btn-icon svg {
    max-width:16px;
    max-height:16px;
}
.qsvc-page-hero-actions .qsvc-btn:hover {
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(17,24,39,.07);
}
/* AJAX search: the shared .q-ajax-search-form is flex-wrap:wrap. Force a
   *local* two-column grid with explicit cells so submit never drops a row. */
html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-form {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 52px !important;
    grid-template-rows:52px !important;
    align-items:stretch !important;
    gap:0 !important;
    flex-wrap:nowrap !important;
    min-width:0 !important;
    width:100% !important;
    padding:0 !important;
    border-radius:13px;
    overflow:hidden;
    direction:rtl;
}
html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-field {
    grid-column:1 !important;
    grid-row:1 !important;
    flex:none !important;
    width:100% !important;
    height:52px !important;
    min-height:0 !important;
    min-width:0 !important;
    padding:0 12px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff;
    direction:rtl;
    box-shadow:none !important;
}
html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-input {
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    height:52px !important;
    line-height:normal !important;
    margin:0 !important;
    padding:0 8px !important;
    border:0 !important;
    background:transparent;
    box-shadow:none !important;
    text-align:right;
    font-size:13px;
}
html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-form > button[type="submit"] {
    grid-column:2 !important;
    grid-row:1 !important;
    position:static !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    width:52px !important;
    min-width:52px !important;
    max-width:52px !important;
    height:52px !important;
    min-height:52px !important;
    padding:0 !important;
    margin:0 !important;
    inset:auto !important;
    transform:none !important;
    border-radius:0 !important;
    box-shadow:none !important;
}
html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-form > button[type="submit"] svg {
    display:block;
    width:19px;
    height:19px;
    margin:auto;
}
body.quantum-theme .qsvc-page-hero .qsvc-finder-slider {
    margin-top:13px;
}
@media(max-width:1180px) {
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-inner {
        grid-template-columns:minmax(0,1fr);
        width:min(720px, calc(100% - 32px));
    }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-searchside {
        min-height:345px;
    }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card {
        margin-right:0;
    }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-ring {
        left:50%;
        transform:translateX(-50%);
    }
}
@media(max-width:760px) {
    body.quantum-theme .qsvc-page-hero { padding-block:27px; }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-inner { width:calc(100% - 24px); }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-searchside { min-height:0; padding-top:33px; }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-ring {
        top:24px; width:245px; height:245px;
    }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-ring:after {
        width:114px; height:114px; inset:13px auto auto 28px;
    }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card {
        margin:0;
        padding:22px 16px 17px;
    }
    body.quantum-theme .qsvc-page-hero .qsvc-hero-media,
    body.quantum-theme .qsvc-page-hero .qsvc-megaphone {
        position:static;
        width:62px;
        height:62px;
        margin:-37px auto 8px;
    }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-title {
        font-size:clamp(26px,7vw,36px);
    }
    body.quantum-theme .qsvc-page-hero .qsvc-page-hero-actions .qsvc-btn {
        min-height:40px;
        padding:7px 11px;
        font-size:12px;
    }
    html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-form {
        grid-template-columns:minmax(0,1fr) 48px !important;
        grid-template-rows:48px !important;
    }
    html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-field,
    html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-input,
    html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-form > button[type="submit"] {
        height:48px !important;
        min-height:48px !important;
    }
    html body.quantum-theme .qsvc-page-hero .qsvc-page-hero-card .q-ajax-search-form > button[type="submit"] {
        width:48px !important;
        min-width:48px !important;
        max-width:48px !important;
    }
}

/* Downloadable products use quantity 1. Physical product counters, including
   mixed carts, retain their normal WooCommerce behaviour. */
body.quick-woocommerce .q-wc-cart-row-digital,
body.quick-woocommerce .q-wc-fixed-download-quantity {
    display:inline-flex;
    align-items:center;
    width:max-content;
    max-width:100%;
    padding:7px 10px;
    border:1px solid rgba(var(--q-primary-rgb,53,24,176),.15);
    border-radius:9px;
    background:rgba(var(--q-primary-rgb,53,24,176),.05);
    color:var(--q-primary,#3518B0);
    font-size:12px;
    font-weight:650;
    white-space:nowrap;
}

/* Variations: after choosing a downloadable variation, the core variation form
   can re-render its quantity input. Keep it non-editable without changing the
   physical variation view or the WooCommerce request payload. */
body.quick-woocommerce.single-product form.variations_form.q-wc-downloadable-variation .q-wc-single-qty,
body.quick-woocommerce.single-product form.variations_form.q-wc-downloadable-variation .single_variation_wrap .quantity {
    display:none !important;
}


/* Project showcase widget uses a different legacy breadcrumb markup. Give it
   the same chip presentation without touching any other nav widgets. */
html body.quantum-theme .q-quantum-project-single > nav.q-quantum-breadcrumb {
    display:inline-flex!important;width:fit-content!important;max-width:100%!important;
    min-width:0!important;align-self:flex-start!important;
    padding:7px 12px!important;margin:12px 0 20px!important;
    border:1px solid color-mix(in srgb,var(--q-primary,#3518b0) 14%,#e9e8ee)!important;
    background:rgba(255,255,255,.94)!important;border-radius:12px!important;
    box-shadow:0 6px 20px rgba(20,12,65,.035)!important;
    overflow-x:auto!important;
}

/* Quick 2.0.0: description visibility is scoped to the section-title widget.
   Keep all existing Elementor typography, color and spacing overrides effective. */
html body.quantum-theme .elementor-widget-quantum_section_title .q-quantum-section-title{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:flex-start!important;gap:0!important;
}
html body.quantum-theme .elementor-widget-quantum_section_title .q-quantum-section-title .q-quick-section-description{
    display:block!important;visibility:visible!important;opacity:1!important;
    position:relative;overflow:visible;max-width:620px;width:100%;
}
html body.quantum-theme .elementor-widget-quantum_section_title .q-quick-section-description > p{
    margin-top:0!important;
}
/* Rubika: original faceted-cube mark; inherit button color exactly like peers.
   Scope to article sharing only: never rewrite global SVG fill rules. */
html body.quantum-theme .qsp-share-icons :is(a,button) svg.qsp-share-rubika {
    display:block; color:inherit; fill:currentColor;
}
html body.quantum-theme .qsp-share-icons svg.qsp-share-rubika .q-rubika-mark {
    fill:currentColor; stroke:none;
}
html body.quantum-theme .qsp-share-icons svg.qsp-share-rubika .q-rubika-facet {
    stroke:currentColor; fill:none;
}

/* Scoped frontend text baseline: no site-wide display/visibility overrides. */
html body.quantum-theme .elementor-widget-quantum_section_title .q-quick-section-description[data-qst-description="1"] {
    display:block;min-width:0;position:relative;overflow-wrap:break-word;
    visibility:visible;opacity:1;height:auto;max-height:none;
}
html body.quantum-theme .elementor-widget-quantum_section_title .q-quick-section-description[data-qst-description="1"] > :first-child {margin-top:0}
html body.quantum-theme .elementor-widget-quantum_section_title .q-quick-section-description[data-qst-description="1"] > :last-child {margin-bottom:0}
