/* Floating Action Button */
#isharty-svg-translator-fab {
    position: fixed !important;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d4af37;
    color: #3e2723;
    font-size: 32px;
    font-family: sans-serif;
    border: 2px solid #b8860b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
    line-height: 1;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

#isharty-svg-translator-fab:hover {
    transform: scale(1.1);
    background-color: #ffd700;
}

#isharty-svg-translator-fab .isharty-svg-translator-fab-image {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

#isharty-svg-translator-fab.isharty-svg-position-top-right {
    top: max(20px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
}

#isharty-svg-translator-fab.isharty-svg-position-top-left {
    top: max(20px, env(safe-area-inset-top));
    left: max(20px, env(safe-area-inset-left));
}

#isharty-svg-translator-fab.isharty-svg-position-bottom-right {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
}

#isharty-svg-translator-fab.isharty-svg-position-bottom-left {
    left: max(20px, env(safe-area-inset-left));
    bottom: max(20px, env(safe-area-inset-bottom));
}

.isharty-svg-text {
    direction: rtl;
    unicode-bidi: isolate;
}

.isharty-svg-word {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    vertical-align: -0.08em;
    overflow: visible;
}

.isharty-svg-word-inner {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    transform-origin: right center;
}

body.isharty-svg-direction-ltr .isharty-svg-word-inner {
    transform-origin: left center;
}

body.isharty-svg-direction-ltr .isharty-svg-text {
    direction: ltr;
}

.isharty-svg-glyph {
    display: inline-block;
    flex: 0 0 auto;
    height: 1.05em;
    max-width: 20em;
    margin: 0;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    color: inherit;
}

.isharty-svg-glyph-img {
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    -webkit-mask-image: var(--isharty-svg-url);
    mask-image: var(--isharty-svg-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.isharty-svg-glyph-cropped .isharty-svg-glyph-img {
    position: absolute;
    width: var(--isharty-svg-crop-img-width);
    height: var(--isharty-svg-crop-img-height);
    left: var(--isharty-svg-crop-img-left);
    top: var(--isharty-svg-crop-img-top);
    max-width: none;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
    .isharty-svg-glyph-img {
        background-color: transparent;
        background-image: var(--isharty-svg-url);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .isharty-svg-glyph-cropped .isharty-svg-glyph-img {
        background-size: 100% 100%;
    }
}

body.isharty-svg-mirror-layout {
    direction: rtl;
}
