/* cr_modal.css - Styles for the upload modal and button */
.cr-upload-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #0078d7;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.cr-upload-btn.small, .cr-upload-btn.small:focus, .cr-upload-btn.small:hover {
    padding: 6px 14px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    min-width: 0 !important;
}
.cr-upload-btn:hover {
    background: #005fa3;
}
.cr-modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.cr-modal-bg.active {
    display: flex;
}
.cr-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    width: 600px;
    max-width: 98vw;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.cr-modal-header {
    padding: 16px 24px;
    background: #0078d7;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
}
.cr-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    margin-left: 12px;
}
.cr-modal-iframe {
    border: none;
    width: 100%;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    background: #f8f8f8;
    display: block;
}
@media (max-width: 700px) {
    .cr-modal { width: 98vw; height: 98vh; max-height: 98vh; }
    .cr-modal-iframe { height: 100%; }
}
body.cr-modal-open {
    overflow: hidden !important;
} 