.lookcheck-try-on-btn {
    margin-top: 10px !important;
    display: inline-block !important;
}

.lookcheck-try-on-btn.button,
.lookcheck-try-on-btn.woocommerce-button,
.lookcheck-try-on-btn.add_to_cart_button {
    margin-top: 10px;
}

#lookcheck-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

#lookcheck-modal.show {
    display: flex !important;
}

.lookcheck-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: lookcheck-modal-appear 0.3s ease-out;
}

@keyframes lookcheck-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lookcheck-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.lookcheck-upload-box {
    width: 321px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lookcheck-upload-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.lookcheck-upload-box label {
    margin: 0;
    cursor: pointer;
    display: block;
}

.lookcheck-upload-image {
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.lookcheck-upload-image:hover {
    opacity: 0.9;
}

.lookcheck-upload-input {
    display: none;
}

.lookcheck-remove-image {
    cursor: pointer;
    position: absolute;
    top: 14px;
    right: 3%;
    z-index: 9999;
    display: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 2px;
    transition: all 0.3s ease;
}

.lookcheck-remove-image:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.lookcheck-remove-image.show {
    display: block !important;
}

.lookcheck-loader {
    max-width: 100%;
    height: auto;
    display: none;
    position: absolute;
    top: 0;
    z-index: 10;
}

.lookcheck-loader.show {
    display: block !important;
}

.lookcheck-main-loader {
    display: none;
    width: 40px;
    margin: 10px auto 0 auto;
}

.lookcheck-main-loader.show {
    display: block !important;
}

.lookcheck-modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.lookcheck-proceed-btn {
    /* background: #aed8e0 !important; */
    /* border: 1px solid #aed8e0 !important; */
    border-radius: 5px !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.lookcheck-proceed-btn:hover:not(:disabled) {
    /* background: #9bc7d0 !important; */
    /* border-color: #9bc7d0 !important; */
    transform: translateY(-1px) !important;
}

.lookcheck-proceed-btn:disabled {
    /* background: #cccccc !important; */
    /* border-color: #cccccc !important; */
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.lookcheck-close-btn {
    background: #6c757d !important;
    border: 1px solid #6c757d !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.lookcheck-close-btn:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
    transform: translateY(-1px) !important;
}

.lookcheck-error {
    color: #d63638;
    margin-top: 15px;
    font-weight: 500;
    padding: 10px;
    background: #fcf0f1;
    border-radius: 5px;
    border-left: 4px solid #d63638;
}

.lookcheck-success {
    color: #00a32a;
    margin-top: 15px;
    font-weight: 500;
    padding: 10px;
    background: #f0f6fc;
    border-radius: 5px;
    border-left: 4px solid #00a32a;
}

.lookcheck-notice {
    color: #d63638;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .lookcheck-modal-content {
        width: 95%;
        padding: 20px;
        margin: 20px;
    }

    .lookcheck-upload-box {
        width: 100%;
        max-width: 300px;
    }

    .lookcheck-modal-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lookcheck-proceed-btn,
    .lookcheck-close-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .lookcheck-modal-content h3 {
        font-size: 20px;
    }

    .lookcheck-upload-box {
        max-width: 250px;
    }
}

/* Expand icon button */
.lookcheck-expand-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.lookcheck-expand-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Fullscreen lightbox */
#lookcheck-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    animation: lookcheck-modal-appear 0.2s ease-out;
}

#lookcheck-fullscreen-modal.show {
    display: flex !important;
}

.lookcheck-fullscreen-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lookcheck-fullscreen-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 1000001;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.lookcheck-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lookcheck-try-on-btn:focus,
.lookcheck-proceed-btn:focus,
.lookcheck-close-btn:focus {
    outline: 2px solid #aed8e0;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {

    .lookcheck-try-on-btn,
    .lookcheck-proceed-btn {
        border: 2px solid #000000;
    }

    .lookcheck-modal-content {
        border: 2px solid #000000;
    }
}

@media (prefers-reduced-motion: reduce) {

    .lookcheck-try-on-btn,
    .lookcheck-proceed-btn,
    .lookcheck-close-btn,
    .lookcheck-upload-box,
    .lookcheck-upload-image,
    .lookcheck-remove-image {
        transition: none !important;
    }

    .lookcheck-modal-content {
        animation: none !important;
    }
}