body.cp-direct-upload-product .zakeke-customize-button,
body.cp-direct-upload-product [data-action="zakeke-customize"],
body.cp-direct-upload-product .zakeke-btn {
    display: none !important;
}

body.cp-direct-upload-product #cp-step-budget {
    display: none !important;
}

.cp-direct-upload-step {
    display: none;
}

.cp-direct-upload-step.is-visible {
    display: block;
}

.cp-direct-budget-final {
    margin: 18px 0 22px;
}

.cp-direct-budget-final > .cp-flow-step-heading {
    margin-bottom: 12px;
}

.cp-direct-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cp-direct-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 12px;
    border: 1.5px solid #e4e4e7;
    border-radius: 14px;
    background: #fafafa;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cp-direct-card.is-selected {
    border-color: #18181b;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.cp-direct-card.is-uploaded {
    border-color: #86efac;
    background: #f0fdf4;
}

.cp-direct-card.is-loading {
    opacity: .7;
    pointer-events: none;
}

.cp-direct-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-height: 23px;
}

.cp-direct-card h4 {
    margin: 10px 0 8px;
    color: #18181b;
    font-size: 13px;
    line-height: 1.2;
}

.cp-direct-price {
    color: #52525b;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.cp-direct-lock {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.cp-direct-check {
    position: relative;
    display: inline-flex;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.cp-direct-check input {
    position: absolute;
    opacity: 0;
}

.cp-direct-check span {
    width: 22px;
    height: 22px;
    border: 1.5px solid #a1a1aa;
    border-radius: 6px;
    background: #fff;
}

.cp-direct-check input:checked + span {
    border-color: #18181b;
    background: #18181b;
}

.cp-direct-check input:checked + span::after {
    content: "✓";
    display: grid;
    place-items: center;
    height: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.cp-direct-drop,
.cp-direct-not-selected,
.cp-direct-file-ok {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 7px;
    border-radius: 9px;
    text-align: center;
}

.cp-direct-drop {
    border: 1.5px dashed #a1a1aa;
    background: #fafafa;
    cursor: pointer;
}

.cp-direct-drop:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.cp-direct-upload-icon {
    display: grid;
    width: 27px;
    height: 27px;
    margin-bottom: 4px;
    place-items: center;
    border-radius: 50%;
    background: #18181b;
    color: #fff;
    font-size: 17px;
}

.cp-direct-drop strong {
    font-size: 11px;
}

.cp-direct-drop small {
    margin-top: 3px;
    color: #71717a;
    font-size: 8.5px;
    line-height: 1.2;
}

.cp-direct-not-selected {
    color: #a1a1aa;
    font-size: 10px;
    line-height: 1.25;
}

.cp-direct-file-ok {
    gap: 5px;
}

.cp-direct-ok-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.cp-direct-file-name {
    display: block;
    overflow: hidden;
    width: 100%;
    color: #166534;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-direct-replace {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 9.5px;
    text-decoration: underline;
    cursor: pointer;
}

.cp-direct-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cp-direct-progress {
    min-height: 12px;
    color: #52525b;
    font-size: 9px;
    text-align: center;
}

.cp-direct-error {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
}

.cp-direct-error.is-visible {
    display: block;
}

.cp-order-designs ul {
    margin: 4px 0 8px 18px;
}

body.cp-direct-modal-open {
    overflow: hidden;
}

.cp-direct-modal-backdrop {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(4px);
}

.cp-direct-modal {
    position: relative;
    width: min(100%, 540px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    color: #18181b;
}

.cp-direct-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f4f5;
    color: #52525b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cp-direct-modal-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 22px;
    font-weight: 900;
}

.cp-direct-modal h2 {
    margin: 0 42px 4px 0;
    font-size: 24px;
    line-height: 1.2;
}

.cp-direct-modal-intro {
    margin: 0 0 18px;
    color: #71717a;
    font-size: 13px;
}

.cp-direct-modal-summary {
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
}

.cp-direct-modal-row,
.cp-direct-modal-section,
.cp-direct-modal-total {
    padding: 13px 15px;
    border-bottom: 1px solid #e4e4e7;
}

.cp-direct-modal-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.cp-direct-modal-row > span,
.cp-direct-modal-section > span {
    color: #71717a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.cp-direct-modal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cp-direct-modal-pill {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f4f4f5;
    font-size: 12px;
}

.cp-direct-modal-section ul {
    display: grid;
    gap: 8px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.cp-direct-modal-section li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-direct-modal-section li > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.cp-direct-modal-section li small {
    overflow: hidden;
    color: #71717a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-direct-modal-check {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
}

.cp-direct-modal-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 0;
    background: #fafafa;
}

.cp-direct-modal-total > span {
    display: flex;
    flex-direction: column;
}

.cp-direct-modal-total small {
    color: #71717a;
    font-size: 11px;
}

.cp-direct-modal-total > strong {
    font-size: 23px;
}

.cp-direct-proof-note {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 12px;
}

.cp-direct-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
}

.cp-direct-modal-actions button {
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.cp-direct-modal-edit {
    border: 1px solid #d4d4d8;
    background: #fff;
    color: #3f3f46;
}

.cp-direct-modal-confirm {
    border: 1px solid #18181b;
    background: #18181b;
    color: #fff;
}

.cp-direct-cart-quantity {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-width: 54px;
    padding: 8px 10px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fafafa;
    justify-content: center;
}

.cp-direct-cart-designs {
    margin-top: 10px;
}

.cp-direct-cart-designs > strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}

.cp-direct-cart-designs__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-direct-cart-design {
    display: flex;
    width: 64px;
    color: #52525b;
    font-size: 9px;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    flex-direction: column;
    gap: 4px;
}

.cp-direct-cart-design img,
.cp-direct-cart-design__file {
    display: grid;
    width: 58px;
    height: 58px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #f4f4f5;
    object-fit: cover;
    place-items: center;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 767px) {
    .cp-direct-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-direct-modal {
        padding: 22px 18px 18px;
        border-radius: 18px;
    }

    .cp-direct-modal-actions {
        grid-template-columns: 1fr;
    }
}
