.custom-order-page {
    --custom-ink: #252016;
    --custom-muted: #72695d;
    --custom-cream: #fff8ec;
    --custom-paper: #fffdf8;
    --custom-line: #eadfce;
    min-width: 320px;
    background:
        radial-gradient(circle at 5% 8%, rgba(255, 166, 77, .18), transparent 24rem),
        linear-gradient(180deg, #fffaf2 0, #f7f4ee 44rem, #f5f7fa 100%);
    color: var(--custom-ink);
}

.custom-order-page .hidden { display: none !important; }
.custom-order-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 76px;
    padding: 9px clamp(16px, 4vw, 54px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255, 253, 248, .94);
    border-bottom: 1px solid rgba(234, 223, 206, .9);
    backdrop-filter: blur(14px);
}

.custom-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-brand img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 20px rgba(53, 42, 23, .13); }
.custom-brand-copy { min-width: 0; display: grid; }
.custom-brand-name { display: flex; align-items: baseline; gap: 6px; font-family: "Lobster", cursive; font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 400; line-height: 1; }
.custom-brand-chatpata { color: var(--color-primary); }
.custom-brand-club { color: #159447; }
.custom-brand-tagline,
.custom-brand-slogan,
.custom-fssai-license { overflow: hidden; max-width: 230px; color: var(--custom-muted); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.custom-brand-tagline { margin-top: 4px; color: #18763d; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.custom-brand-slogan { margin-top: 1px; font-size: .64rem; font-weight: 500; }
.custom-fssai-license { margin-top: 1px; color: #5f6b7a; font-size: .58rem; font-weight: 600; }

.custom-back-link {
    min-height: 42px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--custom-line);
    border-radius: 999px;
    background: #fff;
    color: var(--custom-ink);
    font-size: .9rem;
    font-weight: 600;
}
.custom-back-link:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

.custom-progress { position: sticky; top: 76px; z-index: 28; padding: 9px clamp(16px, 4vw, 54px); background: rgba(255, 253, 248, .97); border-bottom: 1px solid var(--custom-line); backdrop-filter: blur(12px); }
.custom-progress-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(250px, .85fr) minmax(460px, 1.15fr); align-items: center; gap: 24px; }
.custom-progress-heading { min-width: 0; display: grid; gap: 1px; }
.custom-progress-heading > span { color: var(--color-primary-dark); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.custom-progress-heading strong { overflow: hidden; color: var(--custom-ink); font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.custom-progress-heading small { color: var(--custom-muted); font-size: .68rem; }
.custom-progress-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.custom-progress-step { min-width: 0; min-height: 44px; padding: 7px 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--custom-line); border-radius: 12px; background: #fff; color: var(--custom-muted); font-size: .78rem; }
.custom-progress-step span { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; background: #eee7dd; font-weight: 700; }
.custom-progress-step strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-progress-step.active { border-color: var(--color-primary); color: var(--color-primary-dark); box-shadow: 0 6px 16px rgba(255, 107, 0, .12); }
.custom-progress-step.active span { background: var(--color-primary); color: #fff; }
.custom-progress-step.complete span { background: var(--color-success); color: #fff; }
.custom-progress-step:disabled { opacity: .48; cursor: not-allowed; }

.custom-page-shell { width: min(1440px, 100%); margin: 0 auto; padding: 28px clamp(16px, 4vw, 54px) 130px; }
.custom-wizard-panel { scroll-margin-top: 158px; }
.custom-wizard-panel.active { animation: custom-panel-enter .28s ease-out; }
@keyframes custom-panel-enter { from { opacity: .2; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.custom-intro {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 4vw, 38px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-radius: 26px;
    background: linear-gradient(125deg, #2c2419, #483523 68%, #713b17);
    box-shadow: 0 22px 48px rgba(65, 44, 21, .16);
}
.custom-intro::after {
    content: "";
    position: absolute;
    right: -65px;
    top: -90px;
    width: 250px;
    height: 250px;
    border: 46px solid rgba(255, 147, 46, .18);
    border-radius: 50%;
}
.custom-intro > * { position: relative; z-index: 1; }
.custom-eyebrow { margin-bottom: 7px; color: #ffbc70; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.custom-intro h1 { max-width: 780px; color: #fff; font-size: clamp(1.8rem, 5vw, 3.1rem); letter-spacing: -.04em; }
.custom-intro > div > p:last-child { max-width: 760px; margin-top: 10px; color: #e7ded2; font-size: clamp(.95rem, 2vw, 1.08rem); }
.custom-process-note { flex: 0 0 min(290px, 32%); padding: 17px 18px; display: grid; gap: 4px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.09); }
.custom-process-note strong { color: #ffbf75; font-size: 1rem; }
.custom-process-note span { color: #fff; font-size: .86rem; line-height: 1.5; }

.custom-alert { margin-top: 18px; padding: 14px 16px; border: 1px solid #f5c2c0; border-radius: 14px; background: #fff4f3; color: #9f241f; }
.custom-builder-layout { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.custom-catalog-panel,
.custom-draft-panel,
.custom-saved-section,
.custom-inquiry-section { border: 1px solid var(--custom-line); border-radius: 22px; background: rgba(255, 253, 248, .96); box-shadow: 0 14px 34px rgba(71, 53, 29, .07); }
.custom-catalog-panel { padding: clamp(18px, 3vw, 28px); }
.custom-draft-panel { position: sticky; top: 184px; padding: 22px; }

.custom-section-heading { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.custom-section-heading > div,
.custom-draft-header { display: flex; align-items: flex-start; gap: 12px; }
.custom-section-heading h2,
.custom-draft-header h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.custom-section-heading p,
.custom-draft-header p { margin-top: 4px; color: var(--custom-muted); font-size: .88rem; }
.custom-step-number { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--color-primary); color: #fff; font-weight: 700; box-shadow: 0 7px 16px rgba(255, 107, 0, .23); }
.custom-start-badge { flex: 0 0 auto; min-height: 30px; padding: 6px 9px; display: inline-flex; align-items: center; border: 1px solid #efc89c; border-radius: 999px; background: #fff7ea; color: var(--color-primary-dark); font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.custom-catalog-controls { position: sticky; top: 180px; z-index: 5; margin: 0 -8px 16px; padding: 8px; display: grid; grid-template-columns: minmax(190px, 230px) minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid rgba(234, 223, 206, .85); border-radius: 15px; background: rgba(255, 253, 248, .96); backdrop-filter: blur(10px); }
.custom-search { width: 100%; margin: 0; }
.custom-search input { background: #fff; }

.custom-category-list { margin: 0; padding: 3px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.custom-category-list button { flex: 0 0 auto; min-height: 38px; padding: 8px 14px; border: 1px solid var(--custom-line); border-radius: 999px; background: #fff; color: var(--custom-muted); font-weight: 600; }
.custom-category-list button.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.custom-catalog-message { min-height: 160px; display: grid; place-items: center; color: var(--custom-muted); text-align: center; }
.custom-items-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.custom-show-more { grid-column: 1 / -1; min-height: 46px; border: 1px solid var(--color-primary); border-radius: 13px; color: var(--color-primary-dark); background: #fff7ed; font-weight: 700; }
.custom-item-card { min-width: 0; overflow: hidden; display: grid; grid-template-columns: 112px minmax(0, 1fr); border: 1px solid var(--custom-line); border-radius: 17px; background: #fff; }
.custom-item-image { width: 112px; height: 100%; min-height: 158px; object-fit: cover; background: #f0e8db; }
.custom-item-copy { min-width: 0; padding: 13px; display: flex; flex-direction: column; }
.custom-item-heading { display: flex; justify-content: space-between; gap: 10px; }
.custom-item-category { display: block; color: var(--color-primary-dark); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.custom-item-name { margin-top: 2px; font-size: 1rem; }
.custom-item-price { flex: 0 0 auto; color: var(--custom-ink); font-size: .95rem; }
.custom-item-description { margin-top: 6px; color: var(--custom-muted); font-size: .78rem; line-height: 1.4; }
.custom-item-footer { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.custom-portion-label { color: var(--custom-muted); font-size: .76rem; font-weight: 600; }
.custom-item-quantity,
.custom-number-control { display: grid; grid-template-columns: 34px 42px 34px; align-items: center; border: 1px solid var(--custom-line); border-radius: 11px; background: var(--custom-paper); }
.custom-item-quantity button,
.custom-number-control button { width: 34px; height: 34px; color: var(--color-primary-dark); font-size: 1.2rem; font-weight: 700; }
.custom-item-count { text-align: center; font-size: .9rem; font-weight: 700; }
.custom-item-limit { min-height: 16px; margin-top: 6px; color: var(--custom-muted); font-size: .68rem; }

.custom-draft-items { min-height: 112px; margin: 18px 0; display: grid; align-content: start; gap: 9px; }
.custom-empty-copy { padding: 20px; border: 1px dashed #ddcdb9; border-radius: 14px; background: var(--custom-cream); color: var(--custom-muted); text-align: center; }
.custom-draft-line { display: flex; justify-content: space-between; gap: 12px; color: var(--custom-muted); font-size: .88rem; }
.custom-draft-line strong { color: var(--custom-ink); }
.custom-price-ticket { margin: 16px -5px 20px; padding: 16px; display: grid; gap: 9px; border: 1px dashed #d6b98e; border-radius: 15px; background: #fff8e9; }
.custom-price-ticket > div,
.custom-review-card > div { display: flex; justify-content: space-between; gap: 16px; }
.custom-price-ticket span,
.custom-review-card span { color: var(--custom-muted); font-size: .86rem; }
.custom-price-total { margin-top: 3px; padding-top: 10px; border-top: 1px solid #e5cfaa; }
.custom-price-total strong { color: var(--color-primary-dark); font-size: 1.12rem; }
.custom-number-control { width: 150px; grid-template-columns: 42px 66px 42px; margin-bottom: 7px; }
.custom-number-control button { width: 42px; height: 42px; }
.custom-number-control input { height: 42px; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 700; appearance: textfield; }
.custom-number-control input::-webkit-inner-spin-button { display: none; }
.custom-number-control.is-disabled { opacity: .52; }
.custom-field-help { margin: 5px 0 14px; color: var(--custom-muted); font-size: .8rem; }
.custom-error-text { color: var(--color-danger) !important; }
.custom-primary-button,
.custom-submit-button { width: 100%; min-height: 48px; padding: 11px 18px; border-radius: 13px; background: var(--gradient-primary); color: #fff; font-weight: 700; box-shadow: 0 10px 22px rgba(255, 107, 0, .22); }
.custom-primary-button:hover:not(:disabled),
.custom-submit-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(255, 107, 0, .28); }
.custom-text-button { width: 100%; min-height: 40px; margin-top: 7px; color: var(--custom-muted); font-weight: 600; }

.custom-saved-section,
.custom-inquiry-section { margin-top: 24px; padding: clamp(20px, 3vw, 30px); }
.custom-wizard-panel.custom-saved-section,
.custom-wizard-panel.custom-inquiry-section { margin-top: 0; }
.custom-page-step-hero { margin: -6px -6px 24px; padding: clamp(20px, 4vw, 30px); display: flex; align-items: center; gap: 16px; overflow: hidden; position: relative; border-radius: 19px; background: linear-gradient(120deg, #30251a, #68401f); color: #fff; }
.custom-page-step-hero::after { content: ""; position: absolute; right: -45px; top: -70px; width: 190px; height: 190px; border: 35px solid rgba(255, 165, 69, .16); border-radius: 50%; }
.custom-page-step-hero > * { position: relative; z-index: 1; }
.custom-page-step-hero .custom-step-number { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; font-size: 1.08rem; }
.custom-page-step-hero p { color: #ffc47e; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.custom-page-step-hero h1 { margin-top: 2px; color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); }
.custom-page-step-hero div > span { display: block; margin-top: 4px; color: #eadfd2; font-size: .84rem; }
.custom-saved-list { display: grid; gap: 14px; }
.custom-configuration-card { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; border: 1px solid var(--custom-line); border-radius: 16px; background: #fff; }
.custom-configuration-card h3 { font-size: 1rem; }
.custom-configuration-card p { margin-top: 6px; color: var(--custom-muted); font-size: .84rem; }
.custom-configuration-quantity { margin-top: 12px; padding: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 14px; border: 1px solid #ecd5b5; border-radius: 13px; background: #fff8eb; }
.custom-configuration-quantity > strong { font-size: .87rem; }
.custom-configuration-quantity > small { grid-column: 1 / -1; color: var(--custom-muted); font-size: .7rem; }
.custom-configuration-quantity-control { display: grid; grid-template-columns: 38px 62px 38px; align-items: center; overflow: hidden; border: 1px solid #d9c3a4; border-radius: 11px; background: #fff; }
.custom-configuration-quantity-control button { width: 38px; height: 38px; color: var(--color-primary-dark); font-size: 1.15rem; font-weight: 700; }
.custom-configuration-quantity-control input { height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 700; appearance: textfield; }
.custom-configuration-quantity-control input::-webkit-inner-spin-button { display: none; }
.custom-configuration-meta { margin-top: 13px; display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 8px; }
.custom-configuration-stat { padding: 10px; display: grid; gap: 3px; border-radius: 12px; background: var(--custom-cream); }
.custom-configuration-stat span { color: var(--custom-muted); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.custom-configuration-stat strong { color: var(--custom-ink); font-size: .92rem; }
.custom-configuration-stat.total { background: #fff0df; }
.custom-configuration-stat.total strong { color: var(--color-primary-dark); font-size: 1.03rem; }
.custom-configuration-packing { margin-top: 10px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #eadfce; border-radius: 12px; background: #faf8f3; }
.custom-configuration-packing > div { display: grid; gap: 2px; }
.custom-configuration-packing strong { color: var(--custom-ink); font-size: .8rem; }
.custom-configuration-packing span { color: var(--custom-muted); font-size: .7rem; }
.custom-configuration-packing.individual { border-color: #efc89c; background: #fff8ed; }
.custom-configuration-packing-value { flex: 0 0 auto; color: var(--color-primary-dark) !important; font-size: .95rem !important; white-space: nowrap; }
.custom-configuration-actions { display: flex; align-items: center; gap: 8px; }
.custom-secondary-button { min-height: 38px; padding: 8px 11px; border: 1px solid var(--custom-line); border-radius: 10px; color: var(--custom-ink); font-weight: 600; }
.custom-danger-button { color: var(--color-danger); }
.custom-add-combination-button { width: 100%; min-height: 48px; margin-top: 14px; border: 1px dashed var(--color-primary); border-radius: 13px; background: #fff8ef; color: var(--color-primary-dark); font-weight: 700; }
.custom-add-combination-button span { margin-right: 6px; font-size: 1.15rem; }
.custom-packing-fieldset { margin: 22px 0; padding: 18px; border: 1px solid var(--custom-line); border-radius: 16px; background: #fffaf2; }
.custom-packing-fieldset legend { padding: 0 7px; font-weight: 700; }
.custom-packing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.custom-packing-option { margin: 0; padding: 15px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 10px; border: 1px solid var(--custom-line); border-radius: 14px; background: #fff; cursor: pointer; }
.custom-packing-option:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 7px 18px rgba(255, 107, 0, .12); }
.custom-packing-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); }
.custom-packing-option-copy { display: grid; gap: 4px; }
.custom-packing-option-copy strong { font-size: .9rem; }
.custom-packing-option-copy small { color: var(--custom-muted); font-size: .74rem; line-height: 1.45; }
.custom-packing-option-price { color: var(--color-primary-dark); font-weight: 700; white-space: nowrap; }
.custom-step-total-card { margin-top: 20px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 20px; border: 1px solid #ecd5b5; border-radius: 16px; background: linear-gradient(135deg, #fff8eb, #fff); }
.custom-step-total-card > span { color: var(--custom-muted); font-size: .82rem; font-weight: 600; }
.custom-step-total-card strong { grid-row: 1 / 3; grid-column: 2; color: var(--color-primary-dark); font-size: 1.45rem; }
.custom-step-total-card small { color: var(--custom-muted); font-size: .7rem; }

.custom-inquiry-section form { display: grid; gap: 20px; }
.custom-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.custom-form-grid label,
.custom-inquiry-section > form > label { margin: 0; color: var(--custom-ink); font-size: .88rem; font-weight: 600; }
.custom-form-grid input,
.custom-form-grid select,
.custom-inquiry-section textarea { margin-top: 7px; background: #fff; }
.custom-order-type-fieldset { padding: 0; border: 0; }
.custom-order-type-fieldset legend { margin-bottom: 9px; font-size: .88rem; font-weight: 600; }
.custom-order-type-options { display: flex; gap: 12px; }
.custom-order-type-options label { flex: 1; margin: 0; padding: 13px 15px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--custom-line); border-radius: 13px; background: #fff; font-weight: 600; }
.custom-order-type-options input,
.custom-consent input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--color-primary); }
.custom-delivery-fields { padding: 18px; border-radius: 16px; background: #fff8ed; }
.custom-review-card { margin-top: 4px; padding: 20px; display: grid; gap: 10px; border: 1px solid #e2d1b7; border-radius: 17px; background: linear-gradient(135deg, #fffaf0, #fff); }
.custom-review-card h3 { margin-bottom: 5px; }
.custom-review-total { margin-top: 5px; padding-top: 13px; border-top: 1px solid #e5d9c7; }
.custom-review-total strong { color: var(--color-primary-dark); font-size: 1.25rem; }
.custom-review-card p { margin-top: 4px; font-size: .78rem; line-height: 1.5; }
.custom-review-card .custom-delivery-pending-message { margin-top: 2px; padding: 10px 12px; border: 1px solid #efb8b5; border-radius: 10px; background: #fff1f0; color: #a52a24; font-weight: 600; }
.custom-consent { margin: 0; display: flex; align-items: flex-start; gap: 11px; color: var(--custom-ink); font-size: .84rem; line-height: 1.5; }
.custom-submit-button { max-width: 460px; min-height: 54px; justify-self: center; font-size: 1rem; }
.custom-submit-message { text-align: center; font-size: .86rem; }
.custom-submit-message.error { color: var(--color-danger); }
.custom-submit-message.info { color: var(--color-secondary-dark); }

.custom-page-footer { margin: 34px auto 0; padding: 19px 12px 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; border-top: 1px solid var(--custom-line); color: var(--custom-muted); font-size: .78rem; }
.custom-page-footer a { color: var(--custom-ink); font-weight: 600; text-decoration: none; }
.custom-page-footer a:hover,
.custom-page-footer a:focus-visible { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.custom-page-footer-separator { color: #b4aa9c; }

.custom-toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 360px; padding: 12px 15px; border-radius: 12px; background: #252016; color: #fff; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.custom-toast.visible { opacity: 1; transform: translateY(0); }
.custom-wizard-footer { position: fixed; left: 50%; bottom: 14px; z-index: 45; width: min(820px, calc(100vw - 24px)); min-height: 66px; padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(255, 107, 0, .25); border-radius: 18px; background: rgba(37, 32, 22, .97); color: #fff; box-shadow: 0 20px 50px rgba(37, 32, 22, .3); transform: translateX(-50%); backdrop-filter: blur(12px); }
.custom-wizard-summary { min-width: 0; display: grid; justify-items: center; text-align: center; }
.custom-wizard-summary span { overflow: hidden; max-width: 100%; color: #eadfd2; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.custom-wizard-summary strong { overflow: hidden; max-width: 100%; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.custom-wizard-back,
.custom-wizard-continue { min-height: 46px; padding: 9px 15px; border-radius: 12px; font-weight: 700; white-space: nowrap; }
.custom-wizard-back { border: 1px solid rgba(255,255,255,.2); color: #fff; }
.custom-wizard-continue { min-width: 190px; background: var(--color-primary); color: #fff; }
.custom-wizard-continue:disabled { background: #6f665c; color: #d7cfc5; }
.custom-processing-overlay { position: fixed; inset: 0; z-index: 100; padding: 20px; display: grid; place-items: center; background: rgba(24, 19, 13, .64); backdrop-filter: blur(4px); }
.custom-processing-card { width: min(430px, 100%); padding: 30px 24px; border-radius: 22px; background: #fffdf8; text-align: center; box-shadow: 0 30px 80px rgba(25, 19, 11, .32); }
.custom-processing-card h2 { margin-top: 17px; font-size: 1.3rem; }
.custom-processing-card p { margin-top: 8px; color: var(--custom-muted); line-height: 1.55; }
.custom-processing-spinner { width: 54px; height: 54px; margin: auto; border: 5px solid #f3dfc9; border-top-color: var(--color-primary); border-radius: 50%; animation: custom-spin .9s linear infinite; }
.custom-processing-pulse { margin-top: 18px; display: flex; justify-content: center; gap: 6px; }
.custom-processing-pulse span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); animation: custom-pulse 1.1s infinite ease-in-out; }
.custom-processing-pulse span:nth-child(2) { animation-delay: .14s; }
.custom-processing-pulse span:nth-child(3) { animation-delay: .28s; }
@keyframes custom-spin { to { transform: rotate(360deg); } }
@keyframes custom-pulse { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
.custom-success-dialog { position: fixed; inset: 0; width: min(430px, calc(100vw - 28px)); max-height: min(620px, calc(100vh - 28px)); margin: auto; padding: 28px; border: 0; border-radius: 22px; box-shadow: 0 30px 80px rgba(37, 32, 22, .28); text-align: center; }
.custom-success-dialog::backdrop { background: rgba(24, 19, 13, .58); backdrop-filter: blur(3px); }
.custom-success-mark { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e8f8ed; color: var(--color-success); font-size: 1.7rem; font-weight: 700; }
.custom-success-dialog p { margin: 9px 0 17px; }
.custom-reference-box { margin-bottom: 18px; padding: 12px; display: grid; border-radius: 12px; background: var(--custom-cream); }
.custom-reference-box span { color: var(--custom-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.custom-reference-box strong { margin-top: 3px; font-size: 1.12rem; }

@media (max-width: 1040px) {
    .custom-builder-layout { grid-template-columns: minmax(0, 1fr); }
    .custom-items-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .custom-header { min-height: 68px; padding: 7px 14px; }
    .custom-brand img { width: 48px; height: 48px; border-radius: 13px; }
    .custom-brand { gap: 8px; }
    .custom-brand-name { gap: 4px; font-size: 1.25rem; }
    .custom-brand-tagline { margin-top: 2px; font-size: .56rem; }
    .custom-brand-slogan { max-width: 165px; font-size: .54rem; }
    .custom-fssai-license { max-width: 165px; font-size: .49rem; }
    .custom-back-link { padding: 8px 11px; font-size: .78rem; }
    .custom-progress { top: 68px; padding: 7px 9px 8px; }
    .custom-progress-inner { grid-template-columns: 1fr; gap: 7px; }
    .custom-progress-heading { text-align: center; }
    .custom-progress-heading > span { display: none; }
    .custom-progress-heading strong { font-size: .82rem; }
    .custom-progress-heading small { font-size: .62rem; }
    .custom-progress-track { width: 100%; }
    .custom-progress-step { min-height: 38px; padding: 5px; gap: 5px; }
    .custom-progress-step strong { font-size: .68rem; }
    .custom-progress-step span { width: 25px; height: 25px; flex-basis: 25px; }
    .custom-wizard-panel { scroll-margin-top: 174px; }
    .custom-page-shell { padding: 16px 13px 112px; }
    .custom-intro { padding: 22px 18px; display: grid; border-radius: 20px; }
    .custom-process-note { width: 100%; }
    .custom-builder-layout { grid-template-columns: 1fr; }
    .custom-draft-panel { position: static; }
    .custom-section-heading { align-items: stretch; flex-direction: column; }
    .custom-catalog-controls { position: static; grid-template-columns: 1fr; }
    .custom-search { width: 100%; }
    .custom-form-grid { grid-template-columns: 1fr; gap: 13px; }
    .custom-configuration-card { grid-template-columns: 1fr; }
    .custom-configuration-quantity { grid-template-columns: 1fr; }
    .custom-configuration-quantity-control { width: 140px; }
    .custom-configuration-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .custom-configuration-actions { justify-content: flex-end; }
    .custom-configuration-packing { align-items: flex-start; }
    .custom-packing-options { grid-template-columns: 1fr; }
    .custom-wizard-footer { bottom: 8px; width: calc(100vw - 16px); min-height: 62px; gap: 8px; border-radius: 15px; }
    .custom-wizard-back { padding: 8px 10px; }
    .custom-wizard-continue { min-width: 150px; padding: 8px 11px; font-size: .78rem; }
}

@media (max-width: 480px) {
    .custom-brand-name { font-size: 1.16rem; }
    .custom-back-link { max-width: 105px; text-align: center; }
    .custom-item-card { grid-template-columns: 92px minmax(0, 1fr); }
    .custom-item-image { width: 92px; min-height: 138px; }
    .custom-item-copy { padding: 11px; }
    .custom-order-type-options { display: grid; }
    .custom-configuration-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
    .custom-secondary-button { padding: 7px; font-size: .78rem; }
    .custom-configuration-packing { display: grid; gap: 8px; }
    .custom-progress-step strong { font-size: .63rem; }
    .custom-wizard-summary { justify-items: start; text-align: left; }
    .custom-wizard-summary span { max-width: 112px; }
    .custom-wizard-summary strong { max-width: 112px; font-size: .78rem; }
    .custom-wizard-back { width: 42px; padding: 7px; font-size: 0; }
    .custom-wizard-back span { font-size: 1rem; }
    .custom-wizard-continue { min-width: 128px; }
    .custom-step-total-card { grid-template-columns: 1fr; }
    .custom-step-total-card strong { grid-row: auto; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .custom-wizard-panel.active { animation: none; }
}
