/**
 * Editor styles for ouRSVP Gutenberg block
 */

.oursvp-block-preview {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Add subtle animation to preview */
.oursvp-block-preview {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.oursvp-block-preview:hover {
    border-color: #a0aec0 !important;
    background-color: #edf2f7 !important;
}

/* Error message styling */
.oursvp-error {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container styling for frontend */
.oursvp-container {
    position: relative;
}

/* Loading state (optional) */
.oursvp-container::before {
    content: '';
    display: block;
    padding-top: 100%;
    min-height: 400px;
}

/* Tight control spacing for color pickers */
.oursvp-tight-control.components-base-control {
    margin-bottom: 8px !important;
}

.oursvp-tight-control .components-base-control__field {
    margin-bottom: 0 !important;
}

.oursvp-tight-control .components-base-control__label {
    font-size: 11px !important;
}

/* Remove ALL spacing from color palette */
.oursvp-tight-control .components-color-palette {
    margin: 0 !important;
    gap: 6px !important;
}

.oursvp-tight-control .components-circular-option-picker__swatches {
    margin: 0 !important;
    gap: 6px !important;
}

.oursvp-tight-control .components-color-palette__custom-color {
    margin: 0 !important;
}

.oursvp-tight-control .components-color-palette__custom-color-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

/* Target the clear button wrapper specifically - reduce gap to 6px */
.oursvp-tight-control .components-circular-option-picker__custom-clear-wrapper {
    margin-top: 0px !important;
    margin-bottom: 4px !important;
}

/* Make clear button close to color picker and smaller */
.oursvp-tight-control .components-color-palette .components-button {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
}

.oursvp-tight-control .components-circular-option-picker__clear {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Override the is-next-40px-default-size class */
.oursvp-tight-control .components-button.is-next-40px-default-size {
    min-height: 30px !important;
    height: 30px !important;
}
