.amgdprcookie-cookie-container {
    margin: 0 10px 20px 0;
    padding: 0 0 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.amgdprcookie-cookie-container.-modal:first-child {
    padding-top: 25px;
}

.amgdprcookie-cookie-container.-modal .amgdprcookie-header,
.amgdprcookie-cookie-container.-modal .amgdprcookie-text {
    padding-left: 25px;
}

.amgdprcookie-cookie-container.-modal {
    box-shadow: none;
    direction: ltr;
    margin-right: 30px;
}

.amgdprcookie-cookie-container .amgdprcookie-header {
    display: flex;
    justify-content: space-between;
}

.amgdprcookie-cookie-container .amgdprcookie-caption {
    font-size: 16px;
    font-weight: bold;
    line-height: 27px;
    margin: 0 0 15px;
    color: #999;
}

.amgdprcookie-cookie-container .amgdprcookie-text {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    display: none;
}

.amgdprcookie-cookie-container .amgdprcookie-options {
    color: #1c752c;
    cursor: pointer;
    font-size: 12px;
    display:none;
}

.amgdprcookie-cookie-container .amgdprcookie-caption, .amgdprcookie-cookie-container .amgdprcookie-toggle-cookie {
    flex-grow: 1;
}

.cookie-info-btn {
    margin-left: 10px;
    min-width: 50px;
    text-align: center;
    cursor: pointer;
    color: #1c752c;
    height: 24px;
    line-height: 0;
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.rotate-360 {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.amgdprcookie-toggle-cookie {
    padding-left: 50px;
    position: relative;
}

.amgdprcookie-toggle-cookie .amgdprcookie-input {
    height: 0;
    opacity: 0;
    width: 0;
}

.amgdprcookie-toggle-cookie .amgdprcookie-label {
    background: #a5a5a5;
    border-radius: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    height: 19px;
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
}

.amgdprcookie-toggle-cookie .amgdprcookie-label:after {
    background: #fff;
    border-radius: 40px;
    content: '';
    height: 15px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: all .4s ease;
    width: 15px;
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:active + .amgdprcookie-label,
.amgdprcookie-toggle-cookie .amgdprcookie-input:focus + .amgdprcookie-label {
    box-shadow: 0 0 3px 1px #1c752c;
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:checked:disabled + .amgdprcookie-label {
    background: #e8e8e8;
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:checked:disabled + .amgdprcookie-label:after {
    left: 95%;
    transform: translateX(-100%);
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:checked:not([disabled]) + .amgdprcookie-label {
    background: #1c752c;
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:checked:not([disabled]) + .amgdprcookie-label:after {
    left: 95%;
    transform: translateX(-100%);
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:not([checked]) + .amgdprcookie-label {
    background: #a5a5a5;
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:disabled + .amgdprcookie-label {
    background: #e8e8e8;
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:disabled + .amgdprcookie-label:after {
    left: 2px;
}

.amgdprcookie-toggle-cookie .amgdprcookie-input:focus + .amgdprcookie-label {
    box-shadow: 0 0 3px 1px #1c752c;
}

.amgdprcookie-main-wrapper {
    color: #363636;
}

.amgdprcookie-main-wrapper .amgdprcookie-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.amgdprcookie-main-wrapper .amgdprcookie-head {
    font-size: 20px;
    line-height: 20px;
}

.amgdprcookie-main-wrapper .amgdprcookie-btn-wrapper {
    display: flex;
}

.amgdprcookie-main-wrapper .amgdprcookie-btn {
    background: #ef7c4a;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 3px 5px rgba(62, 40, 13, 0.15);
    color: #fff;
    font-size: 14px;
    padding: 7px 27px;
    text-transform: uppercase;
}

.amgdprcookie-main-wrapper .amgdprcookie-btn:first-child {
    margin: 0 15px;
}

.amgdprcookie-main-wrapper .amgdprcookie-btn:hover {
    background: #eb5a1b;
}

.amgdprcookie-main-wrapper .amgdprcookie-btn:focus,
.amgdprcookie-main-wrapper .amgdprcookie-btn:active {
    box-shadow: 0 0 3px 1px #1c752c;
}

.amgdprcookie-cookie-container .amgdprcookie-link {
    color: #2977c2;
    cursor: pointer;
    float: right;
    font-size: 12px;
    letter-spacing: .3px;
    text-transform: capitalize;
}

.amgdprjs-bar-template {
    display: block !important;
    position: sticky;
    z-index: 161803 !important;
}

.amgdprjs-bar-template .amgdprcookie-buttons-block .amgdprcookie-button {
    margin-right: 5px;
    cursor: pointer;
}

.amgdprcookie-bar-container .amgdprcookie-buttons-block button {
    border: 1px solid #1c752c;
    border-radius: .25rem;
    height: 3rem;
    font-family: Source Sans Pro, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 24px;
}

.amgdprjs-bar-template.-popup {
    left: 50%;
    margin: 0 auto;
    max-width: 740px;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 489px;
}

.amgdprjs-bar-template.-popup:before {
    background-color: #0a6c9f;
    content: '';
    height: 100%;
    width: 100%;
}

.amgdprjs-bar-template.-popup .amgdprcookie-bar-container {
    padding: 50px;
}

.amgdprjs-bar-template.-popup .amgdprcookie-bar-block {
    width: 100%;
}

.amgdprjs-bar-template .amgdprcookie-buttons-block {
    display: flex;
    justify-content: center;
}

.amgdprcookie-groups-modal .modal-inner-wrap {
    border-radius: 10px;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.06);
    max-width: 740px;
}

.amgdprcookie-groups-modal.-table .modal-inner-wrap {
    max-width: 1290px;
    min-width: 700px;
    overflow-x: auto;
}

.amgdprcookie-groups-modal .modal-title {
    border-bottom: none;
    font-size: 20px;
    font-weight: bold;
}

.amgdprcookie-groups-modal .action-close:focus {
    box-shadow: 0 0 3px 1px #1c752c;
}

.amgdprcookie-groups-modal .amgdprcookie-form {
    padding: 0 10px;
}

.amgdprcookie-groups-modal .amgdprcookie-done {
    background-color: #1c752c;
    border-radius: 3px;
    box-shadow: none;
    color: #fff;
    font-weight: bold;
    transition: background-color .3s ease-out;
    width: 100%;
    padding: 10px 30px;
    cursor: pointer;
}

.amgdprcookie-groups-modal .amgdprcookie-done:hover {
    background-color: #1c752c;
}

.amgdprcookie-groups-modal .amgdprcookie-done:focus {
    background-color: #1c752c;
    box-shadow: 0 0 3px 1px #1c752c;
}

.amgdprcookie-groups-modal:not(.-table) .modal-footer {
    padding-top: 0;
}

.amgdprcookie-groups-modal .amgdprcookie-form-container,
.amgdprcookie-groups-modal .amgdprcookie-tbody {
    overflow: auto;
    scrollbar-color: #e0e0e0 #fff;
    scrollbar-width: thin;
    scrollbar-face-color: #e0e0e0;
    scrollbar-highlight-color: #e0e0e0;
    scrollbar-shadow-color: #e0e0e0;
    scrollbar-track-color: #fff;
    display: block;
    max-height: 500px;
    overflow-y: auto;
}

.amgdprcookie-groups-modal .amgdprcookie-form-container::-webkit-scrollbar,
.amgdprcookie-groups-modal .amgdprcookie-tbody::-webkit-scrollbar {
    width: 6px;
}

.amgdprcookie-groups-modal .amgdprcookie-form-container::-webkit-scrollbar-track,
.amgdprcookie-groups-modal .amgdprcookie-tbody::-webkit-scrollbar-track {
    background-color: #fff;
    box-shadow: none;
}

.amgdprcookie-groups-modal .amgdprcookie-form-container::-webkit-scrollbar-thumb,
.amgdprcookie-groups-modal .amgdprcookie-tbody::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: #e0e0e0;
}

.amgdprcookie-bar-container {
    background: #fff;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 30px 10px;
    z-index: 10;
}

.amgdprcookie-bar-container.modal-popup {
    bottom: unset;
    left: unset;
    overflow-y: unset;
    pointer-events: auto;
    position: unset;
    right: unset;
    top: unset;
    transition: unset;
}

.amgdprcookie-bar-container .amgdprcookie-buttons-block {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.amgdprcookie-bar-container .amgdprcookie-policy {
    margin-bottom: 20px;
    max-height: none;
    max-width: 640px;
    overflow: hidden;
}

.amgdprcookie-bar-container .amgdprcookie-button:first-child {
    margin-bottom: 10px;
}

.amgdprcookie-bar-container .amgdprcookie-buttons-block .amgdprcookie-button {
    margin-bottom: 0;
    padding: 10px 30px;
}

.amgdprcookie-bar-container .action-close {
    display: none;
    line-height: 14px;
    right: 10px;
    top: 10px;
}

.amgdprcookie-bar-container .action-close:focus,
.amgdprcookie-bar-container .action-close:active {
    box-shadow: 0 0 3px 1px #1c752c;
    opacity: .9;
}

.amgdprcookie-buttons-block {
    display: flex;
    flex-direction: column;
}

.amgdprcookie-buttons-block.-settings {
    padding-bottom: 30px
}

.amgdprcookie-buttons-block .amgdprcookie-button {
    background: #fff;
    border: none;
    border-radius: 3px;
    box-shadow: none;
    color: #1c752c;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px 15px;
}

.amgdprcookie-buttons-block .amgdprcookie-button:hover {
    opacity: .9;
}

.amgdprcookie-buttons-block .amgdprcookie-button.-allow,
.amgdprcookie-buttons-block .amgdprcookie-button.-save {
    background: #1c752c;
    color: #fff;
    flex-basis: 33%;
}

.amgdprcookie-modal-template {
    background: #fff;
    margin-left: 5px;
    overflow-y: auto;
}

.amgdprcookie-modal-template .action-close {
    background: #fff;
    line-height: 14px;
    margin: 0;
    padding: 8px;
    right: 0;
    top: 0;
    z-index: 1;
}

.amgdprcookie-modal-template .action-close:focus,
.amgdprcookie-modal-template .action-close:active {
    background: #fff;
    box-shadow: 0 0 3px 1px #1c752c;
    opacity: .9;
}

.amgdprcookie-modal-template .action-close:hover {
    background: #fff
}

.amgdprcookie-modal-template .amgdprcookie-button.-allow:not(.-save) {
    background: inherit;
    color: #1c752c;
    margin-bottom: 0;
}

.amgdprcookie-modal-container .modal-content {
    padding: 0;
}

.amgdprcookie-groups-container {
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.06);
    direction: rtl;
    height: auto;
    overflow-y: scroll;
}

.amgdprcookie-policy-container {
    bottom: 0;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.06);
    padding: 24px;
    position: absolute;
}

.amgdprcookie-text-container .amgdprcookie-policy {
    display: inline;
}

.amgdprjs-bar-template .-popup .amgdprcookie-policy h2, .modals-wrapper .amgdprcookie-cookie-settings-modal .modal-header h2 {
    font-size: 2.25rem;
    color: #1c752c;
    margin-bottom: 2.1875rem;
    font-family: Kreon, serif;
    font-weight: 700;
    padding: 0;
}

.amgdprcookie-modal-container.modal-popup.modal-slide {
    left: 0;
    pointer-events: none;
}

.amgdprcookie-modal-container .modal-inner-wrap {
    height: 100%;
    margin: 0;
    position: relative;
}

.amgdprcookie-modal-container .modal-inner-wrap .modal-header {
    position: absolute;
    right: 0;
}

.amgdprcookie-modal-container .modal-inner-wrap .action-close {
    margin: 5px;
    padding: 0;
}

.amgdprcookie-modal-container .modal-inner-wrap .action-close:before {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iOC41IiBjeT0iOC41IiByPSI4IiBzdHJva2U9IiNDQUNBQ0EiLz48cGF0aCBkPSJNNS4yNSA1LjI1bDYuNSA2LjVtMC02LjVsLTYuNSA2LjUiIHN0cm9rZT0iI0NBQ0FDQSIvPjwvc3ZnPg==') no-repeat center;
    content: '';
    height: 25px;
    width: 25px;
}

.amgdprcookie-modal-container .modal-inner-wrap .action-close:focus {
    box-shadow: 0 0 3px 1px #1c752c;
}

.amgdprcookie-modal-container .modal-inner-wrap .amgdprcookie-groups-container {
    overflow: auto;
    scrollbar-color: #e8e8e8 #fff;
    scrollbar-width: thin;
    scrollbar-face-color: #e8e8e8;
    scrollbar-highlight-color: #e8e8e8;
    scrollbar-shadow-color: #e8e8e8;
    scrollbar-track-color: #fff;
}

.amgdprcookie-modal-container .modal-inner-wrap .amgdprcookie-groups-container::-webkit-scrollbar {
    width: 4px;
}

.amgdprcookie-modal-container .modal-inner-wrap .amgdprcookie-groups-container::-webkit-scrollbar-track {
    background-color: #fff;
    box-shadow: none;
}

.amgdprcookie-modal-container .modal-inner-wrap .amgdprcookie-groups-container::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: #e8e8e8;
}

.amgdprcookie-settings-form .amgdprcookie-toggle-cookie .amgdprcookie-input.disabled + .amgdprcookie-label {
    background: #e8e8e8;
}

.amgdprcookie-groups-modal .amgdprcookie-table .amgdprcookie-row,
.amgdprcookie-groups-modal .amgdprcookie-table thead tr,
.amgdprcookie-groups-modal .amgdprcookie-table thead {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.amgdprcookie-groups-modal .amgdprcookie-cell.-name {
    word-wrap: break-word;
}

.amgdprcookie-modal-container .amgdprcookie-modal-template {
    height: 100%;
    margin-left: 0;
    min-width: 400px;
    pointer-events: auto;
    position: relative;
    width: 20%;
    z-index: 900;
}

.ammodals-overlay {
    background-color: rgba(51, 51, 51, 0.55);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1500;
}

.amgdprcookie-cookie-settings-modal {
    display: none;
    left: 50%;
    margin: 0 auto;
    max-width: 740px;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 300000 !important;
    min-width: 489px;
}

.amgdprcookie-cookie-settings-modal .modal-header {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 20px;
    color: #999;
    border: 0;
}

.amgdprcookie-cookie-settings-modal .modal-header button {
    display: none;
}

.amgdprcookie-cookie-settings-modal .modal-inner-wrap {
    padding: 50px;
    background: #fff;
}

.close-cookie-settings {
    position: absolute;
    right: 15px;
    top: 5px;
    cursor: pointer;
    font-size: 2rem;
    color: #999;
}

.modal-popup.amgdprcookie-bar-container.-popup {
    border-radius: 10px;
}

.modal-content {
    border: 0 !important;
}

.amgdprcookie-buttons-block button {
    width: 33%;
}

.amgdprcookie-button:focus, .amgdprcookie-done:focus {
    outline: none;
    box-shadow: none !important;
}

/* Hack to avoid the essential cookies switch to be highlighted once the save button si pressed */
.amgdprcookie-cookie-container:first-child .amgdprcookie-toggle-cookie .amgdprcookie-input:checked:not([disabled]) + .amgdprcookie-label {
    background: #e8e8e8;
}

._show {
    display: block;
}

@media only screen and (max-width: 768px) {

    .amgdprjs-bar-template.-popup {
        top: 75px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        transform: none;
        min-width: 100%;
    }

    .amgdprcookie-bar-container .amgdprcookie-policy {
        margin-bottom: 0;
    }

    .amgdprcookie-bar-container .amgdprcookie-policy > div {
        overflow-y: auto;
        max-height: 320px;
        font-size: 15px;
    }

    .amgdprcookie-cookie-settings-modal {
        border-radius: 20px;
        padding: 20px;
    }

    .modals-wrapper .amgdprcookie-cookie-settings-modal .modal-header h2 {
        font-size: 2rem;
    }

    .amgdprjs-bar-template .-popup .amgdprcookie-policy h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .close-cookie-settings {
        right: 50px;
        top: 35px;
    }

    .amgdprcookie-groups-modal.-table .modal-inner-wrap {
        min-width: 95%;
    }

    .amgdprcookie-groups-modal .amgdprcookie-table {
        font-size: 1rem;
    }

    .modal-popup .modal-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .amgdprcookie-bar-container .action-close {
        padding: 10px;
        right: 0;
        top: 0;
    }

    .amgdprjs-bar-template.-popup .amgdprcookie-bar-container {
        padding: 33px;
    }

    .amgdprcookie-modal-container .amgdprcookie-modal-template {
        min-width: unset;
        width: unset;
    }
}

@media only screen and (max-width: 1222px) {
    .amgdprcookie-bar-container .amgdprcookie-buttons-block {
        flex-direction: column;
    }

    .amgdprcookie-buttons-block button {
        width: 100%;
    }
}
