/*
|--------------------------------------------------------------------------
| Overlay
|--------------------------------------------------------------------------
*/
#ac-customiser-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

/*
|--------------------------------------------------------------------------
| Modal container
|--------------------------------------------------------------------------
*/
#ac-customiser-modal {
    background: #ffffff;
    width: 1200px;
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
}

/*
|--------------------------------------------------------------------------
| Full screen mode
|--------------------------------------------------------------------------
*/
#ac-customiser-modal.ac-fullscreen {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/
#ac-customiser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e2e2e2;
}

#ac-customiser-header h2 {
    margin: 0;
    font-size: 17px;
}

/*
|--------------------------------------------------------------------------
| Close and fullscreen buttons
|--------------------------------------------------------------------------
*/
.ac-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

#ac-close-customiser {
    font-size: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
}

#ac-toggle-fullscreen {
    padding: 6px 9px;
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Body layout
|--------------------------------------------------------------------------
*/
#ac-customiser-body {
    flex: 1 1 auto;
    display: flex;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| Canvas wrapper
|--------------------------------------------------------------------------
*/
#ac-canvas-wrapper {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ac-canvas {
    border: 1px solid #ccc;
    max-width: 100%;
    height: auto;
    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Tools panel
|--------------------------------------------------------------------------
*/
#ac-tools {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#ac-tools label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: -6px;
}

#ac-tools .button {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Font controls
|--------------------------------------------------------------------------
*/
#ac-font-family,
#ac-font-size,
#ac-font-weight {
    width: 100%;
    padding: 6px;
    font-size: 13px;
    line-height: 1.2;
}

#ac-font-colour {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/
#ac-customiser-footer {
    padding: 12px 16px;
    background: #f5f5f5;
    border-top: 1px solid #e2e2e2;
    display: flex;
    justify-content: flex-end;
}

#ac-save-design {
    padding: 10px 16px;
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| Responsive for small screens
|--------------------------------------------------------------------------
*/
@media (max-width: 900px) {
    #ac-customiser-body {
        flex-direction: column;
        overflow-y: auto;
    }

    #ac-tools {
        flex: 0 0 auto;
        width: 100%;
    }

    #ac-canvas-wrapper {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Admin order columns
|--------------------------------------------------------------------------
*/
th.ac-order-col,
td.ac-order-col {
    text-align: center;
    vertical-align: middle;
}

/*
|--------------------------------------------------------------------------
| Minor UI polish
|--------------------------------------------------------------------------
*/
.ac-small-button {
    font-size: 11px;
    padding: 4px 8px;
}

#ac-tools input,
#ac-tools select {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #ffffff;
}