﻿.dp-editor {
    background: #fff;
    color: #111827;
    padding: 24px 0 10px;
    box-sizing: border-box;
}
.dp-editor * { box-sizing: border-box; }
.dp-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}
.dp-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}
.dp-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 16px;
    align-items: flex-start;
}
.dp-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}
.dp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}
.dp-card-title {
    font-size: 14px;
    font-weight: 600;
}
.dp-card-caption {
    font-size: 12px;
    color: #9ca3af;
}
.dp-select-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.dp-select-label { color: #6b7280; }
.dp-select {
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 5px 24px 5px 10px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    outline: none;
}
.dp-input {
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    width: 80px;
    text-align: right;
    outline: none;
}
.dp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent!important;
    border: 1px solid var(--color-primary);
	color: auto;
    font-weight: 500;
}
.dp-button:hover {
    color: var(--color-text);
    transform: translateY(-1px);
}
.dp-button-outline {
    font-family: var(--font-customize);
    border: 1px solid var(--color-border-hover);
	color: var(--color-border-hover);
    background-color: transparent;
}
.dp-button-outline:hover {
    background: var(--color-border-hover);
    background-color: var(--color-border-hover);
    border: 1px solid var(--color-border-hover);
    color: var(--color-text-hover);
}
.dp-canvas {
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #020617, #020617 35%, #000 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.dp-product-frame {
    position: relative;
    width: min(400px, 100%);
    aspect-ratio: 1 / 1;
}
.dp-product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #fff;
}
.dp-print-area {
    position: absolute;
    top: 25%;
    left: 24%;
    width: 52%;
    height: 38%;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.dp-print-area:before {
    content: "Área de impresión";
    position: absolute;
    top: -18px;
    left: 0px;
    font-size: 11px;
    width: 115px;
    color: #e5e7eb;
    background: rgba(15, 23, 42, .9);
    padding: 2px 6px;
    border-radius: 999px;
}
.dp-logo-preview {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, .75);
    border-radius: 6px;
    cursor: default;
    user-select: none;
    touch-action: none;
}
.dp-logo-preview.dp-active-logo {
    cursor: move;
    border-color: rgba(37, 99, 235, .95);
    z-index: 10;
}
.dp-logo-preview.is-hidden {
    display: none;
}
.dp-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.dp-logo-preview .dp-resize-handle {
    display: none;
}
.dp-logo-preview.dp-active-logo .dp-resize-handle {
    display: block;
}
.dp-resize-handle {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #2563eb;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .3);
}
.dp-resize-handle:before {
    content: "\2198";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    line-height: 1;
    color: #fff;
}
.dp-handle-se {
    right: 0;
    bottom: 0;
    transform: translate(50%, 50%);
    cursor: nwse-resize;
}
.dp-product-frame.dp-exporting .dp-print-area {
    border-color: transparent;
}
.dp-product-frame.dp-exporting .dp-print-area:before {
    display: none;
}
.dp-product-frame.dp-exporting .dp-logo-preview {
    border-color: transparent;
    background: transparent;
}
.dp-product-frame.dp-exporting .dp-resize-handle {
    display: none;
}
.dp-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}
.dp-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dp-step-badge {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #4b5563;
    background: #fff;
}
.dp-current-position {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #111827;
    color: #e5e7eb;
}
.dp-positions-strip {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.dp-positions-strip::-webkit-scrollbar { height: 6px; }
.dp-positions-strip::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}
.dp-position-item {
    flex: 0 0 82px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.dp-position-item img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
    background: #f3f4f6;
}
.dp-position-item span { white-space: nowrap; }
.dp-position-item.dp-active,
.dp-position-item:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .15);
    transform: translateY(-1px);
}
.dp-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dp-logo-thumb {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease, background .15s ease;
}
.dp-logo-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 8px;
}
.dp-logo-thumb.dp-active,
.dp-logo-thumb:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .15);
    transform: translateY(-1px);
}
.dp-logo-add {
    border-style: dashed;
    background: #f9fbff;
    color: #6b7280;
    font-size: 11px;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}
.dp-logo-add-icon {
    font-size: 20px;
    line-height: 1;
}
.dp-summary {
    margin-top: 8px;
    font-size: 13px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    background: #f9fafb;
}
.dp-summary-section-title {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .12em;
    color: #9ca3af;
    margin-bottom: 4px;
    margin-top: 10px;
}
.dp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 8px;
}
.dp-summary-row span:last-child { text-align: right; }
.dp-summary-hr {
    border: 0;
    border-top: 1px dashed #e5e7eb;
    margin: 10px 0;
}
.dp-summary-total {
    font-size: 16px;
    font-weight: 700;
}
.dp-summary-note {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}
.dp-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
@media (max-width: 991.98px) {
    .dp-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .dp-current-position {
        margin-left: 0;
        margin-top: 4px;
    }
}
@media (max-width: 480px) {
    .dp-summary-actions { flex-direction: column; }
}
.btn-nt-cancel {
    border: 1px solid #d1d5db !important;
    color: #6b7280 !important;
    background-color: #fff !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    padding: 7px 18px !important;
    transition: background .15s ease, transform .1s ease;
}
.dp-area-logos-strip {
    display: none;
}
.dp-area-logo-badge {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s ease;
}
.dp-area-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dp-area-logo-badge.dp-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .15);
}
.dp-badge-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 4px 0 0 0;
    line-height: 1.2;
}
.dp-badge-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    display: none;
    z-index: 5;
}
.dp-area-logo-badge:hover .dp-badge-remove {
    display: block;
}
.dp-badge-empty {
    border-style: dashed;
    border-color: #d1d5db;
    background: #f9fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.dp-badge-empty-icon {
    font-size: 20px;
    color: #9ca3af;
    line-height: 1;
}