/* AR-TEC Google Translate widget — isolated component styles */

/* Topbar slot */
.topbar .top-contact > li.artec-gtranslate-slot {
    margin-right: 0;
    margin-left: 18px;
    padding: 0;
    list-style: none;
}

.topbar .top-contact > li.artec-gtranslate-slot::before,
.topbar .top-contact > li.artec-gtranslate-slot::after {
    display: none !important;
    content: none !important;
}

/* Root */
#artec-gtranslate.artec-gtranslate {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    color: rgba(255, 255, 255, 0.92);
}

#artec-gtranslate.artec-gtranslate *,
#artec-gtranslate.artec-gtranslate *::before,
#artec-gtranslate.artec-gtranslate *::after {
    box-sizing: border-box;
}

/* Toggle button */
#artec-gtranslate .artec-gtranslate-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 5px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    min-height: 0;
    height: auto;
    width: auto;
}

#artec-gtranslate .artec-gtranslate-toggle:hover,
#artec-gtranslate .artec-gtranslate-toggle:focus,
#artec-gtranslate .artec-gtranslate-toggle:active {
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: #fff;
    outline: none;
    text-decoration: none;
}

#artec-gtranslate .artec-gtranslate-flag,
#artec-gtranslate .artec-gtranslate-option-flag {
    display: inline-block;
    flex-shrink: 0;
    width: 22px;
    height: 16px;
    margin: 0;
    padding: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    background-size: cover;
    line-height: 1;
    vertical-align: middle;
}

#artec-gtranslate .artec-gtranslate-label {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

#artec-gtranslate .artec-gtranslate-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 10px;
    line-height: 1;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

#artec-gtranslate.artec-gtranslate.is-open .artec-gtranslate-caret {
    transform: rotate(180deg);
}

/* Dropdown panel */
#artec-gtranslate .artec-gtranslate-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 9999;
    width: 200px;
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(75, 0, 160, 0.14);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(24, 16, 48, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

#artec-gtranslate.artec-gtranslate.is-open .artec-gtranslate-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#artec-gtranslate .artec-gtranslate-heading {
    display: block;
    margin: 0 0 8px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: #6b6b6b;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* List reset */
#artec-gtranslate .artec-gtranslate-list {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
}

#artec-gtranslate .artec-gtranslate-list-item {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    background: transparent;
}

#artec-gtranslate .artec-gtranslate-list-item + .artec-gtranslate-list-item {
    margin-top: 4px;
}

/* Option buttons */
#artec-gtranslate .artec-gtranslate-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: #2b2b2b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#artec-gtranslate .artec-gtranslate-option:hover,
#artec-gtranslate .artec-gtranslate-option:focus,
#artec-gtranslate .artec-gtranslate-option:active {
    background: #f6f2fc;
    background-image: none;
    box-shadow: none;
    color: #4b00a0;
    outline: none;
    text-decoration: none;
}

#artec-gtranslate .artec-gtranslate-option.is-active {
    background: #f0e9fb;
    color: #4b00a0;
}

#artec-gtranslate .artec-gtranslate-option-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#artec-gtranslate .artec-gtranslate-option-name {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
}

#artec-gtranslate .artec-gtranslate-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #4b00a0;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#artec-gtranslate .artec-gtranslate-option.is-active .artec-gtranslate-option-check {
    opacity: 1;
    transform: scale(1);
}

/* Hide default Google Translate UI */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
.goog-logo-link,
.goog-te-gadget {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

.skiptranslate {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .topbar .top-contact > li.artec-gtranslate-slot {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 10px;
        text-align: left;
    }

    #artec-gtranslate .artec-gtranslate-panel {
        left: 0;
        right: auto;
        width: min(200px, calc(100vw - 32px));
    }
}
