.ans-cc-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.35);
}

.ans-cc-hidden {
    display: none !important;
}

.ans-cc-box {
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    overflow: auto;
}

.ans-cc-inner {
    padding: 24px;
}

.ans-cc-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ans-cc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ans-cc-logo img {
    max-height: 40px;
    width: auto;
}

.ans-cc-heading {
    margin: 0;
}

.ans-cc-description {
    font-size: 14px;
    margin-bottom: 16px;
}

.ans-cc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ans-cc-btn {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
}

.ans-cc-deny,
.ans-cc-prefs {
    background: transparent;
}

.ans-cc-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.ans-cc-footer a {
    text-decoration: underline;
}

/* Tryb inline – widget zachowuje się jak element w treści, przyklejony do miejsca w szablonie */
.ans-cc-overlay.ans-cc-inline {
    position: relative;
    inset: auto;
    background: transparent;
    display: block;
}

.ans-cc-overlay.ans-cc-inline .ans-cc-box {
    max-width: 100%;
    width: 100%;
    max-height: none;
    overflow: visible;
}
