:root {
    --pegaconsent-bg: #ffffff;
    --pegaconsent-text: #333333;
    --pegaconsent-primary: #0073aa;
    --pegaconsent-secondary: #f1f1f1;
}

/* Base Wrapper */
.pegaconsent-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: sans-serif;
    background-color: var(--pegaconsent-bg);
    color: var(--pegaconsent-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.pegaconsent-wrapper.show {
    opacity: 1;
    visibility: visible;
}

/* --- Layout: Banner (Default) --- */
.pegaconsent-layout-banner-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #ddd;
    padding: 20px;
}

.pegaconsent-layout-banner-bottom .pegaconsent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Title Styling for Banner */
.pegaconsent-layout-banner-bottom .pegaconsent-title {
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    text-align: left;
}

/* --- Layout: Popup (Box) --- */
.pegaconsent-popup {
    width: 90%;
    max-width: 400px;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pegaconsent-popup .pegaconsent-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Title Styling for Popup */
.pegaconsent-popup .pegaconsent-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    display: block;
}

.pegaconsent-popup .pegaconsent-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.pegaconsent-popup .pegaconsent-actions .pegaconsent-btn {
    width: 100%;
    text-align: center;
}

/* Popup Positions */
.pegaconsent-layout-popup-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pegaconsent-layout-popup-bottom-left {
    bottom: 20px;
    left: 20px;
}

.pegaconsent-layout-popup-bottom-right {
    bottom: 20px;
    right: 20px;
}

.pegaconsent-layout-popup-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Common Text Styles */
.pegaconsent-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.pegaconsent-content a {
    color: var(--pegaconsent-primary);
    text-decoration: underline;
}

/* Buttons */
.pegaconsent-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.pegaconsent-btn:hover {
    opacity: 0.9;
}

.pegaconsent-btn-primary {
    background-color: var(--pegaconsent-primary);
    color: #fff;
}

.pegaconsent-btn-secondary {
    background-color: var(--pegaconsent-secondary);
    color: #333;
}

/* Modal Settings */
.pegaconsent-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.pegaconsent-modal-content {
    background-color: #fefefe;
    margin: 20px;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pegaconsent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.pegaconsent-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.pegaconsent-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.pegaconsent-close:hover {
    color: black;
}

.pegaconsent-option {
    margin-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 10px;
}

.pegaconsent-option:last-child {
    border-bottom: none;
}

.pegaconsent-option label {
    font-weight: bold;
    margin-left: 5px;
    font-size: 16px;
    cursor: pointer;
}

.pegaconsent-option p.small {
    margin: 5px 0 0 25px;
    font-size: 12px;
    color: #666;
}

.pegaconsent-modal-footer {
    text-align: right;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}