/* CD Cookie Consent Pro - front-end styles
 *
 * Placeholders for held-back embeds. The buttons reuse the free plugin's .cd-cc-button styles,
 * and the colours come from its CSS variables.
 */
.cd-ccp-embed {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 12rem;
    margin: 0 0 1.5em;
    padding: 1.5rem;
    border: 1px solid var(--cd-cc-border, #c3c4c7);
    border-radius: var(--cd-cc-radius, 6px);
    background: var(--cd-cc-bg, #ffffff);
    color: var(--cd-cc-text, #1d2327);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* The iframe waits inside the placeholder, with no src, until it's loaded */
.cd-ccp-embed iframe {
    display: none !important;
}

.cd-ccp-embed__notice {
    max-width: 32rem;
}

.cd-ccp-embed__notice p {
    margin: 0 0 0.75em;
}

.cd-ccp-embed__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 !important;
}

.cd-ccp-embed .cd-cc-button {
    flex: 0 1 auto;
}

/* Inside a WordPress embed block that keeps a fixed shape, fill the space the iframe would have */
.wp-has-aspect-ratio .cd-ccp-embed {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 0;
    max-width: none !important; /* Beats the inline size, as the block sets the shape here */
    margin: 0;
    padding: 0.75rem;
    overflow: auto;
    aspect-ratio: auto !important;
}
