/* Agoogi custom products / custom production workflow */

.custom-product-summary {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d7e4ef;
    border-radius: 12px;
    background: #f5f9fc;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.custom-product-tools {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.custom-product-block {
    padding: 12px;
    border: 1px solid #d9e3ec;
    border-radius: 14px;
    background: #fbfcfe;
}

.custom-product-block-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.custom-product-block-heading strong {
    color: #172033;
}

.custom-product-block-heading span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
}

.custom-status {
    display: inline-flex;
    align-items: center;
    margin: 5px 0 9px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 10px;
    font-weight: 900;
}

.custom-status--submitted,
.custom-status--bulk-pending {
    background: #fff7ed;
    color: #9a3412;
}

.custom-status--needs_changes,
.custom-status--cancelled,
.custom-status--bulk-declined {
    background: #fff1f2;
    color: #be123c;
}

.custom-status--approved,
.custom-status--complete,
.custom-status--bulk-approved,
.custom-status--bulk-used {
    background: #ecfdf5;
    color: #047857;
}

.custom-status--in_production {
    background: #eff6ff;
    color: #1d4ed8;
}

.custom-design-preview-small {
    display: block;
    width: min(220px, 100%);
    max-height: 180px;
    object-fit: contain;
    margin: 8px 0;
    border: 1px solid #d7e0e8;
    border-radius: 12px;
    background: #fff;
}

.custom-admin-note {
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
}

.custom-design-form,
.custom-bulk-form,
.custom-review-form {
    display: grid;
    gap: 10px;
}

.custom-threshold-control {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.custom-threshold-control input {
    grid-column: 1 / -1;
}

.custom-preview-shell {
    padding: 10px;
    border-radius: 12px;
    background: #eef3f8;
}

.custom-preview-shell canvas {
    display: block;
    width: 100%;
    max-width: 430px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

.custom-preview-shell small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    text-align: center;
}

.custom-admin-container {
    max-width: 1180px;
}

.custom-admin-heading,
.custom-review-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.custom-settings-form {
    display: grid;
    gap: 24px;
    padding: 22px;
}

.custom-settings-divider {
    padding-top: 20px;
    border-top: 1px solid #dbe3ec;
}

.custom-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.custom-check input {
    width: auto;
    margin-top: 4px;
}

.custom-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.custom-review-card {
    min-width: 0;
}

.custom-review-card h3 {
    margin: 8px 0 4px;
}

.custom-review-heading p {
    color: #64748b;
    font-size: 11px;
}

.custom-review-images {
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(180px, 1fr);
    gap: 14px;
    margin: 12px 0;
}

.custom-review-images figure {
    margin: 0;
}

.custom-review-images img {
    display: block;
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #f8fafc;
}

.custom-review-images figcaption {
    margin-top: 5px;
    color: #64748b;
    font-size: 10px;
    text-align: center;
}

.custom-order-status {
    margin: 8px 0 0;
    padding: 9px 10px;
    border-left: 3px solid #0ea5e9;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 11px;
}

@media (max-width: 900px) {
    .custom-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .custom-admin-heading,
    .custom-review-heading,
    .custom-product-block-heading {
        flex-direction: column;
    }

    .custom-product-block-heading span {
        text-align: left;
    }

    .custom-review-images {
        grid-template-columns: 1fr;
    }
}

/* Custom product mockup / printable-area configurator */
.custom-mockup-config {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(360px, 1.15fr);
    gap: 20px;
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #d7e2ec;
    border-radius: 18px;
    background: #f8fbfd;
}

.custom-mockup-config-copy h3 {
    margin: 8px 0;
}

.custom-mockup-config-copy > p {
    color: #64748b;
    line-height: 1.55;
}

.custom-overlay-fields {
    margin-top: 12px;
}

.custom-mockup-editor {
    min-width: 0;
}

.custom-mockup-stage {
    position: relative;
    width: 100%;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid #cbd8e4;
    border-radius: 16px;
    background:
        linear-gradient(45deg, #eef2f6 25%, transparent 25%),
        linear-gradient(-45deg, #eef2f6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef2f6 75%),
        linear-gradient(-45deg, transparent 75%, #eef2f6 75%),
        #fff;
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    touch-action: none;
}

.custom-mockup-stage img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.custom-mockup-empty {
    display: grid;
    place-items: center;
    min-height: 330px;
    padding: 30px;
    color: #64748b;
    text-align: center;
}

.custom-print-zone {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 24px;
    min-height: 24px;
    border: 2px dashed #0284c7;
    background: rgba(14,165,233,.14);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.75) inset,
        0 6px 18px rgba(2,132,199,.15);
    color: #075985;
    cursor: move;
    transform-origin: center center;
    touch-action: none;
}

.custom-print-zone[data-shape="circle"] {
    border-radius: 50%;
}

.custom-print-zone[data-shape="rounded_rectangle"],
.custom-print-zone[data-shape="strip"] {
    border-radius: 18px;
}

.custom-print-zone span {
    padding: 4px 7px;
    border-radius: 7px;
    background: rgba(255,255,255,.86);
    font-size: 10px;
    font-weight: 900;
    pointer-events: none;
}

.custom-zone-resize {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 2px 7px rgba(15,23,42,.22);
    cursor: nwse-resize;
    touch-action: none;
}

.custom-mockup-editor > small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 900px) {
    .custom-mockup-config {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .custom-mockup-stage {
        min-height: 260px;
    }

    .custom-mockup-empty {
        min-height: 260px;
    }
}

