* {
    box-sizing: border-box;
}

body {
    font: 16px Arial;
}

.fixed-footer .text {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

xinput {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
}

xinput[type=text] {
    background-color: #f1f1f1;
    width: 100%;
}

xinput[type=submit] {
    background-color: DodgerBlue;
    color: #fff;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.help-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    z-index: 999999 !important;
    /* magasabb, mint az offcanvas */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zoom Slider Styling */
.radix-zoom-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 15px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 51;
    background: white;
    border: 2px solid rgb(140, 108, 155);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 220px;
}

@media (max-width: 768px) {
    .radix-zoom-container {
        display: none !important;
    }
}

.radix-zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    background: #e0e0e0;
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

.radix-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgb(140, 108, 155);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.radix-zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.radix-zoom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: rgb(140, 108, 155);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.radix-zoom-icon {
    font-size: 1.15rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
}

.radix-zoom-icon:hover {
    color: rgb(140, 108, 155);
    transform: scale(1.1);
}

/* Panning Viewport Styling */
.radix-viewport {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
}

.radix-viewport svg {
    position: relative;
    z-index: 50;
    cursor: grab;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    touch-action: none;
    transition: none;
    /* Disable transitions during drag for performance */
}

/* Make selection visually invisible if it somehow happens */
.radix-viewport *::selection {
    background: transparent !important;
    color: inherit !important;
}

.radix-viewport.dragging,
.radix-dragging-active,
.radix-dragging-active * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.radix-viewport.dragging svg {
    cursor: grabbing;
}

/* Hide number input spinners in Firefox to prevent text truncation on small screens */
input[type="number"] {
    -moz-appearance: textfield;
}