html.dark .order-panel {
    background: #1e293b;
    border-color: rgba(255, 255, 255, .07)
}

html.dark .order-trust {
    background: #1e293b;
    border-color: rgba(255, 255, 255, .07)
}

html.dark .trust-item {
    background: #243044;
    border-color: rgba(255, 255, 255, .07)
}

html.dark .cart-panel {
    background: #243044;
    border-color: rgba(255, 255, 255, .08)
}

html.dark .order-panel,
html.dark .order-form-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, .07)
}

html.dark .order-trust,
html.dark .order-trust-panel {
    background: #1e293b;
    border-color: rgba(255, 255, 255, .07)
}

html.dark .trust-item {
    background: #243044;
    border-color: rgba(255, 255, 255, .07)
}

.cart-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--red);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    display: grid;
    place-items: center;
    border: 2px solid #fff
}

.journey-bar {
    display: none
}

.order-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start
}

.order-info {
    position: relative
}

.trust-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm)
}

html.dark .trust-card {
    background: #1e293b
}

.trust-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    transition: background .2s
}

.trust-item:last-child {
    border-bottom: none
}

.trust-item:hover {
    background: var(--blue-pale)
}

.trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--blue-pale);
    color: var(--blue);
    font-size: 14px;
    flex-shrink: 0;
    display: grid;
    place-items: center
}

.trust-text b {
    font-size: 13.5px;
    font-weight: 800;
    display: block;
    margin-bottom: 3px;
    color: var(--text)
}

.trust-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0
}

.order-form-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    box-shadow: var(--shadow-sm)
}

.order-form-card h2 {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--text)
}

.order-form-card>p {
    color: var(--text-muted);
    font-size: 13.5px
}

.order-summary-strip {
    background: var(--blue-pale);
    border: 1px solid rgba(29, 78, 216, .15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.order-summary-strip.visible {
    display: flex
}

.order-summary-name {
    font-weight: 800;
    font-size: 14px;
    color: var(--text)
}

.order-summary-price {
    font-family: var(--font-display);
    color: var(--blue);
    font-size: 18px;
    font-weight: 800
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blue-pale);
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s
}

.cart-item:hover {
    border-color: var(--border-em)
}

.cart-item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.cart-item-price {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--blue);
    flex-shrink: 0
}

.cart-remove {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(220, 38, 38, .1);
    border: 1px solid rgba(220, 38, 38, .2);
    color: var(--red);
    font-size: 11px;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background .15s
}

.cart-remove:hover {
    background: rgba(220, 38, 38, .2)
}

html.dark .cart-item {
    background: #243044;
    border-color: rgba(255, 255, 255, .07)
}

html.dark .cart-item:hover {
    border-color: rgba(255, 255, 255, .15)
}

.journey-bar {
    display: none
}

.order-form-card {
    border-radius: var(--r5);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: var(--s4)
}

.order-form-card h2 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    letter-spacing: -.02em
}

.order-form-card>p {
    font-size: var(--text-sm);
    color: var(--text-muted)
}

.trust-card {
    border-radius: var(--r4);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    overflow: hidden
}

.trust-item {
    padding: 14px var(--s2);
    border-bottom: 1px solid var(--border)
}

.trust-item:hover {
    background: var(--surface-2)
}

.trust-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--r2);
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 13px
}

.trust-text b {
    font-size: 13px;
    font-weight: var(--weight-bold)
}

.trust-text p {
    font-size: 11.5px;
    color: var(--text-muted)
}

@media(max-width:1080px) {
    .order-layout {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    #order {
        padding: 32px 0 24px
    }

    #order .section-header {
        padding: 0 16px
    }

    .order-layout {
        gap: 16px
    }

    .trust-card {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 12px
    }

    .trust-card::-webkit-scrollbar {
        display: none
    }

    .trust-item {
        flex: 0 0 auto;
        min-width: 180px;
        padding: 14px 16px;
        border-bottom: none;
        border-left: 1px solid var(--border);
        flex-direction: column;
        gap: 8px
    }

    .trust-item:first-child {
        border-left: none
    }

    .trust-text b {
        font-size: 12.5px
    }

    .trust-text p {
        font-size: 11px
    }

    .order-form-card {
        padding: 20px 16px;
        border-radius: 14px
    }

    .order-form-card h2 {
        font-size: 20px
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .btn-send {
        font-size: 15px;
        padding: 14px;
        border-radius: 12px;
        min-height: 52px
    }

    .security-notice {
        font-size: 11.5px
    }

    .payment-note {
        font-size: 11.5px
    }
}

.order-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%
}

.order-info {
    position: static
}

@media (max-width: 768px) {
    #order {
        padding: 28px 0 20px;
        overflow: visible
    }

    #order .wrap {
        width: calc(100% - 24px);
        max-width: 100%;
        padding: 0;
        overflow: visible
    }

    .order-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        overflow: visible
    }

    .order-form-card {
        width: 100%;
        padding: 18px 14px;
        border-radius: 14px;
        border: 1.5px solid var(--border);
        overflow: visible;
        box-sizing: border-box;
        margin: 0
    }

    .order-form-card h2 {
        font-size: 19px;
        margin-bottom: 4px;
        line-height: 1.3
    }

    .order-form-card>p {
        font-size: 12.5px;
        line-height: 1.6;
        margin-bottom: 16px
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        overflow: visible
    }

    .field {
        width: 100%;
        overflow: visible
    }

    .field label {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 6px;
        display: block
    }

    .field input,
    .field select,
    .field textarea {
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        padding: 11px 14px;
        font-size: 14px;
        border-radius: 10px;
        border: 1.5px solid var(--border);
        box-sizing: border-box;
        direction: rtl;
        background: var(--surface-2);
        outline: none;
        font-family: var(--font-body)
    }

    .field textarea {
        min-height: 88px;
        resize: none
    }

    .pick {
        width: 100%;
        min-height: 46px;
        padding: 11px 14px;
        border-radius: 10px;
        border: 1.5px solid var(--border);
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 8px;
        overflow: hidden;
        background: var(--surface-2)
    }

    .pick-placeholder {
        font-size: 13px;
        color: var(--text-dim);
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: normal;
        word-break: break-word;
        overflow: hidden
    }

    .order-info {
        width: 100%;
        overflow: hidden
    }

    .trust-card {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 12px;
        border: 1px solid var(--border);
        gap: 0
    }

    .trust-card::-webkit-scrollbar {
        display: none
    }

    .trust-item {
        flex: 0 0 auto;
        min-width: 160px;
        padding: 12px 14px;
        flex-direction: column;
        gap: 6px;
        border-bottom: none;
        border-left: 1px solid var(--border);
        box-sizing: border-box
    }

    .trust-item:last-child {
        border-left: none
    }

    .trust-text b {
        font-size: 12px
    }

    .trust-text p {
        font-size: 11px
    }

    .security-notice,
    .payment-note {
        font-size: 11.5px;
        word-break: break-word;
        white-space: normal;
        box-sizing: border-box;
        width: 100%
    }

    .form-steps {
        display: none
    }
}

@media (max-width: 768px) {
    #order {
        padding: 28px 0 20px;
        overflow-x: hidden
    }

    #order .wrap {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        margin: 0 auto;
        box-sizing: border-box;
        overflow: visible
    }

    .order-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        box-sizing: border-box
    }

    .order-info {
        width: 100%;
        overflow: hidden;
        box-sizing: border-box
    }

    .trust-card {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 12px;
        border: 1px solid var(--border);
        width: 100%;
        box-sizing: border-box
    }

    .trust-card::-webkit-scrollbar {
        display: none
    }

    .trust-item {
        flex: 0 0 auto;
        min-width: 155px;
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        border-bottom: none;
        border-left: 1px solid var(--border);
        box-sizing: border-box
    }

    .trust-item:last-child {
        border-left: none
    }

    .trust-text b {
        font-size: 12px
    }

    .trust-text p {
        font-size: 11px
    }

    .security-notice,
    .payment-note {
        width: 100%;
        box-sizing: border-box;
        font-size: 11.5px;
        word-break: break-word;
        overflow-wrap: break-word
    }

    .order-form-card {
        width: 100%;
        box-sizing: border-box;
        padding: 18px 16px;
        border-radius: 14px;
        border: 1.5px solid var(--border);
        margin: 0;
        overflow: visible
    }

    .order-form-card h2 {
        font-size: 19px;
        margin-bottom: 4px;
        line-height: 1.3
    }

    .order-form-card>p {
        font-size: 12.5px;
        margin-bottom: 16px;
        line-height: 1.6
    }

    .form-steps {
        display: none
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        box-sizing: border-box
    }

    .field {
        width: 100%;
        min-width: 0;
        box-sizing: border-box
    }

    .field label,
    .form-grid label {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-muted);
        margin-bottom: 6px;
        display: block;
        box-sizing: border-box
    }

    .field input,
    .field select,
    .field textarea,
    .form-grid input,
    .form-grid select,
    .form-grid textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 46px;
        padding: 11px 13px;
        font-size: 14px;
        border-radius: 10px;
        border: 1.5px solid var(--border);
        background: var(--surface-2);
        color: var(--text);
        font-family: var(--font-body);
        direction: rtl;
        outline: none;
        display: block
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
        border-color: var(--blue-light);
        box-shadow: 0 0 0 3px var(--blue-pale);
        background: var(--surface)
    }

    .field textarea {
        min-height: 90px;
        resize: none
    }

    .pick {
        width: 100%;
        box-sizing: border-box;
        min-height: 46px;
        padding: 10px 13px;
        border-radius: 10px;
        border: 1.5px solid var(--border);
        background: var(--surface-2);
        display: flex;
        align-items: center;
        gap: 8px;
        overflow: hidden
    }

    .pick-placeholder {
        font-size: 13px;
        color: var(--text-dim);
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis
    }

    .field-hint {
        font-size: 11.5px;
        color: var(--text-dim);
        margin-top: 5px;
        display: flex;
        align-items: center;
        gap: 5px;
        word-break: break-word
    }

    .btn-send {
        width: 100%;
        box-sizing: border-box;
        min-height: 52px;
        font-size: 15px;
        font-weight: 800;
        padding: 0 16px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        overflow: hidden
    }

    .btn-send i {
        font-size: 18px;
        flex-shrink: 0
    }

    .btn-primary,
    .btn-secondary,
    .btn-ghost-full {
        width: 100%;
        box-sizing: border-box;
        min-height: 46px;
        font-size: 14px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 10px
    }

    .sticky-order-cta {
        left: 10px;
        right: 10px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        z-index: 85;
        box-sizing: border-box
    }

    .sticky-order-cta .btn-send {
        border-radius: 999px;
        min-height: 50px;
        box-shadow: 0 8px 28px rgba(37, 99, 235, .4)
    }

    #order,
    #order .wrap,
    .order-layout,
    .order-form-card,
    .order-info,
    .form-grid,
    .field {
        max-width: 100%;
        overflow-x: visible
    }
}

.order-form-card {
    padding: 14px 12px
}