.appex-consent-banner {
    transition: transform 0.2s ease-in-out;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 30px 40px 20px 40px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    display: none;
}

.appex-consent-banner p {
    font-size: 14px;
    margin-top: 0;
    line-height: 1.2;
}

.appex-consent-banner a {
    text-decoration: underline;
}

.appex-consent-banner .appex-consent-banner__body {
    max-width: 2000px;
    display: flex;
    column-gap: 40px;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.appex-consent-banner .appex-consent-banner__details h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 20px;
}

.appex-consent-banner .appex-consent-banner__buttons {
    /* flex-basis: 20%; */
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;

}

.appex-consent-banner .appex-consent-banner__footer {
    display: flex;
    justify-content: center;
    width: 100%;
}

.appex-consent-banner .appex-consent-banner__footer p {
    margin-bottom: 0;
}

.appex-consent-banner .appex-consent-banner__footer a {
    text-decoration: underline;
}

/* Buttons */
.appex-consent-banner .appex-consent-banner__buttons button {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.appex-consent-banner .appex-consent-banner__buttons .button-decline {
    background-color: transparent;
    color: black;
}

.appex-consent-banner .appex-consent-banner__buttons .button-decline:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.appex-consent-banner .appex-consent-banner__close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #000;
    width: 24px;
    height: 24px;
}

/* Banner show and hide */
.appex-consent-banner.appex-consent-banner__bottom {
    transform: translateY(100%);
}

.appex-consent-banner.active {
    transform: translateY(0);
}

/* Reopen consent button - fixed bottom left */
/* Min 44px touch target for WCAG 2.5.5 (Level AAA) */
.appex-consent-reopen {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 9998;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.appex-consent-reopen__icon {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--icon-color);
    mask: var(--icon-url);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 24px 24px;
}

.appex-consent-reopen:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.08);
}

.appex-consent-reopen.visible {
    opacity: 1;
    visibility: visible;
}

/* WCAG 2.3.3: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .appex-consent-reopen,
    .appex-consent-reopen:hover {
        transition: opacity 0.2s ease, visibility 0.2s ease;
        transform: none;
    }
}

/* Media queries */
@media (max-width: 768px) {
    .appex-consent-banner .appex-consent-banner__body {
        flex-direction: column;
    }

    .appex-consent-banner .appex-consent-banner__footer {
        padding-top: 10px;
        justify-content: center;
    }

    .appex-consent-banner .appex-consent-banner__buttons {
        justify-content: center;
    }
}