.rm-button {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 2rem;
    height: 2rem;
    background-color: #fff;
    display: block;
    border-radius: 3px;
}

.rm-text-button-link {
    height: 2rem;
    min-width: fit-content;
    padding: 0.3rem;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    background-color: #fff;
}

.disabled {
    color: #666;
    pointer-events: none;
    opacity: 0.3;
}

.strike {
    text-decoration: line-through;
}

.rm-text-button {
    height: auto;
    min-width: fit-content;
    padding: 0.3rem;
    font-size: 1.4em;
    color: #333 !important;
    font-weight: bold;
    text-align: center;
    border: 1px solid #666;
    cursor: default;
    background-color: #fff;
}

.rm-text-input {
    flex-grow: 1;
    font-size: 1.7em;
    border: none;
    outline: none;
}

.rm-text-container {
    position: relative;
    display: flex;
    flex-grow: 1;
}

.rm-text-clear {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    margin-right: 0.5em;
}

/* Image carousel */

.rm-carousel {
    position: relative;
}

.rm-carousel .rm-add-image {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}

.rm-carousel .rm-text-button {
    height: 3.2em;
    min-width: fit-content;
    padding: 0.3rem;
    font-size: 1.4em;
    line-height: 2.4em;
    font-weight: bold;
    text-align: center;
    border: 1px solid #666;
    cursor: default;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Spinner */

.spinner-container {
    position: absolute;
    z-index: 1000000000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
}

.spinner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>');
    animation: leaflet-control-locate-spin 1s linear infinite;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast */

.rm-toast-outer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11111;
    display: flex;
}

.rm-toast-inner {
    display: flex;
    flex-direction: column;
    margin: auto;
}

.rm-toast-slice {
    background-color: gold !important;
    padding: 0.25rem;
    border-radius: 0.25rem;
    margin: 0.125rem auto 0.125rem;
    position: relative;
}

.rm-toast-slice-error {
    background-color: tomato !important;
}

.rm-toast-slice-success {
    background-color: palegreen !important;
}

/* Confirmation dialog: full-screen dimmer, centered dialog. Kept apart
   from the toast classes so notices don't share the modal's layout. */

.rm-confirm-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11111;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #222;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.rm-confirm-msg {
    color: white;
    padding: 0 0.5rem;
}
.rm-confirm-buttons {
    display: flex;
    width: 100%;
}
.rm-confirm-buttons * {
    margin: auto;
}
