/*
* Style Works for Editor Only
*/
p.alcb-note {
    font-style: italic;
    color: #7b7b7b;
}
.alcb-logo-link-wrapper {
    display: flex;
    align-items: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
    .logo {
        width: 50px;
        height: 36px;
        min-width: 50px;
        display: flex;
        align-items: center;
        position: relative;
        border: 1px solid #ccc;
        padding: 2px;
        box-sizing: border-box;
        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
    .components-base-control {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .logo-preview {
        position: absolute;
        top: auto;
        left: 0;
        width: 120px;
        height: auto;
        background: #ffff;
        border: 1px solid #ccc;
        z-index: 1000000;
        display: none;
        bottom: -45px;
    }

    .logo:hover .logo-preview {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

// Pattern Modal Styles
.alcb-patterns-modal {
    width: 90%;
    height: 90%;
    max-height: none !important;
}

.alcb_patterns_grid {
    column-count: 5;
    gap: 15px;
}

.alcb-pattern-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-sizing: border-box;

    &.is-locked {
        position: relative;
        opacity: 0.8;
    }
}

.alcb-pattern-footer {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alcb-pattern-preview {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alcb-pattern-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 !important;
}

span.alcb-pattern-title {
    font-size: 16px;
    font-weight: 600;
}

button.alcb-pattern-insert-btn {
    background: none;
    border: 1px solid #38a083;
    padding: 10px 20px;
    line-height: 1;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;

    &[disabled] {
        cursor: not-allowed;
        border-color: #e0e0e0;
        color: #e0e0e0;
    }

    &:hover:not([disabled]) {
        background: #319282;
        color: #fff;
    }
}

.alcb-patterns-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

p.alcb-patterns-count {
    margin: 0 !important;
    font-size: 15px;
    font-weight: 500;
}

button.alcb-patterns-refresh-btn {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border: 1px solid #eee;
    padding: 8px 16px;
    border-radius: 5px;
    gap: 5px;
    cursor: pointer;
    transition: 0.3s;

    &:hover {
        background: #eee;
    }
}

.alcb-patterns-loading,
.alcb-patterns-error {
    text-align: center;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

// Placeholder styles
.alcb__use-pattern-btn {
    background: #38a083;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 10px;
    &:hover {
        background: #2d8069;
    }
}

.alcb__skip-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    &:hover {
        background: #e0e0e0;
    }
}

.alcb-patterns-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-bottom: 30px;
}

.alcb-patterns-load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #38a083;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;

    &:hover:not([disabled]) {
        background: #2d8069;
    }

    &[disabled] {
        opacity: 0.7;
        cursor: not-allowed;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .alcb_patterns_grid {
        column-count: 3;
    }
}

// tablet and mobile view for pattern modal
@media (min-width: 769px) and (max-width: 1024px) {
    .alcb_patterns_grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .alcb_patterns_grid {
        column-count: 1;
    }
}
