/* =========================================================
   BAGEL STATION SHARED UI COMPONENT LIBRARY
========================================================= */

.bs-ui-category-grid,
.bs-ui-menu-grid {
    display: grid;
    gap: 18px;
}

.bs-ui-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.bs-ui-menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.bs-ui-category-card,
.bs-ui-menu-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(154, 106, 36, .28);
    border-radius: 13px;
    color: var(--bs-ink, #332116);
    background: rgba(255, 250, 240, .97);
    box-shadow: 0 13px 30px rgba(71, 42, 19, .12);
}

.bs-ui-category-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    border-top: 5px solid var(--bs-category-accent, #a8751f);
    text-decoration: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.bs-ui-category-card:hover,
.bs-ui-category-card:focus {
    color: var(--bs-ink, #332116);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(71, 42, 19, .18);
}

.bs-ui-category-card__media,
.bs-ui-menu-card__media {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #eee0c5, #d7b979);
}

.bs-ui-category-card__media {
    height: 132px;
}

.bs-ui-category-card__image,
.bs-ui-menu-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bs-ui-category-card__placeholder,
.bs-ui-menu-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(47, 30, 19, .55);
    font-size: 3rem;
}

.bs-ui-category-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 15px 16px 17px;
}

.bs-ui-category-card__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.bs-ui-category-card__description {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--bs-muted, #715744);
    font-size: .82rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bs-ui-menu-card {
    display: flex;
    min-height: 325px;
    flex-direction: column;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.bs-ui-menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(71, 42, 19, .17);
}

.bs-ui-menu-card.is-unavailable {
    opacity: .62;
    filter: grayscale(.25);
}

.bs-ui-menu-card__media {
    height: 154px;
    border-bottom: 4px solid var(--bs-item-accent, var(--bs-gold-500, #d4a23f));
}

.bs-ui-menu-card__badges {
    position: absolute;
    top: 9px;
    left: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 18px);
}

.bs-ui-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bs-ui-badge--gold {
    color: #2f1e13;
    background: #e2b14d;
}

.bs-ui-badge--brown {
    color: #fff8e9;
    background: #3a2417;
}

.bs-ui-badge--green {
    color: #f7fff1;
    background: #49682f;
}

.bs-ui-menu-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.bs-ui-menu-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bs-ui-menu-card__heading h3 {
    margin: 0;
    color: var(--bs-brown-900, #2f1e13);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.12;
}

.bs-ui-menu-card__heading strong {
    flex: 0 0 auto;
    color: var(--bs-gold-700, #a8751f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.bs-ui-menu-card__body p {
    display: -webkit-box;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--bs-muted, #715744);
    font-size: .84rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bs-ui-menu-card__actions {
    display: flex;
    margin-top: auto;
}

.bs-ui-menu-card__form,
.bs-ui-menu-card__actions .bs-ui-button {
    width: 100%;
}

.bs-ui-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.bs-ui-button:hover,
.bs-ui-button:focus {
    transform: translateY(-1px);
}

.bs-ui-button--primary {
    border-color: #94651f;
    color: #2b190d;
    background: linear-gradient(180deg, #e2b14d, #c58c2d);
    box-shadow: 0 7px 16px rgba(71, 42, 19, .15);
}

.bs-ui-button--primary:hover,
.bs-ui-button--primary:focus {
    color: #211208;
    background: linear-gradient(180deg, #edc466, #d49a32);
}

.bs-ui-button--danger-outline {
    width: 100%;
    border-color: #9d3b19;
    color: #8b3015;
    background: transparent;
}

.bs-ui-button--danger-outline:hover,
.bs-ui-button--danger-outline:focus {
    color: #fff;
    background: #9d3b19;
}

.bs-ui-button--large {
    min-height: 54px;
    font-size: 1.04rem;
}

.bs-ui-button--disabled {
    width: 100%;
    cursor: not-allowed;
    color: #80766d;
    background: #ded8cf;
    opacity: .72;
}

.bs-ui-ticket-panel {
    position: sticky;
    top: calc(var(--bs-topbar-height, 78px) + 20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100vh - var(--bs-topbar-height, 78px) - 40px);
    max-height: calc(100vh - var(--bs-topbar-height, 78px) - 40px);
    border: 1px solid rgba(154, 106, 36, .34);
    border-radius: 14px;
    background: rgba(255, 250, 240, .98);
    box-shadow: 0 18px 38px rgba(71, 42, 19, .16);
}

.bs-ui-ticket-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
    padding: 16px 18px;
    color: #fff8e9;
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 162, 63, .20), transparent 38%),
        #2f1e13;
    border-bottom: 3px solid var(--bs-gold-500, #d4a23f);
}

.bs-ui-ticket-panel__kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--bs-gold-300, #e3bc69);
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bs-ui-ticket-panel__header h2 {
    margin: 0;
    color: #fff8e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 900;
}

.bs-ui-ticket-panel__lines {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.bs-ui-ticket-line {
    padding: 13px 12px;
    border: 1px solid rgba(74, 46, 29, .13);
    border-radius: 9px;
    background: #fffdf8;
}

.bs-ui-ticket-line + .bs-ui-ticket-line {
    margin-top: 9px;
}

.bs-ui-ticket-line__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.bs-ui-ticket-line__heading h3 {
    margin: 0;
    color: var(--bs-brown-900, #2f1e13);
    font-size: .95rem;
    font-weight: 900;
}

.bs-ui-ticket-line__heading strong {
    flex: 0 0 auto;
    color: var(--bs-brown-900, #2f1e13);
}

.bs-ui-ticket-line__modifiers {
    margin: 7px 0 0;
    padding-left: 17px;
    color: var(--bs-muted, #715744);
    font-size: .76rem;
    line-height: 1.4;
}

.bs-ui-ticket-line__notes {
    margin: 7px 0 0;
    padding: 7px 9px;
    border-left: 3px solid var(--bs-gold-500, #d4a23f);
    color: var(--bs-muted, #715744);
    background: #fbf0d8;
    font-size: .75rem;
}

.bs-ui-ticket-line__controls {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
}

.bs-ui-quantity-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(74, 46, 29, .26);
    border-radius: 7px;
    color: var(--bs-brown-900, #2f1e13);
    background: #fff;
    font-size: 1.05rem;
    font-weight: 900;
}

.bs-ui-quantity-value {
    min-width: 26px;
    text-align: center;
    font-weight: 900;
}

.bs-ui-ticket-line__remove-form {
    margin-left: auto;
}

.bs-ui-link-button {
    padding: 3px 0;
    border: 0;
    background: transparent;
    font-size: .75rem;
    font-weight: 800;
}

.bs-ui-link-button--danger {
    color: #9d3b19;
}

.bs-ui-ticket-panel__footer {
    flex: 0 0 auto;
    padding: 15px 16px 17px;
    border-top: 2px solid rgba(154, 106, 36, .22);
    background: #f5e6c8;
}

.bs-ui-order-totals {
    margin: 0 0 14px;
}

.bs-ui-order-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 5px;
}

.bs-ui-order-totals dt,
.bs-ui-order-totals dd {
    margin: 0;
}

.bs-ui-order-totals__grand {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 2px solid rgba(74, 46, 29, .23);
    color: var(--bs-brown-900, #2f1e13);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.26rem;
    font-weight: 900;
}

.bs-ui-ticket-panel__actions {
    display: grid;
    gap: 9px;
}

.bs-ui-ticket-panel__actions form,
.bs-ui-ticket-panel__actions .bs-ui-button {
    width: 100%;
}

.bs-ui-ticket-panel__open-tickets {
    color: var(--bs-brown-800, #3a2417);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}

.bs-ui-empty-state {
    padding: 34px 18px;
    color: var(--bs-muted, #715744);
    text-align: center;
}

.bs-ui-empty-state__icon {
    margin-bottom: 10px;
    font-size: 2.6rem;
}

.bs-ui-empty-state h3 {
    margin: 0 0 7px;
    color: var(--bs-brown-900, #2f1e13);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.bs-ui-empty-state p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.4;
}

.bs-ui-status-pill {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bs-ui-status-pill--open {
    color: #3c2a14;
    background: #e6bd62;
}

.bs-ui-status-pill--ready,
.bs-ui-status-pill--success {
    color: #214315;
    background: #cce4bc;
}

.bs-ui-status-pill--warning {
    color: #744015;
    background: #f4d18f;
}

.bs-ui-status-pill--danger {
    color: #75250f;
    background: #f1baa9;
}

.bs-ui-status-pill--neutral {
    color: #473a30;
    background: #ded6cc;
}

@media (max-width: 1100px) {
    .bs-ui-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }

    .bs-ui-ticket-panel {
        position: relative;
        top: auto;
        height: auto;
        max-height: none;
    }

    .bs-ui-ticket-panel__lines {
        max-height: none;
    }
}

@media (max-width: 620px) {
    .bs-ui-category-grid,
    .bs-ui-menu-grid {
        grid-template-columns: 1fr;
    }
}
.bs-toast-container {
    position: fixed;
    top: calc(var(--bs-topbar-height, 78px) + 1rem);
    right: 1rem;
    z-index: 11000;
    width: min(24rem, calc(100vw - 1.5rem));
    pointer-events: none;
}

.bs-toast-container .toast {
    pointer-events: auto;
}

.bs-app-toast {
    width: 100%;
    border: 0;
    border-left: 4px solid transparent;
    border-radius: .75rem;
    box-shadow: 0 .75rem 2rem rgba(52, 38, 24, .18);
}

.bs-app-toast--success {
    border-left-color: #2f7d4a;
}

.bs-app-toast--error {
    border-left-color: #b94040;
}

.bs-app-toast .toast-header {
    gap: .55rem;
    border-bottom-color: rgba(73, 55, 38, .1);
}

.bs-app-toast--success .toast-header i {
    color: #2f7d4a;
}

.bs-app-toast--error .toast-header i {
    color: #b94040;
}

@media (max-width: 760px) {
    .bs-toast-container {
        top: 1rem;
        right: .75rem;
        left: .75rem;
        width: auto;
    }
}

.validation-summary-errors {
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(185, 64, 64, .35);
    border-left: 4px solid #b94040;
    border-radius: .65rem;
    color: #7e2929 !important;
    background: #fff6f5;
}

.validation-summary-errors::before {
    display: block;
    margin-bottom: .35rem;
    font-weight: 800;
    content: "Please correct the following:";
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.validation-summary-valid {
    display: none;
}
