/* ---- hide Google Translate chrome (same technique GTranslate uses) ---- */
div.skiptranslate,
#ant_translate_host,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}
body {
    top: 0 !important;
}
font font {
    background-color: transparent !important;
    box-shadow: none !important;
    position: initial !important;
}

/* ---- floating switcher ---- */
.ant-switcher {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}
.ant-pos-bottom_right { right: 16px; bottom: 16px; }
.ant-pos-bottom_left  { left: 16px;  bottom: 16px; }
.ant-pos-top_right    { right: 16px; top: 16px; }
.ant-pos-top_left     { left: 16px;  top: 16px; }

.ant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #1f2328;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.ant-pill:hover { background: #f4f5f7; }

.ant-panel {
    display: none;
    position: absolute;
    width: 230px;
    background: #ffffff;
    color: #1f2328;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}
.ant-switcher.ant-open .ant-panel { display: block; }

/* panel opens away from the anchored corner */
.ant-pos-bottom_right .ant-panel { bottom: 46px; right: 0; }
.ant-pos-bottom_left  .ant-panel { bottom: 46px; left: 0; }
.ant-pos-top_right    .ant-panel { top: 46px; right: 0; }
.ant-pos-top_left     .ant-panel { top: 46px; left: 0; }

.ant-search {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    outline: none;
    font-size: 13px;
    background: #fafbfc;
    color: #1f2328;
}
.ant-list {
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.ant-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13.5px;
    color: #1f2328;
}
.ant-item:hover { background: #eef2ff; }
.ant-item.ant-current { font-weight: 700; background: #f0f6ff; }

/* ---- geo suggestion toast ---- */
.ant-toast {
    position: fixed;
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(340px, calc(100vw - 32px));
    padding: 11px 13px;
    background: #1f2328;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
}
.ant-toast.ant-pos-bottom_right { right: 16px; bottom: 66px; }
.ant-toast.ant-pos-bottom_left  { left: 16px;  bottom: 66px; }
.ant-toast.ant-pos-top_right    { right: 16px; top: 66px; }
.ant-toast.ant-pos-top_left     { left: 16px;  top: 66px; }

.ant-toast-yes {
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: #4f7cff;
    color: #ffffff;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
}
.ant-toast-yes:hover { background: #3d66e0; }
.ant-toast-close {
    flex-shrink: 0;
    border: none;
    background: none;
    color: #9aa4b2;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}
.ant-toast-close:hover { color: #ffffff; }

@media (max-width: 480px) {
    .ant-panel { width: 210px; }
}
