/* =========================================================================
   Henkst Cookie Popup — hcp-style.css v1.0
   Matches the henkst-header popup aesthetic.
   ========================================================================= */

/* ── Overlay ────────────────────────────────────────────────────────────── */
.hcp-overlay {
    position:        fixed;
    inset:           0;
    background:      rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index:         99999;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         20px;
    box-sizing:      border-box;
    opacity:         0;
    pointer-events:  none;
    transition:      opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hcp-overlay.hcp-open {
    opacity:        1;
    pointer-events: auto;
}

/* ── Popup box ──────────────────────────────────────────────────────────── */
.hcp-popup {
    position:       relative;
    width:          100%;
    max-width:      540px;
    max-height:     88vh;
    background:     var(--hcp-bg, #ffffff);
    border-radius:  8px;
    box-shadow:     0 24px 64px rgba(0, 0, 0, 0.28);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    transform:      translateY(24px);
    transition:     transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hcp-overlay.hcp-open .hcp-popup {
    transform: translateY(0);
}

/* ── Close button ───────────────────────────────────────────────────────── */
.hcp-close {
    position:        absolute;
    top:             12px;
    right:           14px;
    width:           34px;
    height:          34px;
    background:      rgba(0, 0, 0, 0.06);
    border:          none;
    border-radius:   50%;
    color:           #444;
    font-size:       20px;
    line-height:     1;
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition:      background 180ms;
    z-index:         2;
}

.hcp-close:hover { background: rgba(0, 0, 0, 0.12); }

/* ── Image ──────────────────────────────────────────────────────────────── */
.hcp-image {
    flex-shrink: 0;
    max-height:  260px;
    overflow:    hidden;
}

.hcp-image img {
    width:      100%;
    height:     260px;
    object-fit: cover;
    display:    block;
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.hcp-body {
    padding:     36px 40px 32px;
    overflow-y:  auto;
    flex:        1;
}

.hcp-title {
    font-size:   1.35rem;
    font-weight: 700;
    margin:      0 0 14px;
    line-height: 1.2;
    color:       #111;
    padding-right: 32px; /* clear the close button */
}

.hcp-text {
    font-size:   0.92rem;
    line-height: 1.7;
    color:       #444;
    margin-bottom: 24px;
}

.hcp-text p       { margin: 0 0 0.8em; }
.hcp-text p:last-child { margin-bottom: 0; }
.hcp-text a       { color: var(--hcp-accent, #111); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.hcp-buttons {
    display:    flex;
    gap:        10px;
    flex-wrap:  wrap;
}

.hcp-btn {
    padding:       10px 24px;
    border-radius: 4px;
    font-size:     0.88rem;
    font-weight:   600;
    cursor:        pointer;
    border:        none;
    transition:    opacity 180ms, transform 180ms;
    letter-spacing: 0.02em;
}

.hcp-btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.hcp-btn:active { transform: translateY(0); }

.hcp-btn-accept {
    background: var(--hcp-accent, #111111);
    color:      #fff;
}

.hcp-btn-decline {
    background: transparent;
    color:      #666;
    border:     1px solid #ddd;
}

.hcp-btn-decline:hover { background: #f5f5f5; opacity: 1; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .hcp-body    { padding: 28px 24px 24px; }
    .hcp-image img { height: 180px; }
    .hcp-buttons { flex-direction: column; }
    .hcp-btn     { width: 100%; text-align: center; }
}
