/* Zetpy Roboduck - Floating Button and Iframe Styles */

/* Floating Toggle Button */
.zetpy-roboduck-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999998;
    background-color: #FFD503;
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.zetpy-roboduck-toggle:hover {
    background-color: #000000;
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.zetpy-roboduck-toggle:active {
    transform: translateY(0);
}

.zetpy-roboduck-toggle.zetpy-roboduck-active {
    display: none;
}

/* Iframe Wrapper */
.zetpy-roboduck-iframe-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 20%;
    min-width: 500px;
    height: 100%;
    z-index: 999999;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.zetpy-roboduck-iframe-wrapper.zetpy-roboduck-iframe-active {
    transform: translateX(0);
    visibility: visible;
}

/* Close Button */
.zetpy-roboduck-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000000;
    background-color: #FFD503;
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: Arial, sans-serif;
}

.zetpy-roboduck-close:hover {
    background-color: #000000;
    color: #FFFFFF;
    /* transform: scale(1.1); */
}

/* Iframe */
#zetpy-roboduck-iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

/* Ensure proper display in admin */
#wpbody-content .zetpy-roboduck-toggle {
    position: fixed;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 1200px) {
    .zetpy-roboduck-iframe-wrapper {
        width: 40%;
    }
}

@media screen and (max-width: 768px) {
    .zetpy-roboduck-iframe-wrapper {
        width: 100%;
    }
}

