body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.crt-page {
    background: var(--bg-light, #f5f5f5);
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

.crt-hero {
    background:
        radial-gradient(820px 340px at 50% -45%, rgba(255, 48, 8, 0.16), transparent 70%),
        linear-gradient(180deg, #fff6f3 0%, var(--bg-light, #f5f5f5) 100%);
    padding: 56px 16px 108px;
    text-align: center;
}

.crt-hero-inner {
    max-width: 560px;
    margin: 0 auto;
}

.crt-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    background: #fff;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--primary, #ff3008);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.07);
}

.crt-title {
    margin: 16px 0 8px;
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.6px;
    color: var(--text-dark, #191919);
}

.crt-subtitle {
    margin: 0 auto;
    max-width: 460px;
    color: var(--text-gray, #767676);
    font-size: 0.95rem;
}

.crt-subtitle strong {
    color: var(--text-dark, #191919);
}

.crt-container {
    position: relative;
    max-width: 1060px;
    margin: -64px auto 64px;
    padding: 0 16px;
}

.crt-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.crt-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.crt-card {
    background: #fff;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
    overflow: hidden;
    animation: crtFade 0.4s ease;
}

.crt-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border, #f0f0f0);
}

.crt-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-dark, #191919);
}

.crt-card-title i {
    color: var(--primary, #ff3008);
}

.crt-card-count {
    padding: 4px 11px;
    border-radius: 999px;
    background: #fff1ec;
    color: var(--primary, #ff3008);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.crt-items {
    padding: 10px;
}

.crt-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    grid-template-areas: "img info qty sub del";
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    transition: background 0.15s;
}

.crt-item:hover {
    background: var(--bg-light, #f7f7f8);
}

.crt-item.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.crt-item-sub,
.crt-qty-val {
    transition: color 0.15s ease;
}

.crt-item + .crt-item {
    border-top: 1px solid var(--border, #f0f0f0);
}

.crt-item-img {
    grid-area: img;
    width: 66px;
    height: 66px;
    border-radius: 13px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light, #f1f1f3);
    color: #b0b2ba;
    font-size: 1.1rem;
}

.crt-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crt-item-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.crt-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark, #191919);
    line-height: 1.3;
}

.crt-item-addons {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary, #ff3008);
    margin-top: 2px;
}

.crt-item-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray, #767676);
}

.crt-item-price small {
    font-weight: 500;
    color: #b0b2ba;
}

.crt-item-note-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 320px;
    margin-top: 6px;
    padding: 7px 9px;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 10px;
    background: #fff;
}

.crt-item-note-wrap i {
    color: var(--primary, #ff3008);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.crt-item-note {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-dark, #191919);
    font: inherit;
    font-size: 0.78rem;
}

.crt-item-note::placeholder {
    color: #a3a8b3;
}

.crt-qty {
    grid-area: qty;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 4px;
    padding: 4px;
    background: var(--bg-light, #f3f4f6);
    border-radius: 999px;
}

.crt-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--text-dark, #191919);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.12);
    transition: background 0.15s, color 0.15s, transform 0.12s;
}

.crt-qty-btn:hover {
    background: var(--primary, #ff3008);
    color: #fff;
}

.crt-qty-btn:active {
    transform: scale(0.92);
}

.crt-qty-val {
    min-width: 26px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark, #191919);
}

.crt-item-sub {
    grid-area: sub;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark, #191919);
    white-space: nowrap;
    text-align: right;
    min-width: 64px;
}

.crt-item-del {
    grid-area: del;
    justify-self: end;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 10px;
    background: #fff;
    color: #b0b2ba;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.crt-item-del:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.crt-card-body {
    padding: 20px 22px 22px;
}

.crt-label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark, #191919);
}

.crt-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.order-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border: 1.5px solid var(--border, #e8e8e8);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: all 0.16s ease;
    user-select: none;
}

.order-type-option:hover {
    border-color: rgba(255, 48, 8, 0.4);
}

.crt-type-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: var(--bg-light, #f3f4f6);
    color: var(--text-gray, #767676);
    transition: all 0.16s ease;
}

.crt-type-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gray, #767676);
    transition: color 0.16s ease;
}

.order-type-option.active {
    border-color: var(--primary, #ff3008);
    background: #fff6f3;
}

.order-type-option.active .crt-type-ic {
    background: var(--primary, #ff3008);
    color: #fff;
}

.order-type-option.active .crt-type-label {
    color: var(--primary, #ff3008);
}

.crt-payment-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1.5px solid var(--border, #e8e8e8);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.payment-method-option:hover {
    border-color: rgba(255, 48, 8, 0.4);
}

.payment-method-option.active {
    border-color: var(--primary, #ff3008);
    background: #fff6f3;
}

.payment-method-option.active .crt-type-ic {
    background: var(--primary, #ff3008);
    color: #fff;
}

.payment-method-option.active .crt-type-label {
    color: var(--primary, #ff3008);
}

.payment-method-option.disabled {
    display: none;
}

.crt-payment-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-gray, #767676);
}

.crt-field {
    margin-bottom: 16px;
}

.crt-field:last-child {
    margin-bottom: 0;
}

.crt-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark, #191919);
}

.crt-field label small {
    font-weight: 500;
    color: #b0b2ba;
}

.crt-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.crt-input-icon > i {
    position: absolute;
    left: 14px;
    color: #b0b2ba;
    font-size: 0.85rem;
    pointer-events: none;
}

.crt-input-icon.textarea > i {
    top: 14px;
}

.crt-input-icon input,
.crt-input-icon textarea,
.crt-input-icon select {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1.5px solid var(--border, #e0e0e0);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark, #191919);
    background: #fff;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.crt-input-icon select {
    appearance: none;
    cursor: pointer;
}

.crt-delivery-zone-hint {
    display: block;
    margin-top: 7px;
    color: var(--text-gray, #767676);
    font-size: 0.76rem;
    font-weight: 600;
}

.crt-table-hint {
    display: block;
    margin-top: 7px;
    color: #047857;
    font-size: 0.76rem;
    font-weight: 700;
}

.crt-delivery-warning {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
}

.crt-input-icon textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.crt-input-icon input::placeholder,
.crt-input-icon textarea::placeholder {
    color: #b6b8bf;
}

.crt-input-icon input:focus,
.crt-input-icon textarea:focus,
.crt-input-icon select:focus {
    border-color: var(--primary, #ff3008);
    box-shadow: 0 0 0 4px rgba(255, 48, 8, 0.12);
}

.crt-schedule-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.crt-schedule-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.crt-pretty-dropdown {
    position: relative;
    min-width: 0;
}

.crt-pretty-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border: 1.5px solid var(--border, #e0e0e0);
    border-radius: 14px;
    background: #fff;
    color: var(--text-dark, #191919);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.crt-pretty-trigger:hover {
    border-color: #d0d5dd;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.07);
    transform: translateY(-1px);
}

.crt-pretty-dropdown.open .crt-pretty-trigger {
    border-color: var(--primary, #ff3008);
    box-shadow: 0 0 0 4px rgba(255, 48, 8, 0.12);
}

.crt-pretty-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255, 48, 8, 0.12), rgba(255, 48, 8, 0.04));
    color: var(--primary, #ff3008);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.crt-pretty-label {
    flex: 1;
    font-weight: 600;
    text-align: left;
    color: var(--text-dark, #191919);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crt-pretty-trigger.is-placeholder .crt-pretty-label {
    color: #9ca3af;
    font-weight: 500;
}

.crt-pretty-caret {
    font-size: 0.72rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.crt-pretty-dropdown.open .crt-pretty-caret {
    transform: rotate(180deg);
    color: var(--primary, #ff3008);
}

.crt-pretty-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border, #e6e8ee);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.crt-pretty-dropdown.open .crt-pretty-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.crt-pretty-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    color: var(--text-dark, #191919);
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.crt-pretty-item:hover {
    background: rgba(255, 48, 8, 0.06);
    color: var(--primary, #ff3008);
}

.crt-pretty-item.active {
    background: rgba(255, 48, 8, 0.1);
    color: var(--primary, #ff3008);
    font-weight: 700;
}

.crt-pretty-item .crt-pretty-sub {
    font-size: 0.74rem;
    color: #9ca3af;
    font-weight: 600;
}

.crt-pretty-item.active .crt-pretty-sub {
    color: var(--primary, #ff3008);
}

.crt-pretty-empty {
    padding: 14px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 600;
}

.crt-schedule-option input {
    display: none;
}

.crt-schedule-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1.5px solid var(--border, #e8e8e8);
    border-radius: 11px;
    background: #fff;
    color: var(--text-gray, #666);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.crt-schedule-option input:checked + span {
    border-color: var(--primary, #ff3008);
    background: #fff6f3;
    color: var(--primary, #ff3008);
}

.crt-schedule-option.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.crt-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-gray, #9ca3af);
    font-size: 0.74rem;
    font-weight: 600;
}

.crt-side {
    position: sticky;
    top: 84px;
    min-width: 0;
}

.crt-summary {
    background: #fff;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
    animation: crtFade 0.4s ease;
}

.crt-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border, #f0f0f0);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-dark, #191919);
}

.crt-summary-title i {
    color: var(--primary, #ff3008);
}

.crt-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
    font-size: 0.875rem;
    color: var(--text-gray, #767676);
}

.crt-sum-row span:last-child {
    font-weight: 700;
    color: var(--text-dark, #191919);
}

.crt-promo-section {
    margin: 14px 0;
    padding: 12px 0;
    border-top: 1px dashed var(--border, #e8e8e8);
}
.crt-promo-input-wrap {
    position: relative;
    display: flex;
    gap: 8px;
}
.crt-promo-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary, #ff3008);
    font-size: 0.82rem;
    pointer-events: none;
}
.crt-promo-input-wrap input {
    flex: 1;
    min-height: 40px;
    padding: 10px 12px 10px 34px;
    border: 1.5px solid #d9dee7;
    border-radius: 10px;
    font-size: 0.84rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.4px;
    outline: none;
    background: #fff;
    color: var(--text-dark, #191919);
    transition: all 0.18s ease;
}
.crt-promo-input-wrap input:focus {
    border-color: var(--primary, #ff3008);
    box-shadow: 0 0 0 4px rgba(255, 48, 8, 0.12);
}
.crt-promo-btn {
    min-height: 40px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff5a2c 0%, var(--primary, #ff3008) 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.crt-promo-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}
.crt-promo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.crt-promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
}
.crt-promo-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: #047857;
}
.crt-promo-tag i {
    margin-right: 4px;
}
.crt-promo-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #d1fae5;
    color: #047857;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
}
.crt-promo-remove:hover {
    background: #a7f3d0;
}
.crt-promo-error {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--danger, #dc2626);
}
.crt-sum-row.discount-row span {
    color: #047857;
}
.crt-discount-val {
    font-weight: 700;
}

.crt-sum-divider {
    height: 1px;
    margin: 16px 0;
    background: var(--border, #f0f0f0);
}

.crt-sum-row.total {
    margin-bottom: 0;
    padding: 14px 16px;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff4f0, #ffe7df);
}

.crt-sum-row.total span:first-child {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark, #191919);
}

.crt-sum-amount {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: var(--primary, #ff3008) !important;
}

.crt-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 18px;
    padding: 15px 20px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, #ff5a2c 0%, var(--primary, #ff3008) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}

.crt-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 48, 8, 0.44);
    filter: brightness(1.04);
}

.crt-checkout-btn:active {
    transform: translateY(0);
}

.crt-checkout-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
    transform: none;
}

.crt-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 13px;
    font-size: 0.76rem;
    color: var(--text-gray, #9ca3af);
}

.crt-secure i {
    color: #22c55e;
}

.crt-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border, #f0f0f0);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-gray, #767676);
    text-decoration: none;
    transition: color 0.15s;
}

.crt-continue:hover {
    color: var(--primary, #ff3008);
}

.crt-empty {
    max-width: 480px;
    margin: 0 auto;
    padding: 52px 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
    animation: crtFade 0.4s ease;
}

.crt-empty-ic {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary, #ff3008);
    background: #fff1ec;
}

.crt-empty h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark, #191919);
    margin-bottom: 8px;
}

.crt-empty p {
    font-size: 0.9rem;
    color: var(--text-gray, #767676);
    margin-bottom: 22px;
}

.crt-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff5a2c 0%, var(--primary, #ff3008) 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(255, 48, 8, 0.32);
    transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}

.crt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 48, 8, 0.42);
    filter: brightness(1.04);
}

@keyframes crtFade {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
    .crt-grid {
        grid-template-columns: 1fr;
    }

    .crt-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .crt-hero {
        padding: 42px 16px 96px;
    }

    .crt-card-head {
        padding: 16px;
    }

    .crt-items {
        padding: 6px;
    }

    .crt-card-body {
        padding: 18px 16px;
    }

    .crt-item {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "img info del"
            "img qty  sub";
        gap: 6px 12px;
        padding: 12px 8px;
    }

    .crt-item-img {
        width: 58px;
        height: 58px;
        align-self: start;
    }

    .crt-item-del {
        align-self: start;
    }

    .crt-item-sub {
        align-self: end;
    }

    .crt-type-selector {
        gap: 8px;
    }

    .crt-payment-selector {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .crt-schedule-selects {
        grid-template-columns: 1fr;
    }

    .order-type-option {
        padding: 12px 4px;
    }

    .payment-method-option {
        padding: 12px;
    }

    .crt-type-label {
        font-size: 0.74rem;
    }
}



.scart-guest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 4px;
    width: fit-content;
}
.scart-guest-badge.own {
    background-color: hsla(28, 100%, 95%, 1);
    color: hsl(12, 100%, 45%);
    border: 1px solid hsla(28, 100%, 85%, 1);
}
.scart-guest-badge.other {
    background-color: hsla(210, 100%, 96%, 1);
    color: hsl(210, 100%, 40%);
    border: 1px solid hsla(210, 100%, 88%, 1);
}
.scart-guest-badge i {
    font-size: 0.8rem;
}

.crt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.crt-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.crt-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.35), 0 12px 24px -12px rgba(0, 0, 0, 0.18);
    text-align: center;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.crt-modal-overlay.is-open .crt-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.crt-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #475569;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.16s, color 0.16s, transform 0.16s;
}

.crt-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.crt-modal-icon {
    width: 64px;
    height: 64px;
    margin: 4px auto 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.crt-modal-icon-closed {
    background: #fee2e2;
    color: #b91c1c;
}

.crt-modal-icon-warning {
    background: #fef3c7;
    color: #b45309;
}

.crt-modal-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.crt-modal-message {
    margin: 0 0 20px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
    word-wrap: break-word;
}

.crt-modal-message strong {
    color: var(--primary, #ff3008);
    font-weight: 700;
}

.crt-modal-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff5a2c 0%, var(--primary, #ff3008) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}

.crt-modal-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 48, 8, 0.32);
    filter: brightness(1.04);
}

.crt-modal-ok:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .crt-modal-box {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }
    .crt-modal-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    .crt-modal-title {
        font-size: 1.05rem;
    }
    .crt-modal-message {
        font-size: 0.88rem;
    }
}
