/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com/
Author: DrFuri
Author URI: http://drfuri.com/
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomus
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: ecomus
*/


/* =============================================================================
   TechZone — Sitewide overflow lock
   Prevents horizontal scrollbar from position:fixed widgets (WOOCS, GT)
   that render outside the 100vw viewport width.
   overflow-x:clip on html lets position:fixed still work correctly.
   ============================================================================= */
html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Clamp any plugin fixed/absolute element that overflows the right edge */
#gt_float_wrapper,
.woocs_auto_switcher.cd-stretchy-nav {
    max-width: calc(100vw - 16px) !important;
    right: 8px !important;
    box-sizing: border-box !important;
}

/* =============================================================================
   TechZone — Compact Currency Switcher (topbar)
   Goal: make .header-currency the same slim size as the GT language switcher.
   The child-theme template override outputs flag + .tz-currency-code + arrow.
   ============================================================================= */

/* Tighten the wrapper to auto-width so it doesn't stretch */
.header-currency.ecomus-currency {
    display:     flex;
    align-items: center;
}

/* The trigger row: flag + code + arrow — match the GT pill exactly */
.header-currency .current {
    display:     flex     !important;
    align-items: center   !important;
    gap:         5px      !important;
    padding:     0 8px    !important;
    font-size:   0        !important; /* collapse any stray whitespace text nodes */
    font-weight: 500      !important;
    white-space: nowrap   !important;
    cursor:      pointer;
}

/* Restore readable size for the currency code span */
.header-currency .current .tz-currency-code {
    font-size:      13px      !important;
    font-weight:    500       !important;
    text-transform: uppercase;
    line-height:    1         !important;
    color:          inherit   !important;
}

/* Flag image — match GT flag dimensions exactly */
.header-currency .current img {
    width:         20px  !important;
    height:        14px  !important;
    object-fit:    cover !important;
    border-radius: 2px   !important;
    flex-shrink:   0     !important;
    margin:        0     !important;
    display:       block !important;
}

/* Arrow SVG — match the GT chevron size */
.header-currency .current svg {
    width:       10px           !important;
    height:      10px           !important;
    flex-shrink: 0              !important;
    display:     inline-block   !important;
}

/* Keep arrow stroke matching topbar text colour */
.header-currency .current svg path,
.header-currency .current svg polyline,
.header-currency .current svg line {
    stroke: currentColor !important;
}
