.dcp-upload-box {
    direction: rtl;
    background: #fff;
    border: 1px solid #f3c4d3;
    border-radius: 28px;
    overflow: hidden;
    margin: 22px 0;
    box-shadow: 0 8px 30px rgba(231, 63, 123, .06);
    font-family: inherit;
}

.dcp-upload-title {
    background: #fff2ec;
    color: #e63c79;
    font-size: 21px;
    font-weight: 700;
    padding: 17px 24px;
    border-bottom: 1px solid #f7d3de;
}

.dcp-upload-content {
    padding: 24px;
}

.dcp-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.dcp-upload-slot,
.dcp-preview-item {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 18px;
    overflow: hidden;
    box-sizing: border-box;
}

.dcp-upload-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    border: 2px dashed #dfdfdf;
    color: #e63c79;
    cursor: pointer;
    transition: all .2s ease;
}

.dcp-upload-slot:hover {
    transform: translateY(-2px);
    border-color: #e63c79;
    background: #fff7f9;
}

.dcp-plus {
    font-size: 36px;
    line-height: 30px;
    font-weight: 300;
}

.dcp-add-text {
    font-size: 13px;
    margin-top: 8px;
}

.dcp-preview-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dcp-preview-number {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #e63c79;
    font-size: 12px;
    font-weight: 700;
}

.dcp-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.dcp-help {
    color: #a6a6a6;
    font-size: 12px;
    margin: 3px 0 20px;
}

.dcp-description-wrap label {
    display: block;
    color: #e63c79;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 9px;
}

.dcp-description-wrap textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fafafa;
    padding: 14px 16px;
    line-height: 1.9;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dcp-description-wrap textarea:focus {
    border-color: #ef9fbc;
    box-shadow: 0 0 0 3px rgba(230, 60, 121, .08);
}

.dcp-upload-error {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #ffd5d2;
    border-radius: 10px;
    padding: 9px 12px;
    margin: 8px 0 12px;
    font-size: 13px;
}

@media (max-width: 575px) {
    .dcp-upload-box {
        border-radius: 22px;
    }

    .dcp-upload-title {
        font-size: 18px;
        padding: 14px 18px;
    }

    .dcp-upload-content {
        padding: 18px;
    }

    .dcp-upload-slot,
    .dcp-preview-item {
        width: calc(33.333% - 10px);
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 14px;
    }
}

/* دکمه حذف هر تصویر انتخاب‌شده */
.dcp-remove-image {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #e63c79;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: transform .2s ease, background .2s ease, color .2s ease;
    z-index: 3;
}

.dcp-remove-image:hover,
.dcp-remove-image:focus {
    background: #e63c79;
    color: #fff;
    transform: scale(1.08);
    outline: none;
}

.dcp-preview-item {
    border: 1px solid #f0d8e0;
    background: #f4f4f4;
}


/* تایید مشاهده طرح هنگام آنباکس */
.dcp-surprise-confirm {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 20px 0 2px;
    color: #e63c79;
    font-size: 14px;
    font-weight: 600;
    line-height: 2;
    cursor: pointer;
}

.dcp-surprise-confirm input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dcp-checkmark {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border: 1px solid #efc3d2;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    transition: all .2s ease;
}

.dcp-surprise-confirm input:checked + .dcp-checkmark {
    background: #e63c79;
    border-color: #e63c79;
}

.dcp-surprise-confirm input:checked + .dcp-checkmark::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dcp-surprise-confirm input:focus + .dcp-checkmark {
    box-shadow: 0 0 0 3px rgba(230, 60, 121, .10);
}

form.cart .single_add_to_cart_button.dcp-disabled-add-to-cart,
form.cart .single_add_to_cart_button.dcp-disabled-add-to-cart:hover {
    opacity: .48;
    cursor: not-allowed;
    filter: grayscale(.25);
}

@media (max-width: 575px) {
    .dcp-surprise-confirm {
        font-size: 13px;
        gap: 9px;
    }
}
