.gtcm-wrap,
.gtcm-wrap * {
    box-sizing: border-box;
}

.gtcm-wrap {
    --gtcm-shadow: 0 24px 80px rgba(4, 14, 29, .22);
    font-family: inherit;
    position: relative;
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.gtcm-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    line-height: 1;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: none;
}

.gtcm-btn-shadow-yes .gtcm-toggle {
    box-shadow: 0 10px 24px rgba(7, 21, 38, .15);
}

.gtcm-toggle:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

.gtcm-btn-shadow-yes .gtcm-toggle:hover {
    box-shadow: 0 14px 28px rgba(7, 21, 38, .20);
}

.gtcm-toggle:focus-visible,
.gtcm-close:focus-visible,
.gtcm-sub-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.gtcm-burger {
    width: 22px;
    height: 16px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
}

.gtcm-burger span {
    display: block;
    height: 2px;
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
}

.gtcm-svg-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.gtcm-toggle-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.gtcm-overlay {
    position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
    z-index: 999998;
}

.gtcm-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    max-width: 94vw;
    z-index: 999999;
    box-shadow: none;
    transform: translateX(104%);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px;
}

.gtcm-panel-shadow-yes .gtcm-panel {
    box-shadow: var(--gtcm-shadow);
}

.gtcm-side-right .gtcm-panel {
    right: 0;
    transform: translateX(104%);
}

.gtcm-side-left .gtcm-panel {
    left: 0;
    transform: translateX(-104%);
}

.gtcm-wrap.is-open .gtcm-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gtcm-wrap.is-open .gtcm-panel {
    transform: translateX(0);
}

.gtcm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(120, 130, 150, .20);
}

.gtcm-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.gtcm-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, .06);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.gtcm-close:hover {
    background: rgba(15, 23, 42, .10);
    transform: rotate(4deg);
}

.gtcm-menu,
.gtcm-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gtcm-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gtcm-menu li {
    border: 0 solid transparent;
}

.gtcm-menu > li,
.gtcm-menu .sub-menu > li {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: rgba(120, 130, 150, .22);
}

.gtcm-menu > li:last-child,
.gtcm-menu .sub-menu > li:last-child {
    border-bottom-width: 0;
}

.gtcm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    transition: background .2s ease, transform .2s ease;
    background: transparent;
}

.gtcm-menu > li > .gtcm-row {
    padding: 0 4px;
    background: transparent;
}

.gtcm-row:hover {
    transform: translateX(2px);
}

.gtcm-link {
    display: flex;
    align-items: center;
    min-height: 50px;
    flex: 1 1 auto;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.gtcm-link:hover,
.gtcm-link:focus {
    text-decoration: none !important;
}

.gtcm-sub-toggle {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease, background .2s ease;
}

.gtcm-sub-toggle:hover {
    background: rgba(15, 23, 42, .06);
}

.gtcm-sub-toggle[aria-expanded="true"] {
    transform: rotate(45deg);
}

.gtcm-menu .sub-menu {
    display: none;
    margin: 0 0 0 14px;
    padding: 0 0 0 12px;
    border-left: 1px solid rgba(120, 130, 150, .28);
    border-radius: 0;
    background: transparent;
}

.gtcm-menu li.is-sub-open > .sub-menu {
    display: block;
    animation: gtcmDrop .2s ease both;
}

.gtcm-menu .sub-menu .gtcm-row {
    min-height: 42px;
    background: transparent !important;
    border-radius: 0;
    padding: 0 4px;
}

.gtcm-menu .sub-menu .gtcm-link {
    min-height: 42px;
    font-size: 14px;
    font-weight: 600;
    opacity: .92;
}

.gtcm-empty {
    margin: 0;
    padding: 16px;
    background: #fff5d6;
    color: #7a4d00;
    border-radius: 12px;
    font-size: 14px;
}

body.gtcm-lock {
    overflow: hidden;
}

@keyframes gtcmDrop {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .gtcm-panel {
        width: 86vw !important;
        padding: 18px;
    }

    .gtcm-title {
        font-size: 17px;
    }

    .gtcm-link {
        font-size: 14px;
    }
}
