/**
 * PW Customer Portal — v1.0.1
 *
 * Full-width layout for WooCommerce My Account pages.
 * Overrides theme's narrow content container.
 */

:root {
    --pwp-navy: #28235B;
    --pwp-navy-hover: #1E1A45;
    --pwp-orange: #FF9D52;
    --pwp-orange-hover: #F08A3A;
    --pwp-navy-tint: #EDECF3;
    --pwp-orange-tint: #FFF1E6;
}

/* ── Full-width override ──────────────────────────────────────
 * Target the WC My Account wrapper and its parent containers.
 * Multiple selectors for theme compatibility — most themes use
 * one of these patterns for the content area.
 */
.woocommerce-account .woocommerce,
.woocommerce-account .entry-content,
.woocommerce-account .site-content .content-area,
.woocommerce-account .site-main,
.woocommerce-account article .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    box-sizing: border-box !important;
}

/* Some themes wrap content in a fixed-width container */
.woocommerce-account .container,
.woocommerce-account .site-content > .container,
.woocommerce-account .content-wrapper > .container,
.woocommerce-account .page-content > .container {
    max-width: 100% !important;
    width: 100% !important;
}

/* ── My Account nav + content layout ──────────────────────────
 * Side-by-side on desktop, stacked on mobile.
 */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    box-sizing: border-box;
}

/* Nav styling — clean links, no bullets */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.6rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f0f0f1;
    color: var(--pwp-navy);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
    background: #f0f7fc;
    color: var(--pwp-navy);
}

@media (min-width: 769px) {
    .woocommerce-account .woocommerce {
        display: flex !important;
        gap: 2rem;
        align-items: flex-start;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        flex: 0 0 200px;
        min-width: 200px;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce,
    .woocommerce-account .entry-content,
    .woocommerce-account .site-main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 1rem;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        gap: 0.25rem;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9em;
        white-space: nowrap;
    }
}

/* ── Orders table responsive ──────────────────────────────────
 * Full width, no horizontal scroll on mobile.
 */
.woocommerce-account .woocommerce-orders-table {
    width: 100%;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce-orders-table {
        font-size: 0.9em;
    }
}

/* ── Addresses page ───────────────────────────────────────────
 * Billing read-only + shipping editable, side by side.
 */
.pw-addresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .pw-addresses-grid {
        grid-template-columns: 1fr;
    }
}

.pw-address-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
}

.pw-address-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pw-address-card h3 {
    margin: 0;
    font-size: 1.1em;
}

.pw-address-card address {
    font-style: normal;
    line-height: 1.6;
}

.pw-address-edit-link {
    font-size: 0.9em;
}

.pw-address-readonly-note {
    margin-top: 1rem;
    font-size: 0.85em;
    color: #888;
    font-style: italic;
}

/* ── Preferred courier (1.7.6; restyled as a card 1.7.7) ──────
 * A card in the same grid as the billing address, styled to match it —
 * how it gets there, next to where it goes. It was a full-width tinted
 * panel with a left bar, which lined up with nothing and read as a
 * warning rather than a setting.
 */
.pw-delivery-courier {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.2rem;
    background: #fff;
}

.pw-delivery-courier h3 {
    margin: 0 0 0.5rem;
    color: var(--pwp-navy);
}

.pw-delivery-courier-note {
    margin: 0 0 1rem;
    font-size: 0.85em;
    color: #555;
}

.pw-delivery-courier-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pw-delivery-courier-form select {
    flex: 1 1 160px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

.pw-delivery-courier-status {
    font-size: 0.85em;
    min-height: 1em;
    flex-basis: 100%; /* own line — never squeezes the picker as the text grows. */
}

.pw-delivery-courier-status--ok {
    color: #1d7a44;
    font-weight: 600;
}

.pw-delivery-courier-status--err {
    color: #b32d2e;
    font-weight: 600;
}

.pw-delivery-courier-fineprint {
    margin: 0.9rem 0 0;
    font-size: 0.78em;
    line-height: 1.5;
    color: #888;
    font-style: italic;
}

/* ── Shipping addresses section ───────────────────────────────
 * Cards grid + inline add/edit form.
 */
.pw-shipping-addresses {
    margin-top: 2rem;
}

.pw-shipping-addresses h3 {
    margin: 0 0 1rem;
}

.pw-address-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pw-address-shipping-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.2rem;
}

.pw-address-shipping-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.pw-address-shipping-card h4 {
    margin: 0;
    font-size: 1em;
}

.pw-card-actions {
    display: flex;
    gap: 0.5rem;
}

.pw-addr-edit-btn,
.pw-addr-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    padding: 2px 6px;
    border-radius: 3px;
}

.pw-addr-edit-btn {
    color: var(--pwp-navy);
}

.pw-addr-edit-btn:hover {
    background: #f0f0f1;
}

.pw-addr-delete-btn {
    color: #b32d2e;
}

.pw-addr-delete-btn:hover {
    background: #fcebeb;
}

.pw-addr-delete-btn.pw-addr-delete-disabled,
.pw-addr-delete-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.5;
}

.pw-addr-delete-btn.pw-addr-delete-disabled:hover,
.pw-addr-delete-btn:disabled:hover {
    background: none;
}

.pw-addr-phone {
    margin: 0.5rem 0 0;
    font-size: 0.9em;
    color: #666;
}

.pw-add-address-btn {
    margin-bottom: 1rem;
}

/* ── Address form ─────────────────────────────────────────── */
.pw-address-form-wrap {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1rem;
    background: #fafafa;
}

.pw-address-form-wrap h4 {
    margin: 0 0 1rem;
}

.pw-form-row {
    margin-bottom: 1rem;
}

.pw-form-row label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.pw-form-row input,
.pw-form-row select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.pw-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .pw-form-row-half {
        grid-template-columns: 1fr;
    }
}

.pw-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.pw-btn-save {
    background: var(--pwp-orange) !important;
    color: var(--pwp-navy) !important;
    border-color: var(--pwp-orange) !important;
}

.pw-btn-save:hover {
    background: var(--pwp-orange-hover) !important;
}

.required {
    color: #b32d2e;
}

/* ── Orders portal ─────────────────────────────────────────────
 * Card-based order list with tabs, search, and time filter.
 */
.pw-orders-portal {
    position: relative;
}

.pw-orders-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pw-search-wrap {
    flex: 1;
    min-width: 200px;
}

.pw-search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    height: 42px;
}

.pw-search-input:focus {
    outline: none;
    border-color: var(--pwp-orange);
    box-shadow: 0 0 0 3px var(--pwp-orange-tint);
}

.pw-filter-wrap {
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
 * UNIFIED DATE PICKER (1.7.4)
 * Visual contract shared with the canonical board picker
 * (pw-production-workflow → TK.dateFilter / board.css) and
 * pw-analytics. Chip presets + styled date buttons in a pill
 * popover, instant-apply (no Apply button). If you change the
 * look here, change it in ALL THREE — see the "Unified Date
 * Picker" entry in the ecosystem spec.
 * ══════════════════════════════════════════════════════ */
.pw-dp {
    position: relative;
}

/* Closed pill */
.pw-dp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.12s, border-color 0.12s;
}
.pw-dp-pill:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.pw-dp-pill-caret {
    color: #9ca3af;
    font-size: 12px;
}

/* Popover */
.pw-dp-pop {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 6px);
    right: 0;
    min-width: 280px;
    max-width: 92vw;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    padding: 12px;
    box-sizing: border-box;
}
.pw-dp-pop[hidden] {
    display: none;
}

/* Chips */
.pw-dp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pw-dp-chip {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 18px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.pw-dp-chip:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.pw-dp-chip--active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.pw-dp-chip--active:hover {
    background: #1d5f96;
    border-color: #1d5f96;
}

/* Custom range row — date buttons mirror the board's .pw-tk-date-btn */
.pw-dp-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}
.pw-dp-range[hidden] {
    display: none;
}
.pw-dp-datein {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.pw-dp-datebtn {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.pw-dp-datebtn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}
.pw-dp-datebtn--filled {
    color: #1f2937;
    background: #eff6ff;
    border-color: #93c5fd;
}
.pw-dp-datebtn--filled:hover {
    background: #dbeafe;
    border-color: #2271b1;
    color: #1d4ed8;
}

/* Tabs */
.pw-orders-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.pw-tab {
    padding: 0.7rem 1.2rem;
    border: none;
    background: none;
    font-size: 1em;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pw-tab:hover {
    color: #333;
}

.pw-tab-active {
    color: var(--pwp-navy);
    border-bottom-color: var(--pwp-orange);
    font-weight: 500;
}

.pw-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #e0e0e0;
    font-size: 0.8em;
    font-weight: 600;
    color: #555;
}

.pw-tab-active .pw-tab-count {
    background: var(--pwp-navy);
    color: #fff;
}

/* Tab panels */
.pw-tab-panel {
    display: none;
}

.pw-tab-panel-active {
    display: block;
}

/* Order cards */
.pw-order-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: box-shadow 0.15s;
}

.pw-order-card:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Awaiting-dispatch accent (merged, ShipStation not yet confirmed).
   Mirrors pw-badge-awaiting convention from the production board. */
.pw-order-card--awaiting {
    border-left: 3px solid #e0a800;
}

.pw-order-card--cancelled {
    border-left: 3px solid #9e9e9e;
    opacity: 0.85;
}

.pw-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    cursor: pointer;
    user-select: none;
}

.pw-card-summary {
    flex: 1;
    min-width: 0;
}

.pw-card-top-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pw-card-order-number {
    font-weight: 600;
    font-size: 1.05em;
}

.pw-card-order-date {
    color: #888;
    font-size: 0.9em;
}

.pw-card-order-total {
    font-weight: 500;
    font-size: 0.95em;
}
.pw-card-order-total .pw-price-struck {
    text-decoration: line-through;
    color: #999;
    margin-right: 4px;
}

.pw-card-top-row .pw-status-badge {
    margin-left: auto;
}

.pw-card-bottom-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.pw-card-tracking {
    font-size: 0.88em;
    color: #555;
}

.pw-card-dispatch-date {
    font-size: 0.85em;
    color: #666;
    margin-left: auto;
}
.pw-card-upload-date {
    font-size: 0.85em;
    color: #666;
}
/* 1.5.7: delay marks on current cards. Revised = brand orange (manager moved
   the date); overdue = red (past due, date never adjusted). */
.pw-card-dispatch-date--revised {
    color: var(--pwp-orange-hover);
    font-weight: 600;
    background: var(--pwp-orange-tint);
    padding: 2px 8px;
    border-radius: 4px;
}
.pw-card-dispatch-date--overdue {
    color: #b32d2e;
    font-weight: 600;
    background: #fcebea;
    padding: 2px 8px;
    border-radius: 4px;
}

.pw-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78em;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.pw-card-expand-icon {
    flex-shrink: 0;
    color: #999;
    padding: 0.2rem;
    transition: transform 0.2s;
}

.pw-card-expanded .pw-card-expand-icon {
    transform: rotate(180deg);
}

/* Expanded detail */
.pw-card-detail {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.2rem;
}

.pw-detail-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.pw-line-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.pw-line-items-table td {
    padding: 0.45rem 0.75rem;
}

.pw-li-name {
    color: #333;
}

.pw-li-qty {
    color: #888;
    font-size: 0.9em;
}

.pw-li-price {
    text-align: right;
    white-space: nowrap;
    color: #333;
}

.pw-li-shipping td {
    padding-top: 0.5rem;
    border-top: 1px solid #f5f5f5;
    color: #666;
    font-size: 0.9em;
}

.pw-li-total td {
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

/* 1.9.3 (#342) — the credit-note lines and the resulting total.
   Meaning is carried by the minus sign and the words, never by hue: red/green/
   orange collapse together for a protanopic reader, so the credit line is simply
   the ordinary text colour and the final row is separated by weight and a rule. */
.pw-li-credit td {
    padding-top: 0.35rem;
    color: #555;
    font-size: 0.9em;
}

.pw-cn-number {
    font-variant-numeric: tabular-nums;
    color: #333;
}

.pw-cn-date {
    margin-left: 0.4rem;
    color: #888;
}

.pw-cn-download {
    margin-left: 0.5rem;
    text-decoration: underline;
    white-space: nowrap;
}

.pw-li-final td {
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

.pw-payment-method {
    margin-top: 0.5rem;
    font-size: 0.85em;
    color: #888;
}

.pw-customer-note {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #555;
}

.pw-item-detail {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.pw-item-detail:last-child {
    border-bottom: none;
}

.pw-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.pw-item-name-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pw-prod-ref {
    font-size: 0.82em;
    color: #999;
    font-weight: 400;
}

.pw-item-upload-date {
    font-size: 0.82em;
    color: #666;
    font-weight: 400;
}

.pw-item-epo {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.pw-epo-row {
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
}

.pw-epo-label {
    font-weight: 600;
    color: #333;
}

.pw-item-files {
    margin: 0.5rem 0;
    font-size: 0.9em;
}

.pw-files-label {
    font-weight: 500;
    margin-right: 0.3rem;
}

.pw-file-link {
    display: inline-block;
    margin-right: 0.5rem;
    color: var(--pwp-navy);
    text-decoration: none;
    word-break: break-all;
}

.pw-file-link:hover {
    text-decoration: underline;
}

/* ── 3D / Image File Preview — Thumbnail Grid ──── */
.pw-p-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin: 0.6rem 0;
}
.pw-p-thumb {
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid #ddd;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}
.pw-p-thumb:hover {
    border-color: #29235C;
    box-shadow: 0 1px 4px rgba(41,35,92,0.15);
}
.pw-p-thumb-canvas {
    width: 100%;
    height: 85px;
    background: #F5F3EF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pw-p-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pw-p-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.pw-p-ext-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.pw-p-ext-3d {
    background: rgba(30,140,90,0.12);
    color: #1a7a4a;
}
.pw-p-ext-img {
    background: rgba(34,113,177,0.12);
    color: #185fa5;
}
.pw-p-thumb-label {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    gap: 4px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.pw-p-thumb-name {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pw-p-thumb-dl {
    flex-shrink: 0;
    font-size: 12px;
    text-decoration: none;
    opacity: 0.35;
    transition: opacity 0.15s;
    line-height: 1;
}
.pw-p-thumb-dl:hover {
    opacity: 1;
}

/* ── Large Viewer ────────────────────────────────── */
/* ── 3D Preview Modal ─────────────────────────────── */
.pw-3d-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pw-3d-modal-overlay.pw-3d-modal-visible {
    display: flex;
}
.pw-3d-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.pw-3d-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    gap: 12px;
    min-height: 48px;
}
.pw-3d-modal-fname {
    font-weight: 600;
    font-size: 0.9rem;
    color: #29235C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.pw-3d-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.pw-3d-modal-dl {
    font-size: 0.85rem;
    color: #29235C !important;
    text-decoration: none !important;
    font-weight: 600;
    white-space: nowrap;
}
.pw-3d-modal-dl:hover {
    text-decoration: underline !important;
}
.pw-3d-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.pw-3d-modal-close:hover {
    background: #f0f0f0;
    color: #222;
}
.pw-3d-modal-body {
    width: 100%;
    height: 450px;
    background: #F5F3EF;
    position: relative;
    overflow: hidden;
}
.pw-3d-modal-body canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.pw-p-viewer-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.pw-p-viewer-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
    font-size: 13px;
}

@media (max-width: 600px) {
    .pw-3d-modal {
        max-width: 100%;
    }
    .pw-3d-modal-body {
        height: 300px;
    }
}
.pw-p-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    padding: 20px;
}
.pw-p-progress-label {
    font-size: 12px;
    color: #888;
}
.pw-p-progress-track {
    width: 60%;
    max-width: 200px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.pw-p-progress-bar {
    width: 0;
    height: 100%;
    background: #2ea043;
    border-radius: 3px;
    transition: width 0.2s;
}

.pw-item-dispatch {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.3rem;
}

.pw-item-remake {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 2px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.pw-tracking-info {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.pw-tracking-link {
    color: var(--pwp-navy);
    text-decoration: none;
    font-weight: 500;
}

.pw-tracking-link:hover {
    text-decoration: underline;
}

.pw-tracking-courier {
    color: #888;
    font-size: 0.9em;
}

/* 1.2.4: Copy tracking number button ─────────────────────────── */
.pw-tracking-copy {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 5px;
    margin-left: 4px;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.pw-tracking-copy:hover {
    background: #f0f6fc;
    border-color: var(--pwp-navy);
}
.pw-tracking-copy:active {
    background: #e0eaf3;
}
.pw-tracking-copy-icon {
    font-size: 12px;
    line-height: 1;
    display: inline-block;
}
.pw-tracking-copy--copied {
    background: #d4edda;
    border-color: #28a745;
}
.pw-tracking-copy--copied .pw-tracking-copy-icon {
    color: #28a745;
}

/* Docket download */
.pw-docket-download {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

.pw-docket-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--pwp-navy);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.15s;
}

.pw-docket-btn:hover {
    background: var(--pwp-navy-hover);
    color: #fff;
}

/* Empty state */
.pw-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

/* Loading overlay */
.pw-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.pw-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--pwp-navy);
    border-radius: 50%;
    animation: pw-spin 0.6s linear infinite;
}

@keyframes pw-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .pw-orders-toolbar {
        flex-direction: column;
    }

    /* 1.7.4: stacked toolbar — pill spans the row, popover aligns left so it
       never overflows the viewport edge. */
    .pw-dp,
    .pw-dp-pill {
        width: 100%;
        justify-content: space-between;
    }
    .pw-dp-pop {
        left: 0;
        right: auto;
    }

    .pw-card-header {
        padding: 0.8rem 1rem;
    }

    .pw-card-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .pw-card-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* ── Checkout shipping selector ───────────────────────────────
 */
.pw-checkout-shipping {
    margin-bottom: 1.5rem;
}

/* Inline "choose an address" notice — shown only to a customer who has not
   chosen a shipping address (never to one who has). */
.pw-checkout-shipping .pw-shipping-error {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d33;
    border-left-width: 4px;
    border-radius: 4px;
    background: #fdecec;
    color: #a01818;
    font-size: 0.95em;
    line-height: 1.4;
}

.pw-ship-to-billing {
    margin: 0 0 0.5rem;
    color: #666;
}

.pw-show-new-address-form {
    font-size: 0.95em;
}

.pw-selected-address {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.pw-selected-address strong {
    display: block;
    margin-bottom: 0.4rem;
}

.pw-selected-address address {
    font-style: normal;
    line-height: 1.5;
}

/* ── Address radio selector (2+ addresses) ──────────────────── */
.pw-address-selector {
    margin-bottom: 1rem;
}

.pw-address-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.pw-address-option:hover {
    border-color: #bbb;
}

.pw-address-option.pw-selected {
    border-color: var(--pwp-navy);
    background: #f0f7fc;
}

.pw-address-option input[type="radio"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.pw-address-option-content strong {
    display: block;
    margin-bottom: 0.3rem;
}

.pw-address-option-content address {
    font-style: normal;
    line-height: 1.5;
    font-size: 0.9em;
}

/* ── New address form at checkout ────────────────────────────── */
.pw-new-address-form {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1rem;
    background: #fafafa;
}

.pw-new-address-form h4 {
    margin: 0 0 1rem;
}

.pw-new-address-form .pw-form-row {
    margin-bottom: 1rem;
}

.pw-new-address-form label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.pw-new-address-form input,
.pw-new-address-form select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.pw-new-address-form .pw-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .pw-new-address-form .pw-form-row-half {
        grid-template-columns: 1fr;
    }
}

/* ── Hide WC's default shipping fields ────────────────────── */
.pw-hidden-field {
    display: none !important;
}

/* ── Billing readonly at checkout ─────────────────────────── */
.pw-billing-readonly input,
.pw-billing-readonly select,
.pw-billing-readonly textarea {
    pointer-events: none !important;
    opacity: 0.7 !important;
    background: #f5f5f5 !important;
}

.pw-billing-readonly select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ── Pricelist page ───────────────────────────────────────── */
.pw-pricelist-page {
    max-width: 100%; /* 1.4.9: full width — data-dense price table benefits from the space */
}

.pw-pricelist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pw-pricelist-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #29235C;
}

.pw-pricelist-download-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: #29235C;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.pw-pricelist-download-btn:hover {
    background: #3d3580;
}

.pw-pricelist-table-wrap {
    overflow-x: auto;
}

.pw-pricelist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pw-pricelist-table thead th {
    background: #f5f5f5;
    border-bottom: 2px solid #29235C;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
}

.pw-pricelist-table th.pw-pl-price,
.pw-pricelist-table td.pw-pl-price {
    text-align: right;
    width: 120px;
    white-space: nowrap;
}

.pw-pl-category-row td {
    background: #29235C;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 0.8rem;
}

.pw-pl-product-row td {
    background: #f5f3fa;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #ccc;
    color: #29235C;
}

.pw-pl-option-row td {
    padding: 0.45rem 0.8rem;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 0.85rem;
}

.pw-pl-indent {
    padding-left: 1.8rem !important;
}

.pw-pl-your-price {
    font-weight: 700;
    color: #29235C;
}

.pw-pl-dash {
    color: #ccc;
}

@media (max-width: 600px) {
    .pw-pricelist-table th.pw-pl-price,
    .pw-pricelist-table td.pw-pl-price {
        width: 80px;
        font-size: 0.8rem;
    }
    .pw-pricelist-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── 1.4.7: Approvals tab (moved from the retired standalone endpoint) ───────── */
.pw-approvals-list { max-width: 1750px; } /* 1.4.9: raised from 1100 to use more of the full-width page */
.pw-approval__intro { color:#555; font-size:14px; margin:0 0 18px; }
.pw-approval__empty { background:#f6f6f9; border:1px solid #e4e4ec; border-radius:8px; padding:28px; text-align:center; color:#777; font-size:15px; }
.pw-approval-card { border:1px solid #e0e0ea; border-radius:10px; padding:18px; margin-bottom:22px; background:#fff; }
.pw-approval-card__head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.pw-approval-card__title { font-size:17px; font-weight:600; margin:0; }
.pw-approval-card__order { color:#888; font-size:13px; }
.pw-approval-card__viewer { width:100%; height:660px; border:1px solid #d9d9e3; border-radius:8px; background:#0f0f17; overflow:hidden; position:relative; }
.pw-approval-card__viewer iframe { width:100%; height:100%; border:0; display:block; }
.pw-shots { position:absolute; inset:0; }
.pw-shot-img { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); max-width:100%; max-height:100%; opacity:0; transition:opacity .12s ease; pointer-events:none; }
.pw-shot-img.is-active { opacity:1; }
.pw-shot-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:46px; height:46px; border:0; border-radius:50%; cursor:pointer; background:rgba(0,0,0,.45); color:#fff; font-size:28px; line-height:1; display:flex; align-items:center; justify-content:center; padding:0; }
.pw-shot-nav:hover { background:rgba(0,0,0,.68); }
.pw-shot-prev { left:10px; } .pw-shot-next { right:10px; }
.pw-shot-counter { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); z-index:3; background:rgba(0,0,0,.55); color:#fff; font-size:13px; padding:3px 11px; border-radius:12px; }
.pw-approval-card__fallback { font-size:13px; margin:10px 0 0; color:#555; }
.pw-approval-card__msg-wrap { margin-top:18px; }
.pw-approval-card__msg-wrap label { display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.pw-approval-card__msg { width:100%; min-height:84px; padding:10px 12px; border:1px solid #c9c9d4; border-radius:6px; font-family:inherit; font-size:14px; resize:vertical; box-sizing:border-box; }
.pw-approval-card__actions { display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; }
.pw-approval-card__btn { padding:12px 22px; font-size:15px; font-weight:600; border:0; border-radius:8px; cursor:pointer; }
.pw-approval-card__btn:disabled { opacity:.55; cursor:default; }
.pw-approval-card__btn--approve { background:#1f9d57; color:#fff; }
.pw-approval-card__btn--modify { background:#fff; color:#b4451c; border:1px solid #e0a07f; }
.pw-approval-card__result { margin-top:16px; padding:13px 15px; border-radius:8px; font-size:15px; display:none; }
.pw-approval-card__result--ok { background:#e7f7ee; border:1px solid #9fdcb8; color:#13633a; }
.pw-approval-card__result--changes { background:#fdeee7; border:1px solid #f0bfa6; color:#8a3413; }
.pw-approval-card__result--err { background:#fdeaea; border:1px solid #f0a6a6; color:#8a1313; }

/* ── Brand additions (v1.0.1): reference line + production stepper ── */

/* 3-zone card header top row (left info · centred reference · right badge) */
.pw-card-top-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}
.pw-card-top-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}
.pw-card-top-right {
    flex: 0 0 auto;
}

/* Reference chip — Current + Cancelled cards (single-job) */
.pw-card-ref {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    background: var(--pwp-navy-tint);
    border: 1px solid #E2E1EC;
    border-radius: 8px;
    padding: 4px 11px;
    line-height: 1.3;
}
.pw-card-ref-icon {
    width: 14px;
    height: 14px;
    color: var(--pwp-navy);
    opacity: 0.6;
    flex-shrink: 0;
}
.pw-card-ref-label {
    font-size: 0.72em;
    color: var(--pwp-navy);
    opacity: 0.7;
    flex-shrink: 0;
}
.pw-card-ref-value {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--pwp-navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Production stepper — Current single-job cards */
.pw-stepper {
    display: flex;
    padding: 0.9rem 1.2rem 1.1rem;
    border-top: 1px solid #f0f0f0;
}
.pw-step {
    flex: 1;
    position: relative;
    text-align: center;
}
.pw-step-dot {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    border: 1.5px solid #d6d6e0;
    color: #a9a8bd;
}
.pw-step-dot svg {
    width: 14px;
    height: 14px;
}
.pw-step-label {
    display: block;
    font-size: 0.72em;
    margin-top: 8px;
    color: #999;
    padding: 0 2px;
}
.pw-step-line {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e6;
    z-index: 0;
}
.pw-step--done .pw-step-dot {
    background: var(--pwp-navy);
    border-color: var(--pwp-navy);
    color: #fff;
}
.pw-step--done .pw-step-line {
    background: var(--pwp-navy);
}
.pw-step--done .pw-step-label {
    color: #777;
}
.pw-step--current .pw-step-dot {
    background: var(--pwp-orange);
    border-color: var(--pwp-orange);
    color: var(--pwp-navy);
    box-shadow: 0 0 0 4px var(--pwp-orange-tint);
}
.pw-step--current .pw-step-label {
    color: var(--pwp-navy);
    font-weight: 600;
}

@media (max-width: 700px) {
    .pw-card-top-center {
        flex-basis: 100%;
        justify-content: flex-start;
    }
    .pw-step-label {
        font-size: 0.62em;
    }
}

/* 1.5.8: WooCommerce checkout notices render on a navy panel (Divi theme);
   some message text stayed dark and vanished navy-on-navy. Pin the panel navy
   and force every message + link on it white so all notices are readable. */
.woocommerce-NoticeGroup-checkout {
    background: var(--pwp-navy);
}
.woocommerce-NoticeGroup-checkout,
.woocommerce-NoticeGroup-checkout * {
    color: #fff !important;
}

/* 1.7.1: search "jump to matched child" — when a number search matches an order
   INSIDE a merged group, the card header shows this chip, the matched sub-item is
   highlighted, and (single result) it auto-expands + scrolls + flashes. */
.pw-card-match {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--pwp-orange-tint);
    border: 1px solid var(--pwp-orange);
    color: var(--pwp-navy);
    border-radius: 12px;
    padding: 1px 9px;
    font-size: 0.78em;
    font-weight: 600;
    white-space: nowrap;
}
.pw-item-detail--matched {
    background: var(--pwp-orange-tint);
    border-left: 3px solid var(--pwp-orange);
    border-radius: 4px;
    padding-left: 8px;
}
@keyframes pwPortalItemFlash {
    0%   { background: #FFD2A6; }
    100% { background: var(--pwp-orange-tint); }
}
.pw-item-detail--matched.pw-item-flash {
    animation: pwPortalItemFlash 1.4s ease-out 1;
}

/* ── "Who is this order for" (1.9.5, card #483) ──────────────────
   Only ever rendered for a main account — one that orders and pays for
   others — or as the refusal shown to a linked account, which can never
   place an order whatever login it is given. Absent for every other
   customer, so no existing checkout gains a single pixel. */
.pw-checkout-order-for {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}
.pw-checkout-order-for p { margin: 0 0 6px; }
.pw-checkout-order-for select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
}
/* Told apart by lightness, not hue — the house rule for a red-blind reader. */
.pw-checkout-order-for--blocked {
    background: #1f2937;
    border-color: #1f2937;
    color: #f9fafb;
}

/* Whose order this is (1.9.6, card #495). The billing details elsewhere on the
   page belong to the account that is signed in and are replaced with this one
   when the order is created - so the screen has to say so, or it shows one
   customer and stores another. */
.pw-order-for-recorded {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}
.pw-order-for-recorded-name {
    font-weight: 700;
    font-size: 1.05em;
}
.pw-order-for-note {
    margin: 6px 0 0;
    font-size: 0.85em;
    color: #6b7280;
}

/* Whose work an order is, on a main account's list (1.9.8, card #505). Only ever
   drawn for an account that orders for others; nobody else's list has it. */
.pw-card-for-account {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #1f2937;
    color: #f9fafb;
    font-size: 0.8em;
    font-weight: 600;
    vertical-align: middle;
}

/* ── 1.9.9: change the courier on an order still in production ──────────────
   Every state is said in words — selected, the price, the free-delivery
   figure — so nothing here depends on telling two colours apart. */
.pw-courier-change {
    margin: 0.8rem 0 0.4rem;
}

.pw-courier-change-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    background: #fff;
    color: var(--pwp-navy);
    border: 1px solid var(--pwp-navy);
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}

.pw-courier-change-btn:hover {
    background: var(--pwp-navy-tint);
}

/* 1.9.13: the picker is a modal, shaped like the 3D preview modal already in
   this file so it reads as part of the same site. */
.pw-courier-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.pw-courier-modal-open {
    overflow: hidden;
}

.pw-courier-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pw-courier-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    min-height: 48px;
}

.pw-courier-modal-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--pwp-navy);
}

.pw-courier-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 0 4px;
}

.pw-courier-modal-close:hover {
    color: var(--pwp-navy);
}

.pw-courier-modal-body {
    padding: 12px 16px;
    overflow-y: auto;
}

.pw-courier-modal-foot {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.pw-courier-modal-foot .pw-courier-status {
    flex: 1 1 auto;
}

.pw-courier-cancel {
    padding: 0.45rem 1rem;
    background: #fff;
    color: var(--pwp-navy);
    border: 1px solid #c9c9d4;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}

.pw-courier-cancel:hover {
    background: var(--pwp-navy-tint);
}

.pw-courier-loading,
.pw-courier-error {
    font-size: 0.9em;
    color: #555;
}

.pw-courier-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pw-courier-option {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
}

.pw-courier-option:hover {
    background: var(--pwp-navy-tint);
}

.pw-courier-option.is-selected {
    background: var(--pwp-orange-tint);
    outline: 2px solid var(--pwp-orange);
}

.pw-courier-option input {
    flex: 0 0 auto;
    margin: 0;
}

.pw-courier-option-name {
    flex: 1 1 auto;
}

.pw-courier-option-price {
    flex: 0 0 auto;
    font-weight: 600;
}

.pw-courier-option-free {
    flex: 0 0 auto;
    font-size: 0.85em;
    color: #555;
}

.pw-courier-note {
    margin-top: 0.6rem;
    font-size: 0.85em;
    color: #555;
}

.pw-courier-save {
    padding: 0.45rem 1.1rem;
    background: var(--pwp-navy);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}

.pw-courier-save:hover {
    background: var(--pwp-navy-hover);
}

.pw-courier-save[disabled] {
    opacity: 0.6;
    cursor: default;
}

.pw-courier-status {
    font-size: 0.88em;
    color: #555;
}
