.custif-iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow: hidden;
}

/* Iframe base styles */
.custif-iframe-wrapper iframe {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Elementor editor specific fixes */
.elementor-editor-active .custif-iframe-wrapper {
    min-width: 0;
    flex-shrink: 1;
}

.elementor-editor-active .custif-iframe-wrapper iframe {
    min-width: 0;
    max-width: 100% !important;
}

/* Alignment classes */
.custif-iframe-align-left .custif-iframe-wrapper {
    margin-right: auto;
    margin-left: 0;
    width: 100%;
}

.custif-iframe-align-center .custif-iframe-wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.custif-iframe-align-right .custif-iframe-wrapper {
    margin-left: auto;
    margin-right: 0;
    width: 100%;
}

/* Notice styles */
.custif-iframe-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 3px;
    background-color: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: #991B1B;
    margin: 16px 0;
    width: 100%;
    box-sizing: border-box;
}

.custif-iframe-notice .notice-icon {
    flex-shrink: 0;
}

.custif-iframe-notice .notice-icon svg {
    width: 24px;
    height: 24px;
    color: currentColor;
}

.custif-iframe-notice p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Maintain alignment with your existing classes */
.custif-iframe-align-left .custif-iframe-notice {
    margin-right: auto;
    margin-left: 0;
}

.custif-iframe-align-center .custif-iframe-notice {
    margin-left: auto;
    margin-right: auto;
}

.custif-iframe-align-right .custif-iframe-notice {
    margin-left: auto;
    margin-right: 0;
}

.custif-device-frame-css {
    --custif-device-bezel: #111827;
    --custif-device-border: #374151;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.custif-iframe-content {
    width: 100%;
    height: 100%;
    border: none;
}

/* iMac Styles */
.custif-imac-body {
    position: relative;
    background-color: var(--custif-device-bezel);
    border-radius: 28px;
    border: 1px solid var(--custif-device-border);
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    z-index: 2;
}

.custif-imac-top {
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custif-imac-cam {
    width: 0.5rem;
    height: 0.5rem;
    background: #374151;
    border-radius: 50%;
}

.custif-imac-screen-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #fff;
    border: 4px solid var(--custif-device-bezel);
}

.custif-imac-chin {
    height: 4rem;
    background: linear-gradient(to bottom, #e2e2e4, #c7c7cc);
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custif-imac-stand-neck {
    width: 8rem;
    height: 6rem;
    background: linear-gradient(to bottom, #9ca3af, #d1d5db);
    margin-top: -2rem;
    position: relative;
    z-index: 1;
}

.custif-imac-stand-base {
    width: 12rem;
    height: 0.5rem;
    background: #d1d5db;
    border-radius: 4px;
    margin-top: -2px;
    z-index: 1;
}

/* iPhone Styles */
.custif-iphone-body {
    width: 375px;
    max-width: 100%;
    aspect-ratio: 9/19.5;
    background: #1f2937;
    border-radius: 55px;
    padding: 12px;
    position: relative;
    margin: 0 auto;
}

.custif-iphone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 45px;
    overflow: hidden;
    border: 4px solid #000;
    position: relative;
}

.custif-iphone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

/* iPad Styles */
.custif-ipad-body {
    width: 360px;
    max-width: 100%;
    aspect-ratio: 3/4;
    background: #1f2937;
    border-radius: 30px;
    padding: 12px;
    margin: 0 auto;
}

.custif-ipad-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

/* MacBook Styles */
.custif-macbook-lid {
    width: 100%;
    max-width: 768px;
    background: #0d0d0d;
    border-radius: 20px 20px 0 0;
    padding: 10px 10px 0 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.custif-macbook-screen {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
}

.custif-macbook-base {
    width: 100%;
    max-width: 850px;
    height: 1rem;
    background: #c8c8cc;
    border-radius: 0 0 12px 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #9ca3af;
}

.custif-macbook-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 18px;
    background: #0d0d0d;
    border-radius: 0 0 8px 8px;
    z-index: 10;
}