#cookieman-modal {
    padding-right: 0 !important;
}

#cookieman-modal .cookieman-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
}

#cookieman-modal .modal-content {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

#cookieman-modal .modal-body {
    width: 100%;
    padding: 0;
}

#cookieman-modal .cookieman-bar,
#cookieman-modal .cookieman-settings {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

#cookieman-modal .cookieman-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: #f6f5f4;
    border-top: 4px solid #6a5b54;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

#cookieman-modal .cookieman-copy {
    flex: 1 1 auto;
    min-width: 0;
}

#cookieman-modal .cookieman-title {
    color: #6a5b54;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#cookieman-modal .cookieman-text,
#cookieman-modal .cookieman-settings-text,
#cookieman-modal .cookieman-group-description {
    margin: 0;
    color: #3f342f;
    line-height: 1.6;
}

#cookieman-modal .cookieman-text a,
#cookieman-modal .cookieman-settings-text a,
#cookieman-modal .cookieman-group-description a {
    color: #db001b;
    text-decoration: underline;
}

#cookieman-modal .cookieman-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

#cookieman-modal .cookieman-btn-secondary,
#cookieman-modal .cookieman-btn-save,
#cookieman-modal .cookieman-btn-primary,
#cookieman-modal .cookieman-toggle,
.cookieman-reopen {
    border-radius: 0;
}

#cookieman-modal .cookieman-btn-secondary {
    border-color: #6a5b54;
    color: #6a5b54;
    background: #fff;
}

#cookieman-modal .cookieman-btn-secondary:hover,
#cookieman-modal .cookieman-btn-secondary:focus {
    background: #eeebea;
    color: #3f342f;
    border-color: #6a5b54;
}

#cookieman-modal .cookieman-btn-save {
    border-color: #db001b;
    color: #db001b;
    background: #fff;
}

#cookieman-modal .cookieman-btn-primary {
    border-color: #6a5b54;
    background: #6a5b54;
    color: #fff;
}

#cookieman-modal .cookieman-btn-primary:hover,
#cookieman-modal .cookieman-btn-primary:focus {
    border-color: #4f433e;
    background: #4f433e;
}

#cookieman-modal .cookieman-toggle,
#cookieman-modal .cookieman-group-toggle,
.cookieman-reopen {
    color: #db001b;
    text-decoration: underline;
    box-shadow: none !important;
}

#cookieman-modal .cookieman-toggle {
    color: #fff;
    background: #6a5b54;
    text-decoration: none;
}

#cookieman-modal .cookieman-toggle:hover,
#cookieman-modal .cookieman-toggle:focus,
#cookieman-modal .cookieman-group-toggle:hover,
#cookieman-modal .cookieman-group-toggle:focus,
.cookieman-reopen:hover,
.cookieman-reopen:focus {
    color: #a50015;
}

#cookieman-modal .cookieman-toggle:hover,
#cookieman-modal .cookieman-toggle:focus {
    color: #fff;
    background: #4f433e;
}

#cookieman-modal .cookieman-settings {
    background: #fff;
    padding: 20px 24px 24px;
    border-top: 1px solid #d8d2cf;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

#cookieman-modal .cookieman-settings-text {
    margin-bottom: 16px;
}

#cookieman-modal .cookieman-card {
    border: 1px solid #d8d2cf;
    border-radius: 0;
    margin-bottom: 12px;
}

#cookieman-modal .cookieman-card .card-header {
    padding: 0;
    background: #eeebea;
    border-bottom: 1px solid #d8d2cf;
}

#cookieman-modal .cookieman-group-toggle {
    display: block;
    width: 100%;
    padding: 14px 48px 14px 16px;
    position: relative;
    text-align: left;
    color: #6a5b54;
    font-weight: 700;
    text-decoration: none;
}

#cookieman-modal .cookieman-group-toggle:after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 16px;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
    color: #6a5b54;
}

#cookieman-modal .cookieman-group-toggle.collapsed:after {
    transform: translateY(-50%) rotate(0deg);
}

#cookieman-modal .cookieman-alert {
    background: #f6f5f4;
    border: 1px solid #d8d2cf;
    color: #3f342f;
}

#cookieman-modal .cookieman-settings-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

#cookieman-modal .table {
    font-size: 0.875rem;
}

#cookieman-modal .table thead th {
    border-top: 0;
    color: #6a5b54;
}

.cookieman-reopen {
    display: inline-block;
    padding: 0;
    margin: 0 0 0 8px;
    border: 0;
    background: transparent;
    font-size: inherit;
    vertical-align: baseline;
}

@media (max-width: 991px) {
    #cookieman-modal .cookieman-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    #cookieman-modal .cookieman-actions,
    #cookieman-modal .cookieman-settings-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    #cookieman-modal .cookieman-bar,
    #cookieman-modal .cookieman-settings {
        padding: 16px;
    }

    #cookieman-modal .cookieman-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #cookieman-modal .cookieman-actions .btn,
    #cookieman-modal .cookieman-settings-actions .btn {
        width: 100%;
    }

    .cookieman-reopen {
        display: block;
        margin: 8px 0 0;
    }
}
