.napoli-order-bar {
    --napoli-order-bar-red: #d62828;
    --napoli-order-bar-border: #eadfce;
    --napoli-order-bar-text: #252525;
    display: grid;
    grid-template-areas: "branch type actions";
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: center;
    min-height: 92px;
    padding: 14px 20px;
    border: 1px solid var(--napoli-order-bar-border);
    border-radius: 14px;
    background: #fff;
    color: var(--napoli-order-bar-text);
    box-shadow: 0 6px 22px rgba(40, 28, 18, 0.08);
    box-sizing: border-box;
}

.napoli-order-bar * {
    box-sizing: border-box;
}

.napoli-order-bar svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.napoli-order-bar__branch {
    grid-area: branch;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 0 20px 0 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.napoli-order-bar__branch-icon,
.napoli-order-bar__chevron {
    color: var(--napoli-order-bar-red);
}

.napoli-order-bar__chevron svg {
    width: 18px;
    height: 18px;
}

.napoli-order-bar__branch-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.napoli-order-bar__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #766e66;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.napoli-order-bar__branch-name,
.napoli-order-bar__branch-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.napoli-order-bar__branch-name {
    font-size: 16px;
    line-height: 1.3;
}

.napoli-order-bar__branch-address {
    margin-top: 2px;
    color: #706961;
    font-size: 12px;
    line-height: 1.25;
}

.napoli-order-bar__type.napoli-order-type-selector {
    grid-area: type;
    display: block;
    width: auto;
    margin: 0;
    min-width: 0;
    padding: 0 20px;
    border: 0;
    border-left: 1px solid #e6ded3;
    border-radius: 0;
    background: transparent;
}

.napoli-order-bar__type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.napoli-order-bar__type-button {
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--napoli-order-bar-border);
    border-radius: 9px;
    background: #fff;
    color: var(--napoli-order-bar-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.napoli-order-bar__type-button span,
.napoli-order-bar__type-button svg {
    width: 19px;
    height: 19px;
}

.napoli-order-bar__type-button:hover:not(:disabled) {
    border-color: var(--napoli-order-bar-red);
    color: var(--napoli-order-bar-red);
}

.napoli-order-bar__type-button.napoli-order-type-is-selected {
    border-color: var(--napoli-order-bar-red);
    background: var(--napoli-order-bar-red);
    color: #fff;
}

.napoli-order-bar__type-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.napoli-order-bar__type-button:focus-visible,
.napoli-order-bar__branch:focus-visible,
.napoli-order-bar__change:focus-visible,
.napoli-order-bar__cart:focus-visible {
    outline: 3px solid rgba(214, 40, 40, 0.3);
    outline-offset: 3px;
}

.napoli-order-bar__actions {
    grid-area: actions;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid #e6ded3;
}

.napoli-order-bar__change {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border: 1px solid var(--napoli-order-bar-red);
    border-radius: 9px;
    background: #fff;
    color: var(--napoli-order-bar-red);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.napoli-order-bar__change-icon,
.napoli-order-bar__change-icon svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.napoli-order-bar__change:hover {
    background: #fff4f2;
}

.napoli-order-bar__cart {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--napoli-order-bar-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.napoli-order-bar__cart:hover {
    color: var(--napoli-order-bar-red);
}

.napoli-order-bar__cart-icon {
    position: relative;
    display: inline-flex;
}

.napoli-order-bar__cart-count {
    position: absolute;
    top: -9px;
    right: -10px;
    display: flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--napoli-order-bar-red);
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.napoli-order-bar__cart-count[hidden] {
    display: none;
}

.napoli-order-bar__cart-total .amount {
    color: inherit;
}

.napoli-order-bar__type.napoli-order-type-is-loading {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .napoli-order-bar {
        grid-template-areas:
            "branch type"
            "actions actions";
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
    }

    .napoli-order-bar__actions {
        justify-content: space-between;
        padding: 16px 0 0;
        border-top: 1px solid #e6ded3;
        border-left: 0;
    }
}

@media (max-width: 680px) {
    .napoli-order-bar {
        grid-template-areas:
            "branch"
            "type"
            "actions";
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 16px;
    }

    .napoli-order-bar__branch {
        padding-right: 0;
        padding-bottom: 16px;
    }

    .napoli-order-bar__type.napoli-order-type-selector {
        padding: 16px 0;
        border-top: 1px solid #e6ded3;
        border-left: 0;
    }

    .napoli-order-bar__actions {
        padding-top: 16px;
    }

    .napoli-order-bar__type-options {
        width: 100%;
    }

    .napoli-order-bar__type-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .napoli-order-bar {
        padding-inline: 12px;
    }

    .napoli-order-bar__type-button {
        padding-inline: 8px;
        font-size: 12px;
    }

    .napoli-order-bar__change {
        padding-inline: 10px;
        font-size: 12px;
    }

    .napoli-order-bar__actions {
        gap: 12px;
    }
}
