/* ALERTA PERSONALIZADO */

.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    max-width: 90%;
    width: 500px;

    padding: 15px 20px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 16px;
    font-weight: 500;

    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

.custom-alert.success {
    background: #e6f7e6;
    color: #2e7d32;
}

.custom-alert.error {
    background: #fdecea;
    color: #c62828;
}

.custom-alert button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

.review-required-asterisk {
    color: #de1616;
    font-size: .875rem;
}

.stars i {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
}

.stars i.active,
.stars i.hover {
    color: #ffc107;
}

.stars i:hover {
    transform: scale(1.1);
}

.preview-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-box {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
}

/* Upload custom */
.upload-box {
    border: 1.5px solid #ccc;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    min-height: 48px;
}

.upload-box:hover,
.upload-box:focus-within {
    border-color: #198754;
    box-shadow: 0 0 0 2px rgba(25,135,84,.15);
}

.upload-text {
    color: #666;
    font-size: 15px;
    user-select: none;
}

.upload-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loader */
.upload-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #198754;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.upload-icon {
    font-size: 18px;
    color: #198754;
}

/* Mobile touch */
@media (max-width: 576px) {

    .upload-box {
        padding: 16px;
        font-size: 16px;
    }

    .upload-text {
        font-size: 16px;
    }
}

/* Mobile layout */
@media (max-width: 576px) {

    h4 {
        font-size: 20px;
    }

    label {
        font-size: 15px;
    }

    .stars i {
        font-size: 34px;
        margin-right: 3px;
    }

    .preview-box {
        width: 75px;
        height: 75px;
    }

    textarea {
        font-size: 16px;
    }
}