.cpo-wrap {
    --cpo-accent: #c8102e;
    --cpo-accent-dark: #981126;
    --cpo-text: #25272b;
    --cpo-muted: #6b7280;
    --cpo-border: #e8eaed;
    --cpo-bg: #f5f4f1;
    color: var(--cpo-text);
    max-width: 980px;
}

.cpo-wrap * {
    box-sizing: border-box;
}

.cpo-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.cpo-heading-row h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.cpo-heading-row p {
    margin: 0;
    color: var(--cpo-muted);
}

.cpo-order-count {
    border: 1px solid var(--cpo-border);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--cpo-muted);
    white-space: nowrap;
    background: #fff;
}

.cpo-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cpo-filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid var(--cpo-border);
    border-radius: 999px;
    background: #fff;
    color: var(--cpo-text);
    text-decoration: none;
    font-weight: 600;
}

.cpo-filter-tab:hover,
.cpo-filter-tab:focus,
.cpo-filter-tab.is-active {
    color: #fff;
    border-color: var(--cpo-accent);
    background: var(--cpo-accent);
}

.cpo-orders-list {
    display: grid;
    gap: 15px;
}

.cpo-order-card {
    overflow: hidden;
    border: 1px solid var(--cpo-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.055);
}

.cpo-card-main {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.cpo-order-image-wrap {
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--cpo-bg);
}

.cpo-order-image,
.cpo-order-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpo-order-image-placeholder {
    display: grid;
    place-items: center;
    font-size: 30px;
}

.cpo-order-topline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cpo-order-topline h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.25;
}

.cpo-order-total {
    font-size: 17px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.cpo-order-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 4px;
    color: var(--cpo-muted);
    font-size: 13px;
}

.cpo-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 700;
}

.cpo-status.is-complete {
    color: #166534;
    background: #dcfce7;
}

.cpo-status.is-active {
    color: #92400e;
    background: #fef3c7;
}

.cpo-status.is-negative {
    color: #991b1b;
    background: #fee2e2;
}

.cpo-order-number {
    margin: 0;
    color: var(--cpo-muted);
    font-size: 13px;
}

.cpo-item-summary {
    margin-top: 13px;
    color: #4b5563;
    font-size: 14px;
}

.cpo-summary-line + .cpo-summary-line {
    margin-top: 4px;
}

.cpo-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.cpo-details-link {
    color: var(--cpo-muted);
    font-size: 14px;
    font-weight: 600;
}

.cpo-wrap .button.cpo-reorder-toggle,
.cpo-wrap .button.cpo-add-selected {
    border: 1px solid var(--cpo-accent);
    border-radius: 6px;
    background: var(--cpo-accent);
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
    padding: 10px 15px;
}

.cpo-wrap .button.cpo-reorder-toggle:hover,
.cpo-wrap .button.cpo-add-selected:hover {
    opacity: .9;
    color: #fff;
}

.cpo-reorder-panel {
    border-top: 1px solid var(--cpo-border);
    padding: 16px 18px 18px;
    background: #fafafa;
}

.cpo-reorder-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cpo-select-all {
    border: 0;
    padding: 0;
    color: var(--cpo-accent);
    background: transparent;
    cursor: pointer;
    font-weight: 700;
}

.cpo-reorder-items {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.cpo-reorder-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--cpo-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.cpo-reorder-item input {
    accent-color: var(--cpo-accent);
}

.cpo-reorder-item-qty {
    color: var(--cpo-muted);
}

.cpo-empty-state {
    padding: 50px 24px;
    border: 1px solid var(--cpo-border);
    border-radius: 14px;
    text-align: center;
    background: #fff;
}

.cpo-empty-icon {
    font-size: 38px;
}

.cpo-empty-state h3 {
    margin: 8px 0;
}

.cpo-empty-state p {
    margin: 0 0 18px;
    color: var(--cpo-muted);
}

.cpo-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
}

.cpo-pagination .page-numbers {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cpo-border);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.cpo-pagination .current {
    border-color: var(--cpo-accent);
    background: var(--cpo-accent);
    color: #fff;
}

.cpo-admin-wrap {
    max-width: 1500px;
}

.cpo-admin-search {
    display: flex;
    gap: 8px;
    max-width: 700px;
    margin: 18px 0;
}

.cpo-admin-search input[type="search"] {
    flex: 1;
    min-height: 38px;
}

.cpo-admin-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
}

.cpo-admin-customer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cpo-admin-customer-header h2 {
    margin: 0 0 4px;
}

.cpo-admin-customer-header p {
    margin: 0;
    color: #646970;
}

.cpo-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.cpo-admin-stats > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.cpo-admin-stats strong {
    font-size: 20px;
}

.cpo-admin-stats span {
    color: #646970;
}

.cpo-admin-table-wrap {
    overflow-x: auto;
}

.cpo-data-table td {
    vertical-align: top;
    min-width: 110px;
}

.cpo-data-table td:nth-child(4),
.cpo-data-table td:nth-child(5) {
    min-width: 260px;
}

@media (max-width: 700px) {
    .cpo-heading-row,
    .cpo-order-topline,
    .cpo-card-actions,
    .cpo-admin-customer-header {
        align-items: stretch;
        flex-direction: column;
    }

    .cpo-card-main {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .cpo-order-image-wrap {
        width: 74px;
        height: 74px;
    }

    .cpo-order-total {
        text-align: left;
    }

    .cpo-wrap .button.cpo-reorder-toggle,
    .cpo-wrap .button.cpo-add-selected {
        width: 100%;
        text-align: center;
    }

    .cpo-admin-stats {
        grid-template-columns: 1fr;
    }
}

/* Hazara Spice admin customer history */
.cpo-admin-wrap {
    --cpo-fp-pink: #c8102e;
    --cpo-fp-pink-dark: #981126;
    --cpo-fp-ink: #25272b;
    --cpo-fp-muted: #68717d;
    --cpo-fp-surface: #f4f3f0;
    --cpo-fp-border: #e6e7e9;
    max-width: 1180px;
}

.cpo-admin-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 18px;
}

.cpo-admin-title-row h1 {
    margin-bottom: 5px;
    color: var(--cpo-fp-ink);
    font-size: 30px;
    font-weight: 750;
}

.cpo-admin-title-row p {
    margin: 0;
    color: var(--cpo-fp-muted);
    font-size: 14px;
}

.cpo-admin-search.cpo-foodpanda-search {
    display: flex;
    gap: 10px;
    max-width: 920px;
    margin: 22px 0 18px;
}

.cpo-foodpanda-search input[type="search"] {
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #cfd3d8;
    border-radius: 8px;
    box-shadow: none;
    font-size: 15px;
}

.cpo-foodpanda-search input[type="search"]:focus {
    border-color: var(--cpo-fp-pink);
    box-shadow: 0 0 0 1px var(--cpo-fp-pink);
}

.cpo-foodpanda-search .button-primary,
.cpo-admin-wrap .cpo-export-button,
.cpo-admin-wrap .cpo-fp-open-order,
.cpo-customer-result .button-primary {
    border-color: var(--cpo-fp-pink) !important;
    background: var(--cpo-fp-pink) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.cpo-foodpanda-search .button-primary {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 650;
}

.cpo-foodpanda-search .button-primary:hover,
.cpo-admin-wrap .cpo-export-button:hover,
.cpo-admin-wrap .cpo-fp-open-order:hover,
.cpo-customer-result:hover .button-primary {
    border-color: var(--cpo-fp-pink-dark) !important;
    background: var(--cpo-fp-pink-dark) !important;
}

.cpo-search-welcome {
    max-width: 920px;
    padding: 58px 30px;
    text-align: center;
}

.cpo-search-welcome-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #f9e7ea;
    color: var(--cpo-fp-pink);
    font-size: 31px;
    font-weight: 700;
}

.cpo-search-welcome h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.cpo-search-welcome p {
    margin: 0;
    color: var(--cpo-fp-muted);
}

.cpo-customer-results-card {
    max-width: 1020px;
    padding: 0;
    overflow: hidden;
}

.cpo-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--cpo-fp-border);
}

.cpo-results-heading h2 {
    margin: 0;
    font-size: 20px;
}

.cpo-results-heading > span {
    display: inline-grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 99px;
    background: #f1f2f4;
    color: var(--cpo-fp-muted);
    font-weight: 700;
}

.cpo-customer-result-list {
    display: grid;
}

.cpo-customer-result {
    display: grid;
    grid-template-columns: 46px minmax(230px 1fr) 92px 135px auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cpo-fp-border);
    color: var(--cpo-fp-ink);
    text-decoration: none;
}

.cpo-customer-result:last-child {
    border-bottom: 0;
}

.cpo-customer-result:hover {
    background: #fff7f7;
    color: var(--cpo-fp-ink);
}

.cpo-customer-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #f9e7ea;
    color: var(--cpo-fp-pink);
    font-size: 18px;
    font-weight: 800;
}

.cpo-customer-result-main,
.cpo-customer-result-stats,
.cpo-customer-result-spend {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.cpo-customer-result-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.cpo-customer-result small {
    overflow: hidden;
    color: var(--cpo-fp-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cpo-customer-result-stats strong,
.cpo-customer-result-spend strong {
    font-size: 15px;
}

.cpo-customer-result .button {
    min-height: 38px;
    border-radius: 7px;
    line-height: 36px;
    white-space: nowrap;
}

.cpo-no-results {
    padding: 34px 22px;
    text-align: center;
}

.cpo-no-results strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}

.cpo-no-results p {
    margin: 0;
    color: var(--cpo-fp-muted);
}

.cpo-foodpanda-profile {
    max-width: 980px;
    margin: 24px 0 0;
    padding: 22px 24px;
    border: 1px solid var(--cpo-fp-border);
    border-radius: 12px;
    background: #fff;
}

.cpo-profile-copy {
    max-width: 720px;
}

.cpo-back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--cpo-fp-pink);
    text-decoration: none;
    font-weight: 650;
}

.cpo-foodpanda-profile h2 {
    margin: 0 0 5px;
    font-size: 25px;
}

.cpo-foodpanda-profile p {
    margin: 0;
    color: var(--cpo-fp-muted);
}

.cpo-foodpanda-profile .cpo-profile-address {
    margin-top: 6px;
    line-height: 1.5;
}

.cpo-admin-wrap .cpo-export-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 7px;
    line-height: 40px;
}

.cpo-foodpanda-stats {
    max-width: 980px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpo-foodpanda-stats > div {
    padding: 18px 20px;
    border-radius: 10px;
    background: #fff;
}

.cpo-foodpanda-stats strong {
    color: var(--cpo-fp-ink);
    font-size: 23px;
}

.cpo-fp-admin-shell {
    max-width: 900px;
    margin-top: 18px;
    padding: 34px 28px 42px;
    border-radius: 12px;
    background: var(--cpo-fp-surface);
}

.cpo-fp-section > h2 {
    margin: 0 0 8px;
    color: #20242a;
    font-size: 20px;
    line-height: 1.3;
}

.cpo-fp-empty-line {
    margin: 0 0 26px;
    color: #444b55;
    font-size: 14px;
}

.cpo-fp-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0;
}

.cpo-fp-filter-tab {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 17px;
    border: 1px solid #cfd2d6;
    border-radius: 999px;
    background: #fff;
    color: #24272d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.cpo-fp-filter-tab:hover {
    border-color: #20242a;
    color: #20242a;
}

.cpo-fp-filter-tab.is-active {
    border-color: #24272d;
    background: #24272d;
    color: #fff;
}

.cpo-past-section > h2 {
    margin-bottom: 12px;
}

.cpo-fp-orders-list {
    display: grid;
    gap: 16px;
}

.cpo-fp-order-card {
    overflow: hidden;
    border: 1px solid #ececef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.cpo-fp-card-main {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
}

.cpo-fp-order-image-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f2f4;
}

.cpo-fp-order-image-wrap .cpo-order-image,
.cpo-fp-order-image-wrap .cpo-order-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpo-fp-cancelled-badge {
    position: absolute;
    inset: auto 5px 5px 5px;
    padding: 3px 5px;
    border-radius: 5px;
    background: rgba(23, 23, 23, 0.82);
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}

.cpo-fp-order-topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.cpo-fp-order-topline h3 {
    margin: 0 0 5px;
    color: #1f2328;
    font-size: 17px;
    line-height: 1.3;
}

.cpo-fp-status-line,
.cpo-fp-order-number {
    margin: 0 0 3px;
    color: var(--cpo-fp-muted);
    font-size: 12px;
    line-height: 1.4;
}

.cpo-fp-order-total {
    color: #22262c;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.cpo-fp-item-lines {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    color: #40464f;
    font-size: 13px;
    line-height: 1.4;
}

.cpo-fp-card-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.cpo-fp-order-details {
    flex: 1;
    min-width: 0;
}

.cpo-fp-order-details summary {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--cpo-fp-pink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.cpo-fp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 9px;
    padding: 14px;
    border: 1px solid var(--cpo-fp-border);
    border-radius: 8px;
    background: #fafafa;
}

.cpo-fp-detail-grid > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.cpo-fp-detail-grid strong {
    color: #343941;
    font-size: 12px;
}

.cpo-fp-detail-grid span {
    color: var(--cpo-fp-muted);
    font-size: 12px;
    line-height: 1.45;
}

.cpo-fp-detail-full {
    grid-column: 1 / -1;
}

.cpo-admin-wrap .cpo-fp-open-order {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 7px;
    line-height: 36px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cpo-customer-result {
        grid-template-columns: 44px minmax(160px 1fr) 80px auto;
    }

    .cpo-customer-result-spend {
        display: none;
    }
}

@media (max-width: 700px) {
    .cpo-admin-search.cpo-foodpanda-search,
    .cpo-foodpanda-profile,
    .cpo-fp-order-topline,
    .cpo-fp-card-actions {
        flex-direction: column;
    }

    .cpo-foodpanda-search .button-primary {
        width: 100%;
    }

    .cpo-customer-result {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .cpo-customer-result-stats,
    .cpo-customer-result-spend,
    .cpo-customer-result .button {
        grid-column: 2;
    }

    .cpo-foodpanda-stats {
        grid-template-columns: 1fr;
    }

    .cpo-fp-admin-shell {
        padding: 22px 14px 30px;
    }

    .cpo-fp-card-main {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding: 13px;
    }

    .cpo-fp-order-image-wrap {
        width: 68px;
        height: 68px;
    }

    .cpo-fp-order-total {
        text-align: left;
    }

    .cpo-fp-detail-grid {
        grid-template-columns: 1fr;
    }

    .cpo-fp-detail-full {
        grid-column: auto;
    }

    .cpo-admin-wrap .cpo-fp-open-order {
        width: 100%;
        text-align: center;
    }
}

/* Hazara Spice customer orders screen */
.cpo-foodpanda-front {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 28px 40px;
    border-radius: 12px;
    background: #f6f6f6;
}

.cpo-front-section > h2 {
    margin: 0 0 8px;
    color: #20242a;
    font-size: 20px;
    line-height: 1.3;
}

.cpo-front-empty-line {
    margin: 0 0 28px;
    color: #444b55;
    font-size: 14px;
}

.cpo-front-active-orders {
    margin-bottom: 26px;
}

.cpo-front-filter-tabs {
    margin: 25px 0 26px;
}

.cpo-foodpanda-front .cpo-filter-tab {
    min-height: 38px;
    border-color: #cfd2d6;
    background: #fff;
    color: #24272d;
    font-size: 14px;
}

.cpo-foodpanda-front .cpo-filter-tab:hover,
.cpo-foodpanda-front .cpo-filter-tab:focus {
    border-color: #24272d;
    background: #fff;
    color: #24272d;
}

.cpo-foodpanda-front .cpo-filter-tab.is-active {
    border-color: #24272d;
    background: #24272d;
    color: #fff;
}

.cpo-front-past-orders > h2 {
    margin-bottom: 12px;
}

.cpo-foodpanda-front .cpo-orders-list {
    gap: 16px;
}

.cpo-foodpanda-front .cpo-order-card {
    border: 1px solid #ececef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.cpo-foodpanda-front .cpo-card-main {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
}

.cpo-foodpanda-front .cpo-order-image-wrap {
    width: 84px;
    height: 84px;
    border-radius: 8px;
}

.cpo-foodpanda-front .cpo-order-topline h3 {
    font-size: 17px;
}

.cpo-foodpanda-front .cpo-order-meta,
.cpo-foodpanda-front .cpo-order-number {
    font-size: 12px;
}

.cpo-foodpanda-front .cpo-status {
    padding: 0;
    background: transparent;
    color: #68717d;
}

.cpo-foodpanda-front .cpo-item-summary {
    margin-top: 12px;
    font-size: 13px;
}

.cpo-foodpanda-front .cpo-details-link {
    color: #68717d;
    font-size: 13px;
}

.cpo-foodpanda-front .button.cpo-reorder-toggle,
.cpo-foodpanda-front .button.cpo-add-selected {
    border-color: #c8102e;
    background: #c8102e;
    color: #fff;
}

@media (max-width: 700px) {
    .cpo-foodpanda-front {
        padding: 22px 14px 30px;
    }

    .cpo-foodpanda-front .cpo-card-main {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding: 13px;
    }

    .cpo-foodpanda-front .cpo-order-image-wrap {
        width: 68px;
        height: 68px;
    }
}


/* Hazara Spice header orders link */
.cpo-header-orders-menu-item > a {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.cpo-header-orders-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}

.cpo-header-orders-menu-item > a:hover,
.cpo-header-orders-menu-item.current-menu-item > a {
    color: #c8102e !important;
}

/* Orders and Reordering page heading */
.cpo-orders-page-heading {
    position: relative;
    overflow: hidden;
    margin: -32px -28px 30px;
    padding: 34px 34px 30px;
    border-radius: 12px 12px 0 0;
    background: #25272b;
    color: #fff;
}

.cpo-orders-page-heading::after {
    position: absolute;
    top: -72px;
    right: -55px;
    width: 190px;
    height: 190px;
    border: 30px solid rgba(200, 16, 46, 0.42);
    border-radius: 50%;
    content: "";
}

.cpo-orders-page-heading h1 {
    position: relative;
    z-index: 1;
    margin: 4px 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.cpo-orders-page-heading p {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.cpo-orders-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #c8102e;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cpo-foodpanda-front .button.cpo-reorder-toggle:hover,
.cpo-foodpanda-front .button.cpo-add-selected:hover,
.cpo-foodpanda-front .button.cpo-reorder-toggle:focus,
.cpo-foodpanda-front .button.cpo-add-selected:focus {
    border-color: #981126;
    background: #981126;
}

.cpo-foodpanda-front .cpo-details-link:hover,
.cpo-foodpanda-front .cpo-details-link:focus,
.cpo-select-all:hover,
.cpo-select-all:focus {
    color: #c8102e;
}

@media (max-width: 700px) {
    .cpo-orders-page-heading {
        margin: -22px -14px 24px;
        padding: 28px 20px 24px;
    }

    .cpo-orders-page-heading::after {
        top: -78px;
        right: -88px;
    }
}

/* Hazara Spice login and logout controls */
.cpo-header-auth-menu-item > a {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.cpo-header-auth-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}

.cpo-header-auth-menu-item > a:hover,
.cpo-header-auth-menu-item > a:focus {
    color: #c8102e !important;
}

.cpo-orders-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.cpo-heading-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.cpo-heading-account {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding-top: 3px;
}

.cpo-heading-account span {
    max-width: 190px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 650;
}

.cpo-heading-account a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.cpo-heading-account a:hover,
.cpo-heading-account a:focus {
    border-color: #c8102e;
    background: #c8102e;
    color: #fff;
}

.cpo-auth-shell {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 28px 40px;
    border-radius: 12px;
    background: #f6f6f6;
}

.cpo-auth-heading {
    margin: -32px -28px 28px;
}

.cpo-auth-card {
    padding: 28px;
    border: 1px solid #e6e7e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.cpo-auth-card .woocommerce h2 {
    margin: 0 0 18px;
    color: #25272b;
    font-size: 24px;
}

.cpo-auth-card .woocommerce .u-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.cpo-auth-card .woocommerce .u-column1,
.cpo-auth-card .woocommerce .u-column2 {
    float: none;
    width: auto;
    margin: 0;
}

.cpo-auth-card .woocommerce-form-row {
    margin-bottom: 15px;
}

.cpo-auth-card label {
    color: #25272b;
    font-weight: 650;
}

.cpo-auth-card input.input-text {
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #cfd2d6;
    border-radius: 7px;
    box-shadow: none;
}

.cpo-auth-card input.input-text:focus {
    border-color: #c8102e;
    outline: 0;
    box-shadow: 0 0 0 1px #c8102e;
}

.cpo-auth-card .woocommerce-button,
.cpo-auth-card button.button {
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid #c8102e !important;
    border-radius: 7px;
    background: #c8102e !important;
    color: #fff !important;
    font-weight: 750;
}

.cpo-auth-card .woocommerce-button:hover,
.cpo-auth-card button.button:hover {
    border-color: #981126 !important;
    background: #981126 !important;
}

.cpo-auth-card .woocommerce-LostPassword a {
    color: #c8102e;
    font-weight: 650;
}

@media (max-width: 700px) {
    .cpo-orders-page-heading {
        flex-direction: column;
    }

    .cpo-heading-account {
        width: 100%;
        justify-content: space-between;
    }

    .cpo-auth-shell {
        padding: 22px 14px 30px;
    }

    .cpo-auth-heading {
        margin: -22px -14px 24px;
    }

    .cpo-auth-card {
        padding: 20px 16px;
    }

    .cpo-auth-card .woocommerce .u-columns {
        grid-template-columns: 1fr;
    }
}

/* Version 1.4 modern customer dashboard */
.cpo-foodpanda-front {
    max-width: 1120px;
    margin: 28px auto;
    padding: 30px;
    border: 1px solid #e7e7ea;
    border-radius: 22px;
    background: #f4f5f7;
    box-shadow: 0 24px 70px rgba(21, 25, 31, 0.08);
}

.cpo-dashboard-hero {
    min-height: 220px;
    margin: -30px -30px 26px;
    padding: 42px 42px 38px;
    border-radius: 22px 22px 0 0;
    background:
        radial-gradient(circle at 92% 8%, rgba(200, 16, 46, 0.55) 0 92px, transparent 93px),
        radial-gradient(circle at 87% 8%, rgba(255,255,255,0.07) 0 145px, transparent 146px),
        linear-gradient(135deg, #17191d 0%, #272a30 62%, #111317 100%);
}

.cpo-dashboard-hero::after {
    display: none;
}

.cpo-dashboard-hero h1 {
    max-width: 600px;
    margin-top: 10px;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.035em;
}

.cpo-dashboard-hero p {
    max-width: 610px;
    font-size: 16px;
    line-height: 1.7;
}

.cpo-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.cpo-dashboard-stat {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid #e4e6e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(19, 23, 31, 0.045);
}

.cpo-dashboard-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 16, 46, 0.28);
    box-shadow: 0 14px 30px rgba(19, 23, 31, 0.08);
}

.cpo-dashboard-stat,
.cpo-dashboard-stat:hover {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cpo-stat-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: #f1f2f4;
    color: #25272b;
    font-size: 18px;
    font-weight: 900;
}

.cpo-stat-active .cpo-stat-icon,
.cpo-stat-spend .cpo-stat-icon {
    background: #fbeaec;
    color: #c8102e;
}

.cpo-dashboard-stat > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.cpo-dashboard-stat strong {
    overflow: hidden;
    color: #1e2024;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 22px;
    line-height: 1.15;
}

.cpo-dashboard-stat span:not(.cpo-stat-icon) {
    color: #727782;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.cpo-front-section {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid #e6e7e9;
    border-radius: 18px;
    background: #fff;
}

.cpo-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.cpo-section-heading-row h2 {
    margin: 2px 0 0;
    color: #202227;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.cpo-section-kicker {
    color: #c8102e;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cpo-browse-menu-link,
.cpo-record-count {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #d8dade;
    border-radius: 999px;
    background: #fff;
    color: #2a2d33;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.cpo-browse-menu-link:hover,
.cpo-browse-menu-link:focus {
    border-color: #c8102e;
    color: #c8102e;
}

.cpo-record-count {
    background: #f5f6f7;
    color: #656b75;
}

.cpo-inline-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed #d8dade;
    border-radius: 14px;
    background: #fafafa;
}

.cpo-inline-empty-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    background: #e9f8ee;
    color: #18864b;
    font-size: 18px;
    font-weight: 900;
}

.cpo-inline-empty strong {
    display: block;
    color: #272a2f;
    font-size: 15px;
}

.cpo-inline-empty p {
    margin: 3px 0 0;
    color: #747985;
    font-size: 13px;
}

.cpo-front-filter-tabs {
    margin: 0 0 22px;
    padding: 8px;
    border: 1px solid #e3e5e8;
    border-radius: 14px;
    background: #fff;
}

.cpo-foodpanda-front .cpo-filter-tab {
    min-width: 92px;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

.cpo-foodpanda-front .cpo-filter-tab:hover,
.cpo-foodpanda-front .cpo-filter-tab:focus {
    border: 0;
    background: #f3f4f6;
}

.cpo-foodpanda-front .cpo-filter-tab.is-active {
    border: 0;
    background: #25272b;
    box-shadow: 0 5px 15px rgba(20, 23, 29, .18);
}

.cpo-foodpanda-front .cpo-order-card {
    position: relative;
    border: 1px solid #e5e7ea;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(19, 23, 31, 0.05);
}

.cpo-foodpanda-front .cpo-order-card::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: #c8102e;
    content: "";
}

.cpo-foodpanda-front .cpo-card-main {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 20px 20px 22px;
}

.cpo-foodpanda-front .cpo-order-image-wrap {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

.cpo-foodpanda-front .cpo-order-topline h3 {
    margin-bottom: 8px;
    font-size: 19px;
    letter-spacing: -0.015em;
}

.cpo-foodpanda-front .cpo-status {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.cpo-foodpanda-front .cpo-status.is-complete {
    background: #e8f8ee;
    color: #177a46;
}

.cpo-foodpanda-front .cpo-status.is-active {
    background: #fff4dd;
    color: #9b6100;
}

.cpo-foodpanda-front .cpo-status.is-negative {
    background: #fdebed;
    color: #b21e35;
}

.cpo-order-date {
    margin: 5px 0 0;
    color: #8a8f98;
    font-size: 12px;
}

.cpo-foodpanda-front .cpo-item-summary {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    color: #4e535c;
    font-size: 13px;
}

.cpo-foodpanda-front .cpo-card-actions {
    padding-top: 15px;
    border-top: 1px solid #eff0f2;
}

.cpo-foodpanda-front .cpo-details-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 9px;
    background: #f4f5f6;
    color: #3c4047;
    text-decoration: none;
}

.cpo-foodpanda-front .button.cpo-reorder-toggle,
.cpo-foodpanda-front .button.cpo-add-selected {
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(200, 16, 46, .18);
}

.cpo-reorder-panel {
    padding: 18px 22px 22px;
    background: #fafafa;
}

/* Modern login and sign up screen */
.cpo-auth-shell {
    max-width: 1120px;
    margin: 28px auto;
    padding: 30px;
    border: 1px solid #e7e7ea;
    border-radius: 22px;
    background: #f4f5f7;
    box-shadow: 0 24px 70px rgba(21, 25, 31, 0.08);
}

.cpo-auth-heading {
    min-height: 245px;
    margin: -30px -30px 28px;
    padding: 42px;
    border-radius: 22px 22px 0 0;
    background:
        radial-gradient(circle at 92% 4%, rgba(200, 16, 46, 0.6) 0 95px, transparent 96px),
        linear-gradient(135deg, #17191d 0%, #292c32 64%, #111317 100%);
}

.cpo-auth-heading::after {
    display: none;
}

.cpo-auth-benefits {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 9px;
    min-width: 225px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}

.cpo-auth-benefits span {
    position: relative;
    padding-left: 22px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.cpo-auth-benefits span::before {
    position: absolute;
    top: 1px;
    left: 0;
    color: #ff6b7f;
    content: "✓";
    font-weight: 900;
}

.cpo-auth-card {
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(18, 22, 29, .06);
}

.cpo-auth-card-intro {
    max-width: 720px;
    margin-bottom: 24px;
}

.cpo-auth-kicker {
    color: #c8102e;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cpo-auth-card-intro h2 {
    margin: 4px 0 7px;
    color: #202227;
    font-size: 28px;
    letter-spacing: -0.025em;
}

.cpo-auth-card-intro p {
    margin: 0;
    color: #707580;
    line-height: 1.65;
}

.cpo-auth-card .woocommerce .u-columns {
    gap: 20px;
}

.cpo-auth-card .woocommerce .u-column1,
.cpo-auth-card .woocommerce .u-column2 {
    position: relative;
    padding: 24px;
    border: 1px solid #e3e5e8;
    border-radius: 16px;
    background: #fff;
    scroll-margin-top: 120px;
}

.cpo-auth-card .woocommerce .u-column2 {
    border-color: rgba(200, 16, 46, .2);
    background: linear-gradient(180deg, #fff 0%, #fff8f9 100%);
}

.cpo-auth-card .woocommerce .u-column1::before,
.cpo-auth-card .woocommerce .u-column2::before {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f2f4;
    color: #555b64;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cpo-auth-card .woocommerce .u-column1::before {
    content: "Existing customer";
}

.cpo-auth-card .woocommerce .u-column2::before {
    background: #fbeaec;
    color: #c8102e;
    content: "New customer";
}

.cpo-auth-card .woocommerce h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.cpo-auth-card input.input-text {
    min-height: 50px;
    border-radius: 10px;
    background: #fbfbfc;
}

.cpo-auth-card .woocommerce-button,
.cpo-auth-card button.button {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
}

.cpo-header-signup-menu-item > a {
    min-height: 38px;
    padding: 8px 14px !important;
    border-radius: 999px;
    background: #c8102e;
    color: #fff !important;
}

.cpo-header-signup-menu-item > a:hover,
.cpo-header-signup-menu-item > a:focus {
    background: #981126;
    color: #fff !important;
}

/* Footer order record link */
.cpo-footer-orders-menu-item > a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.cpo-footer-orders-menu-item .cpo-header-orders-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
}

.cpo-footer-orders-menu-item > a:hover,
.cpo-footer-orders-menu-item.current-menu-item > a {
    color: #e31b3d !important;
}

@media (max-width: 920px) {
    .cpo-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpo-auth-benefits {
        display: none;
    }
}

@media (max-width: 700px) {
    .cpo-foodpanda-front,
    .cpo-auth-shell {
        margin: 14px auto;
        padding: 14px;
        border-radius: 16px;
    }

    .cpo-dashboard-hero,
    .cpo-auth-heading {
        min-height: 0;
        margin: -14px -14px 18px;
        padding: 28px 20px 25px;
        border-radius: 16px 16px 0 0;
    }

    .cpo-dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cpo-dashboard-stat {
        align-items: flex-start;
        padding: 14px;
    }

    .cpo-stat-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .cpo-dashboard-stat strong {
        font-size: 18px;
    }

    .cpo-front-section {
        padding: 17px 14px;
        border-radius: 14px;
    }

    .cpo-section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .cpo-browse-menu-link,
    .cpo-record-count {
        min-height: 34px;
    }

    .cpo-foodpanda-front .cpo-card-main {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 15px 13px 15px 17px;
    }

    .cpo-foodpanda-front .cpo-order-image-wrap {
        width: 72px;
        height: 72px;
        border-radius: 11px;
    }

    .cpo-foodpanda-front .cpo-order-topline {
        flex-direction: column;
        gap: 8px;
    }

    .cpo-foodpanda-front .cpo-order-total {
        text-align: left;
    }

    .cpo-foodpanda-front .cpo-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cpo-foodpanda-front .cpo-details-link,
    .cpo-foodpanda-front .button.cpo-reorder-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cpo-auth-card {
        padding: 15px;
    }

    .cpo-auth-card .woocommerce .u-column1,
    .cpo-auth-card .woocommerce .u-column2 {
        padding: 18px 15px;
    }
}

/* Configurable navigation links */
.cpo-navigation-menu-link > a,
.cpo-navigation-orders-link > a,
.cpo-navigation-auth-link > a,
.cpo-navigation-signup-link > a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.cpo-nav-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: currentColor;
}

.cpo-navigation-menu-link > a:hover,
.cpo-navigation-orders-link > a:hover,
.cpo-navigation-orders-link.current-menu-item > a,
.cpo-navigation-auth-link > a:hover,
.cpo-navigation-signup-link > a:hover {
    color: #c8102e !important;
}

/* Navigation settings management */
.cpo-settings-wrap {
    max-width: 1180px;
}

.cpo-settings-form {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.cpo-settings-card {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 24, 33, 0.05);
}

.cpo-settings-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid #eceff2;
    background: linear-gradient(135deg, #25272b 0%, #31343a 100%);
    color: #fff;
}

.cpo-settings-card-heading .dashicons {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 10px;
    background: #c8102e;
    font-size: 20px;
}

.cpo-settings-card-heading h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 18px;
}

.cpo-settings-card-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.cpo-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 24px;
}

.cpo-setting-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 72px;
    padding: 15px;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    background: #fafbfc;
    cursor: pointer;
}

.cpo-setting-toggle:hover {
    border-color: #c8102e;
    background: #fff8f9;
}

.cpo-setting-toggle input {
    margin-top: 3px;
}

.cpo-setting-toggle span {
    display: grid;
    gap: 5px;
}

.cpo-setting-toggle strong {
    color: #25272b;
    font-size: 14px;
}

.cpo-setting-toggle small {
    color: #68707b;
    line-height: 1.45;
}


.cpo-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 22px 24px;
}

.cpo-location-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    gap: 18px;
    min-height: 92px;
    padding: 16px 18px;
    border: 1px solid #e4e7eb;
    border-radius: 13px;
    background: #fafbfc;
}

.cpo-location-field:hover {
    border-color: #c8102e;
    background: #fff8f9;
}

.cpo-location-field > span {
    display: grid;
    gap: 6px;
}

.cpo-location-field strong {
    color: #25272b;
    font-size: 14px;
}

.cpo-location-field small {
    color: #68707b;
    line-height: 1.45;
}

.cpo-location-field select {
    width: 100%;
    min-height: 44px;
    border-color: #cfd5dc;
    border-radius: 9px;
    background: #fff;
}

.cpo-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px 24px;
}

.cpo-fields-grid label {
    display: grid;
    gap: 8px;
}

.cpo-fields-grid label > span {
    color: #25272b;
    font-weight: 700;
}

.cpo-fields-grid input[type="text"],
.cpo-fields-grid input[type="url"],
.cpo-fields-grid select {
    width: 100%;
    min-height: 44px;
    border-color: #cfd5dc;
    border-radius: 9px;
}

.cpo-fields-grid label > small {
    color: #68707b;
    line-height: 1.45;
}

.cpo-settings-save {
    min-height: 44px !important;
    padding: 0 22px !important;
    border-color: #c8102e !important;
    background: #c8102e !important;
}

@media (max-width: 782px) {
    .cpo-settings-grid,
    .cpo-location-grid,
    .cpo-fields-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .cpo-settings-card-heading {
        padding: 18px 16px;
    }

    .cpo-location-field {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Advanced navigation display manager */
.cpo-navigation-style-icon > a {
    min-width: 38px;
    justify-content: center;
}

.cpo-navigation-style-icon .cpo-nav-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.cpo-nav-manager-list {
    display: grid;
    gap: 18px;
    padding: 22px 24px 26px;
    background: #f4f5f7;
}

.cpo-nav-manager-item {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(18, 24, 33, 0.04);
}

.cpo-nav-manager-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid #eceff2;
    background: linear-gradient(135deg, #fff 0%, #fff8f9 100%);
}

.cpo-nav-manager-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 12px;
    background: #c8102e;
    color: #fff;
}

.cpo-nav-manager-icon .cpo-nav-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.cpo-nav-manager-preview h3 {
    margin: 0 0 4px;
    color: #25272b;
    font-size: 16px;
}

.cpo-nav-manager-preview p {
    margin: 0;
    color: #68707b;
    line-height: 1.45;
}

.cpo-nav-manager-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    padding: 19px;
}

.cpo-nav-manager-controls label {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.cpo-nav-manager-controls label > span {
    color: #25272b;
    font-size: 13px;
    font-weight: 700;
}

.cpo-nav-manager-controls input[type="text"],
.cpo-nav-manager-controls input[type="url"],
.cpo-nav-manager-controls select {
    width: 100%;
    min-height: 43px;
    border-color: #cfd5dc;
    border-radius: 9px;
    background: #fff;
}

.cpo-nav-manager-controls input:focus,
.cpo-nav-manager-controls select:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 1px #c8102e;
}

.cpo-single-field-grid {
    grid-template-columns: minmax(260px, 560px);
}

@media (max-width: 1100px) {
    .cpo-nav-manager-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .cpo-nav-manager-list {
        padding: 16px;
    }

    .cpo-nav-manager-controls {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .cpo-nav-manager-preview {
        align-items: flex-start;
        padding: 16px;
    }
}

/* Version 1.8 mobile authentication compatibility fixes */
.cpo-auth-card > .u-columns,
.cpo-auth-card #customer_login,
.cpo-auth-card .woocommerce .u-columns,
.cpo-auth-card .col2-set {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

.cpo-auth-card > .u-columns::before,
.cpo-auth-card > .u-columns::after,
.cpo-auth-card #customer_login::before,
.cpo-auth-card #customer_login::after,
.cpo-auth-card .col2-set::before,
.cpo-auth-card .col2-set::after {
    display: none !important;
    content: none !important;
}

.cpo-auth-card .u-column1,
.cpo-auth-card .u-column2,
.cpo-auth-card .col-1,
.cpo-auth-card .col-2,
.cpo-auth-card .woocommerce .u-column1,
.cpo-auth-card .woocommerce .u-column2 {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 24px !important;
    float: none !important;
    clear: none !important;
    overflow: visible !important;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

.cpo-auth-card .u-column1,
.cpo-auth-card .col-1 {
    border: 1px solid #e3e5e8 !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.cpo-auth-card .u-column2,
.cpo-auth-card .col-2 {
    border: 1px solid rgba(200, 16, 46, 0.2) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #fff 0%, #fff8f9 100%) !important;
}

.cpo-auth-card h2,
.cpo-auth-card h3,
.cpo-auth-card p,
.cpo-auth-card label,
.cpo-auth-card span,
.cpo-auth-card a,
.cpo-auth-card form,
.cpo-auth-card .form-row,
.cpo-auth-card .woocommerce-form-row {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    letter-spacing: normal;
}

.cpo-auth-card form,
.cpo-auth-card .woocommerce-form-login,
.cpo-auth-card .woocommerce-form-register {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.cpo-auth-card .form-row,
.cpo-auth-card .woocommerce-form-row {
    display: block !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    float: none !important;
}

.cpo-auth-card input[type="text"],
.cpo-auth-card input[type="email"],
.cpo-auth-card input[type="password"],
.cpo-auth-card input[type="tel"],
.cpo-auth-card input.input-text,
.cpo-auth-card .password-input,
.cpo-auth-card .show-password-input {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.cpo-auth-card .password-input {
    position: relative !important;
    display: block !important;
}

.cpo-auth-card .show-password-input {
    width: auto !important;
    min-width: 24px !important;
}

.cpo-auth-card button,
.cpo-auth-card .button,
.cpo-auth-card .woocommerce-button {
    max-width: 100% !important;
    white-space: normal !important;
}

@media (max-width: 760px) {
    .cpo-auth-shell {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 10px auto !important;
        padding: 10px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .cpo-auth-heading {
        width: auto !important;
        min-height: 0 !important;
        margin: -10px -10px 14px !important;
        padding: 22px 16px !important;
        border-radius: 14px 14px 0 0 !important;
    }

    .cpo-auth-heading h1 {
        font-size: clamp(24px, 9vw, 34px) !important;
        line-height: 1.12 !important;
    }

    .cpo-auth-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .cpo-auth-card-intro {
        margin-bottom: 18px !important;
    }

    .cpo-auth-card-intro h2 {
        font-size: 23px !important;
        line-height: 1.2 !important;
    }

    .cpo-auth-card > .u-columns,
    .cpo-auth-card #customer_login,
    .cpo-auth-card .woocommerce .u-columns,
    .cpo-auth-card .col2-set {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .cpo-auth-card .u-column1,
    .cpo-auth-card .u-column2,
    .cpo-auth-card .col-1,
    .cpo-auth-card .col-2,
    .cpo-auth-card .woocommerce .u-column1,
    .cpo-auth-card .woocommerce .u-column2 {
        padding: 16px 13px !important;
        border-radius: 12px !important;
    }

    .cpo-auth-card h2 {
        font-size: 21px !important;
        line-height: 1.2 !important;
    }

    .cpo-auth-card label {
        display: block !important;
        margin-bottom: 6px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .cpo-auth-card input.input-text {
        min-height: 46px !important;
        padding: 10px 11px !important;
        font-size: 16px !important;
    }

    .cpo-auth-card .woocommerce-button,
    .cpo-auth-card button.button {
        display: flex !important;
        width: 100% !important;
        min-height: 46px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 12px !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 360px) {
    .cpo-auth-shell {
        width: calc(100% - 12px) !important;
        padding: 6px !important;
    }

    .cpo-auth-heading {
        margin: -6px -6px 10px !important;
        padding: 18px 12px !important;
    }

    .cpo-auth-card {
        padding: 10px !important;
    }

    .cpo-auth-card .u-column1,
    .cpo-auth-card .u-column2,
    .cpo-auth-card .col-1,
    .cpo-auth-card .col-2 {
        padding: 14px 10px !important;
    }
}

/* Version 2.0 direct customer authentication */
.cpo-custom-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.cpo-custom-auth-panel {
    min-width: 0;
    padding: 25px;
    border: 1px solid #e2e4e8;
    border-radius: 16px;
    background: #fff;
}

.cpo-register-panel {
    background: #fff8f9;
    border-color: rgba(200, 16, 46, 0.24);
}

.cpo-custom-auth-label {
    display: block;
    margin-bottom: 7px;
    color: #c8102e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cpo-custom-auth-panel h2 {
    margin: 0 0 18px;
    color: #25272b;
    font-size: 25px;
    line-height: 1.2;
}

.cpo-custom-auth-form,
.cpo-custom-auth-form .form-row {
    width: 100%;
    min-width: 0;
    margin: 0 0 15px;
}

.cpo-custom-auth-form label {
    display: block;
    margin-bottom: 7px;
    color: #25272b;
    font-weight: 700;
    line-height: 1.4;
}

.cpo-custom-auth-form input[type="text"],
.cpo-custom-auth-form input[type="email"],
.cpo-custom-auth-form input[type="password"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #cfd2d6;
    border-radius: 9px;
    background: #fff;
    color: #202226;
    font-size: 16px;
}

.cpo-custom-auth-form input:focus {
    border-color: #c8102e;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}

.cpo-custom-auth-form small {
    display: block;
    margin-top: 6px;
    color: #6d727a;
    font-size: 12px;
    line-height: 1.5;
}

.cpo-remember-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 2px 0 16px;
}

.cpo-remember-row input {
    width: 16px !important;
    height: 16px;
    margin: 0;
}

.cpo-auth-submit {
    display: flex !important;
    width: 100% !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px !important;
    padding: 11px 16px !important;
    border: 1px solid #c8102e !important;
    border-radius: 9px !important;
    background: #c8102e !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-align: center;
    white-space: normal;
}

.cpo-auth-submit:hover,
.cpo-auth-submit:focus {
    border-color: #981126 !important;
    background: #981126 !important;
}

.cpo-lost-password {
    color: #c8102e;
    font-weight: 700;
    text-decoration: none;
}

.cpo-auth-notice {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 650;
    line-height: 1.55;
}

.cpo-auth-notice-error {
    border-left: 4px solid #c8102e;
    background: #fff1f3;
    color: #7f1224;
}

@media (max-width: 760px) {
    .cpo-custom-auth-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .cpo-custom-auth-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px 16px;
    }

    .cpo-custom-auth-panel h2,
    .cpo-custom-auth-panel label,
    .cpo-custom-auth-panel span,
    .cpo-custom-auth-panel small,
    .cpo-custom-auth-panel a,
    .cpo-custom-auth-panel button {
        overflow-wrap: anywhere;
        word-break: normal;
        writing-mode: horizontal-tb !important;
    }
}
