/* This order dialog is used only by the individual cake page. */
body.cake-order-open { overflow: hidden; }
.cake-order-dialog {
    width: min(520px, calc(100vw - 28px));
    max-width: none;
    max-height: min(880px, calc(100dvh - 32px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 24px 90px #24110d55;
}
.cake-order-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.cake-order-dialog::backdrop { background: #20130fd1; }
.cake-order-dialog .cake-order-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}
.cake-order-dialog .cake-order-header h2 { flex: 1; min-width: 0; margin: 0; font-size: 21px; line-height: 1.25; }
.cake-order-dialog .cake-order-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}
.cake-order-dialog .cake-order-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
.cake-order-dialog .cake-order-product { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; align-items: center; margin-bottom: 22px; }
.cake-order-dialog .cake-order-product img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--red-50); }
.cake-order-dialog .cake-order-product h3,
.cake-order-dialog .cake-order-product strong { display: block; margin: 0; font-size: 17px; line-height: 1.25; }
.cake-order-dialog .cake-order-product p { margin: 5px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.cake-order-dialog .cake-order-fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.cake-order-dialog .cake-order-fieldset legend { width: 100%; margin-bottom: 9px; padding: 0; font-size: 14px; font-weight: 750; }
.cake-order-dialog .cake-order-outlets,
.cake-order-dialog .cake-order-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cake-order-dialog .cake-outlet-choice,
.cake-order-dialog .cake-option-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 7px;
    min-width: 0;
    min-height: 46px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.cake-order-dialog .cake-option-choice { flex-direction: column; min-height: 63px; }
.cake-order-dialog .cake-option-choice small { display: block; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.cake-order-dialog .cake-outlet-choice[aria-pressed="true"],
.cake-order-dialog .cake-option-choice[aria-pressed="true"] { border-color: var(--red-600); box-shadow: inset 0 0 0 1px var(--red-600); color: var(--red-700); background: var(--red-50); }
.cake-order-dialog .cake-outlet-choice:hover,
.cake-order-dialog .cake-option-choice:hover { border-color: var(--red-600); }
.cake-order-dialog .cake-order-quantity { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.cake-order-dialog .cake-order-quantity:focus-within { border-color: var(--red-600); box-shadow: 0 0 0 2px var(--red-100); }
.cake-order-dialog .cake-order-quantity button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: var(--cream); color: var(--red-700); font-size: 24px; font-weight: 500; cursor: pointer; }
.cake-order-dialog .cake-order-quantity input { width: 56px; min-height: 44px; padding: 5px; border: 0; border-radius: 0; color: var(--ink); background: #fff; font-size: 16px; font-weight: 700; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.cake-order-dialog .cake-order-quantity input::-webkit-outer-spin-button,
.cake-order-dialog .cake-order-quantity input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.cake-order-dialog button:focus-visible,
.cake-order-dialog input:focus-visible { outline: 3px solid var(--red-600); outline-offset: 3px; }
.cake-order-dialog button:disabled { opacity: .5; cursor: default; }
.cake-order-dialog .cake-order-status { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--red-700); }
.cake-order-dialog .cake-order-status:empty { display: none; }
.cake-order-dialog .cake-order-note { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.cake-order-dialog .cake-order-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--line); background: #fff; }
.cake-order-dialog .cake-order-total span { display: block; color: var(--ink-soft); font-size: 12px; }
.cake-order-dialog .cake-order-total strong { display: block; font-size: 23px; line-height: 1.3; }
.cake-order-dialog .cake-order-submit { min-height: 46px; gap: 6px; padding: 10px 14px; border-radius: 11px; font-size: 14px; line-height: 1.25; white-space: nowrap; }
.cake-order-dialog .cake-order-submit .lu { width: 18px; height: 18px; }
@media (max-width: 420px) {
    .cake-order-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
    .cake-order-dialog .cake-order-header { padding: 12px 14px; }
    .cake-order-dialog .cake-order-header h2 { font-size: 19px; }
    .cake-order-dialog .cake-order-content { padding: 16px 14px; }
    .cake-order-dialog .cake-order-footer { padding: 13px 14px; gap: 10px; }
    .cake-order-dialog .cake-order-total strong { font-size: 21px; }
    .cake-order-dialog .cake-order-submit { max-width: none; padding: 10px; font-size: 13px; }
}
@media (max-width: 360px) {
    .cake-order-dialog .cake-order-footer { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 11px; padding-bottom: 11px; }
    .cake-order-dialog .cake-order-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .cake-order-dialog .cake-order-total strong { font-size: 20px; }
    .cake-order-dialog .cake-order-submit { width: 100%; min-height: 44px; }
}
@media (max-height: 580px) {
    .cake-order-dialog { max-height: calc(100dvh - 16px); }
    .cake-order-dialog .cake-order-header,
    .cake-order-dialog .cake-order-footer { padding-top: 10px; padding-bottom: 10px; }
}
