/* MCN Branch Selector */

/* ── Modal ── */
.mcn-branch-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcn-branch-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.mcn-branch-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.mcn-branch-modal__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2F1010;
    margin: 0 0 8px;
    text-align: center;
}

.mcn-branch-modal__desc {
    font-size: 0.875rem;
    color: #888;
    margin: 0 0 20px;
    text-align: center;
}

.mcn-branch-modal__list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcn-branch-modal__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2F1010;
    transition: all 0.2s;
}

.mcn-branch-modal__item:hover {
    border-color: #f39800;
    background: rgba(243,152,0,0.04);
}

.mcn-branch-modal__item.is-selected {
    border-color: #f39800;
    background: rgba(243,152,0,0.07);
    font-weight: 600;
}

.mcn-branch-modal__item > .fa-location-dot {
    color: #f39800;
    flex-shrink: 0;
    font-size: 1rem;
}

.mcn-branch-modal__item > span {
    flex: 1;
}

.mcn-branch-modal__check {
    color: #f39800;
    display: none !important;
}

.mcn-branch-modal__item.is-selected .mcn-branch-modal__check {
    display: inline !important;
}

.mcn-branch-modal__hint {
    font-size: 0.8rem;
    color: #bbb;
    text-align: center;
    margin: 0;
}

/* ── Floating button animations ── */
@keyframes mcn-ring {
    0%   { transform: rotate(0deg); }
    5%   { transform: rotate(-15deg); }
    10%  { transform: rotate(15deg); }
    15%  { transform: rotate(-12deg); }
    20%  { transform: rotate(12deg); }
    25%  { transform: rotate(-8deg); }
    30%  { transform: rotate(8deg); }
    35%  { transform: rotate(-4deg); }
    40%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes mcn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(243,152,0,0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(243,152,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(243,152,0,0); }
}

/* ── Floating button ── */
.mcn-branch-btn {
    position: fixed;
    bottom: 24px;
    z-index: 1000;
    background: linear-gradient(135deg, #f39800, #e07800);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 11px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(243,152,0,0.45);
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
    white-space: nowrap;
    letter-spacing: 0.01em;
    /* ring every 4s */
    animation: mcn-pulse 2s ease 1s infinite;
}

.mcn-branch-btn:hover {
    background: linear-gradient(135deg, #ffaa1a, #f39800);
    box-shadow: 0 6px 24px rgba(243,152,0,0.6);
    transform: scale(1.05);
    animation: none;
}

.mcn-branch-btn:active {
    transform: scale(0.97);
}

.mcn-branch-btn--left  { left: 24px; }
.mcn-branch-btn--right { right: 24px; }

@media (max-width: 600px) {
    .mcn-branch-btn--left  { left: 16px; bottom: 1.25rem; }
    .mcn-branch-btn--right { right: 16px; bottom: 1.25rem; }
}

/* ── Price toast ── */
.mcn-price-toast {
    position: fixed;
    top: 110px;
    right: 24px;
    z-index: 99998;
    background: #2F1010;
    color: #fff;
    font-size: 0.825rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    max-width: 280px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mcn-price-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .mcn-price-toast {
        right: 16px;
        top: 70px;
        max-width: calc(100vw - 32px);
    }
}
