.joe-new-orders {
    display: grid;
    gap: 18px;
}

.joe-new-orders-search {
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
}

.joe-new-orders-search label {
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.joe-new-orders-search__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.joe-new-orders-search input[type="search"] {
    background: #fff;
    border: 1px solid #a2a6ac;
    border-radius: 999px;
    color: #111;
    flex: 1 1 320px;
    font: inherit;
    min-height: 38px;
    min-width: 0;
    padding: 8px 16px;
}

.joe-new-order-card {
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    overflow: hidden;
}

.joe-new-order-card--attention {
    border-color: #dd3333;
    box-shadow: 0 0 0 1px rgba(221, 51, 51, 0.12);
}

.joe-new-order-card__header {
    align-items: flex-start;
    background: #f0f2f2;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 16px 20px;
}

.joe-new-order-card__meta {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(110px, auto));
}

.joe-new-order-card__meta-item > span {
    color: #565959;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.joe-new-order-card__meta-item strong {
    color: #111;
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.joe-new-order-card__meta-item strong .woocommerce-Price-amount,
.joe-new-order-card__meta-item strong .woocommerce-Price-currencySymbol {
    display: inline;
    text-transform: none;
    white-space: nowrap;
}

.joe-new-order-card__meta-item strong .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.joe-new-order-card__meta-item small {
    color: #565959;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.joe-new-order-card__meta-item--customer small {
    max-width: 220px;
    overflow-wrap: anywhere;
}

.joe-new-order-card__order-actions {
    color: #565959;
    font-size: 14px;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.joe-new-order-card__number {
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.joe-new-order-card__attention {
    align-items: center;
    color: #b12704;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.joe-new-order-card__attention .joe-order-warning-icon {
    flex: 0 0 auto;
}

.joe-order-warning-icon {
    animation: joe-order-warning-pulse 1.6s ease-in-out infinite;
    cursor: help;
    display: inline-block;
    height: 24px;
    vertical-align: middle;
    width: 24px;
}

.joe-order-warning-icon--fallback {
    align-items: center;
    background: #dd3333;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
}

@keyframes joe-order-warning-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1.35);
    }

    50% {
        opacity: 0.28;
        transform: scale(1);
    }
}

.joe-new-order-link {
    color: #2162a1;
    font-weight: 600;
    text-decoration: none;
}

.joe-new-order-link:hover {
    text-decoration: underline;
}

.joe-new-order-card__body {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 20px;
}

.joe-new-order-card__items {
    display: grid;
    gap: 18px;
}

.joe-new-order-item {
    display: grid;
    gap: 18px;
    grid-template-columns: 118px minmax(0, 1fr);
}

.joe-new-order-item--attention {
    border-left: 4px solid #dd3333;
    padding-left: 14px;
}

.joe-new-order-item__image {
    align-items: flex-start;
    display: flex;
    justify-content: center;
}

.joe-new-order-item__image img,
.joe-new-order-item__image video {
    display: block;
    height: auto;
    max-height: 118px;
    max-width: 118px;
    object-fit: contain;
    width: auto;
}

.joe-new-order-item__title {
    color: #2162a1;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.joe-new-order-item__title a {
    color: inherit;
    text-decoration: none;
}

.joe-new-order-item__title a:hover {
    text-decoration: underline;
}

.joe-new-order-item__details {
    color: #333;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px 14px;
    margin-bottom: 8px;
}

.joe-new-order-item__reference {
    color: #333;
    font-size: 13px;
    font-weight: 400;
    line-height: inherit;
    margin: -2px 0 10px;
}

.joe-new-order-item__reference span {
    color: inherit;
    font-weight: inherit;
}

.joe-new-order-item__reference strong {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.joe-new-order-item__meta {
    color: #565959;
    display: grid;
    font-size: 12px;
    gap: 4px;
    margin: 0 0 12px;
}

.joe-new-order-item__meta div {
    display: flex;
    gap: 6px;
}

.joe-new-order-item__meta dt {
    font-weight: 700;
}

.joe-new-order-item__meta dd {
    margin: 0;
}

.joe-new-order-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.joe-new-order-button,
.joe-new-order-side-button {
    align-items: center;
    appearance: none;
    border: 1px solid #a2a6ac;
    border-radius: 999px;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 38px;
    padding: 8px 18px;
    text-align: center;
    text-decoration: none;
}

.joe-new-order-button:hover,
.joe-new-order-side-button:hover {
    color: #111;
    text-decoration: none;
}

.joe-new-order-button--primary {
    background: #ffd814;
    border-color: #fcd200;
}

.joe-new-order-card__side-actions {
    align-self: start;
    display: grid;
    gap: 8px;
}

.joe-new-order-side-button {
    background: #fff;
    box-shadow: none;
    width: 100%;
}

button.joe-new-order-side-button.joe-new-order-notes-open {
    border-radius: 999px !important;
}

button.joe-new-order-side-button.joe-new-order-notes-open:hover,
button.joe-new-order-side-button.joe-new-order-notes-open:focus {
    background: #fff;
    border-color: #a2a6ac;
    color: #111;
    text-decoration: none;
}

.joe-new-order-side-button span {
    color: inherit;
    font: inherit;
}

.joe-order-notes-modal-open {
    overflow: hidden;
}

.joe-order-notes-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 99999;
}

.joe-order-notes-modal[hidden] {
    display: none;
}

.joe-order-notes-modal__backdrop {
    background: rgba(17, 17, 17, 0.48);
    inset: 0;
    position: absolute;
}

.joe-order-notes-modal__dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.24);
    max-height: min(720px, calc(100vh - 40px));
    max-width: 720px;
    overflow: auto;
    padding: 22px;
    position: relative;
    width: min(100%, 720px);
}

.joe-order-notes-modal__header {
    align-items: flex-start;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.joe-order-notes-modal__header h2 {
    color: #111;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 4px;
}

.joe-order-notes-modal__header p {
    color: #565959;
    font-size: 13px;
    margin: 0;
}

.joe-order-notes-modal__close {
    align-items: center;
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 999px;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 26px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 40px;
}

.joe-order-notes-modal__history {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.joe-order-notes-empty {
    background: #f7fafa;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    color: #565959;
    font-size: 14px;
    padding: 14px;
}

.joe-order-notes-list {
    display: grid;
    gap: 12px;
}

.joe-order-note {
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 14px;
}

.joe-order-note__header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.joe-order-note__header strong {
    color: #111;
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.joe-order-note__header span {
    color: #565959;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.joe-order-note__edit {
    background: transparent;
    border: 0;
    color: #2162a1;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 0;
}

.joe-order-note__content {
    color: #333;
    font-size: 14px;
    line-height: 1.45;
}

.joe-order-note__audit {
    border-top: 1px solid #ededed;
    color: #565959;
    font-size: 12px;
    margin-top: 12px;
    padding-top: 10px;
}

.joe-order-note__audit summary {
    cursor: pointer;
    font-weight: 700;
}

.joe-order-note__audit ol {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding-left: 18px;
}

.joe-order-note__audit p {
    margin: 2px 0 0;
}

.joe-order-notes-form {
    border-top: 1px solid #e7e7e7;
    display: grid;
    gap: 10px;
    padding-top: 16px;
}

.joe-order-notes-form label {
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.joe-order-notes-form textarea {
    background: #fff;
    border: 1px solid #a2a6ac;
    border-radius: 8px;
    color: #111;
    font-size: 14px;
    line-height: 1.45;
    min-height: 110px;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.joe-order-notes-form__edit-context {
    color: #565959;
    font-size: 12px;
}

.joe-order-notes-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.joe-order-notes-form__status {
    color: #0f7b30;
    font-size: 13px;
    min-height: 18px;
}

.joe-order-notes-form__status.is-error {
    color: #b12704;
}

.joe-new-orders-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.joe-new-orders-pagination__link,
.joe-new-orders-pagination__dots {
    align-items: center;
    border: 1px solid #d5d9d9;
    border-radius: 999px;
    color: #111;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 38px;
    min-width: 38px;
    padding: 8px 14px;
    text-decoration: none;
}

.joe-new-orders-pagination__link:hover {
    border-color: #a2a6ac;
    color: #111;
    text-decoration: none;
}

.joe-new-orders-pagination__link--current {
    background: #111;
    border-color: #111;
    color: #fff;
}

.joe-new-orders-pagination__dots {
    border-color: transparent;
    color: #565959;
    min-width: 22px;
    padding-left: 4px;
    padding-right: 4px;
}

@media (max-width: 900px) {
    .joe-new-order-card__header,
    .joe-new-order-card__body {
        display: block;
    }

    .joe-new-order-card__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .joe-new-order-card__order-actions {
        margin-top: 14px;
        text-align: left;
        white-space: normal;
    }

    .joe-new-order-card__side-actions {
        margin-top: 18px;
    }
}

@media (max-width: 560px) {
    .joe-new-order-card__header,
    .joe-new-order-card__body {
        padding: 14px;
    }

    .joe-new-order-card__meta {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .joe-new-order-item {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .joe-new-order-item__image img,
    .joe-new-order-item__image video {
        max-height: 84px;
        max-width: 84px;
    }
}
