/**
 * WPRealizer Calendly CSS
 */

.wprealizer-calendly-widget {
    min-width: 320px;
    position: relative;
    margin-bottom: 20px;
}

.wprealizer-calendly-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    z-index: 5;
}

.wprealizer-calendly-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 162, 255, 0.2);
    border-radius: 50%;
    animation: wprealizer-calendly-spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Button Styles */
.wprealizer-calendly-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wprealizer-calendly-button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.wprealizer-calendly-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button Sizes */
.wprealizer-calendly-button-small {
    font-size: 14px;
    padding: 6px 12px;
}

.wprealizer-calendly-button-medium {
    font-size: 16px;
    padding: 10px 20px;
}

.wprealizer-calendly-button-large {
    font-size: 18px;
    padding: 12px 24px;
}

/* Popup Overlay */
.wprealizer-calendly-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wprealizer-calendly-popup-container {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.wprealizer-calendly-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wprealizer-calendly-popup-close:before,
.wprealizer-calendly-popup-close:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background-color: #333;
}

.wprealizer-calendly-popup-close:before {
    transform: rotate(45deg);
}

.wprealizer-calendly-popup-close:after {
    transform: rotate(-45deg);
}

.wprealizer-calendly-popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
