/* Match Select2 single select with Argon/Bootstrap input */
.select2-container--default .select2-selection--single {
    border-color: rgba(50, 151, 211, 0.25);
    background-color: #fff;
    border: 1px solid #cad1d7;
    border-radius: 0.375rem;
    height: calc(2.5rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #525f7f;
    line-height: 1.5;
    box-shadow: none;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #525f7f;
    line-height: 1.5;
    padding-left: 0;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    right: 0.75rem;
}

.checkpoint-content-container {
    width: 100%;
    overflow: hidden; /* Prevents any overflow */
}
.checkpoint-content-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Optional: Center the image horizontally */
}
.spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid #5e72e4;
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
.icon-mask {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}
.cream-icon {
    -webkit-mask-image: url("/img/icons/cream.svg");
    mask-image: url("/img/icons/cream.svg");
}

.sugar-icon {
    -webkit-mask-image: url("/img/icons/sugar.svg");
    mask-image: url("/img/icons/sugar.svg");
}

.milk-icon {
    -webkit-mask-image: url("/img/icons/milk.svg");
    mask-image: url("/img/icons/milk.svg");
}

.strawberry-icon {
    -webkit-mask-image: url("/img/icons/strawberry.svg");
    mask-image: url("/img/icons/strawberry.svg");
}

.salt-icon {
    -webkit-mask-image: url("/img/icons/salt.svg");
    mask-image: url("/img/icons/salt.svg");
}

.pumpkin-icon {
    -webkit-mask-image: url("/img/icons/pumpkin.svg");
    mask-image: url("/img/icons/pumpkin.svg");
}

.corn-icon {
    -webkit-mask-image: url("/img/icons/corn.svg");
    mask-image: url("/img/icons/corn.svg");
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #5e72e4;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}
.chat-bubble:hover {
    transform: scale(1.1);
}

/* Chat window */
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    animation: fadeInUp 0.3s ease;
}
.chat-window.hidden {
    display: none;
}

.chat-header {
    background: #5e72e4;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

.chat-form {
    display: flex;
    border-top: 1px solid #eee;
}
.chat-form input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
}
.chat-form button {
    background: #5e72e4;
    border: none;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

/* Shared bubble styles */
.message-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 16px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

/* Me (right side) */
.message-me {
    align-self: flex-end;
    background-color: #5e72e4;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Staff (left side) */
.message-staff {
    align-self: flex-start;
    background-color: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 4px;
}

/* Tiny timestamp */
.message-time {
    display: block;
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}
.leaflet-view-chat a {
    display: inline-block;
    width: auto !important;     /* let the width expand with text */
    height: auto !important;    /* same for height */
    line-height: normal !important;
    padding: 5px 10px;
    text-decoration: none;
    color: #5e72e4;
    background: #fff;
    border: 2px solid #5e72e4;
    border-radius: 3px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
  }
  