/**
 * Diamond Guide Modal Styles
 * Minimal, clean modal styling that won't conflict with existing customizer styles
 */

/* Modal Overlay */
.kyrex-diamond-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999999 !important;
    /* Higher than off-canvas panel (99999999) */
    overflow-y: auto;
    padding: 20px;
}

/* Modal Content Container */
.kyrex-diamond-modal-content {
    position: relative;
    background: #fff;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: kyrexModalSlideIn 0.3s ease-out;
}

@keyframes kyrexModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.kyrex-diamond-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.kyrex-diamond-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* Modal Body */
.kyrex-diamond-modal-body {
    padding: 60px 40px 40px;
}

/* Prevent body scroll when modal is open */
body.kyrex-modal-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kyrex-diamond-modal-content {
        margin: 20px auto;
        max-width: 100%;
    }

    .kyrex-diamond-modal-body {
        padding: 50px 20px 30px;
    }

    .kyrex-diamond-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
}

/* Ensure modal content is styled properly */
.kyrex-diamond-modal-body h2,
.kyrex-diamond-modal-body h3 {
    margin-top: 0;
}

.kyrex-diamond-modal-body img {
    max-width: 100%;
    height: auto;
}