/**
 * Open Layer - WordPress Plugin Styles
 */

.wp-open-layer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.wp-open-layer-overlay.is-open {
    display: flex;
}

.wp-open-layer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.wp-open-layer-box {
    position: relative;
    max-width: 920px;
    width: 98vw;
    max-height: 90vh;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    overflow: visible;
    z-index: 1;
}

.wp-open-layer-content {
    padding: 0;
}

.wp-open-layer-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.wp-open-layer-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.wp-open-layer-content {
    padding: .2rem;
}

.wp-open-layer-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.wp-open-layer-body {
    line-height: 1.6;
}

/* Trigger button (shortcode default) */
.wp-open-layer-trigger {
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.wp-open-layer-trigger:hover {
    background: #005a87;
}

/* Prevent body scroll when layer is open */
body.wp-open-layer-no-scroll {
    overflow: hidden;
}
