.ptx-cookie-consent,
.ptx-cookie-consent * {
    box-sizing: border-box;
}

.ptx-cookie-banner {
    position: fixed;
    z-index: 100000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px;
    color: #f7f2e7;
    border: 1px solid rgba(220, 183, 94, .45);
    border-radius: 18px;
    background: rgba(8, 9, 14, .97);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
    font: 500 14px/1.5 system-ui, sans-serif;
}

.ptx-cookie-banner strong,
.ptx-cookie-dialog-card strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 16px;
}

.ptx-cookie-banner p,
.ptx-cookie-choice p,
.ptx-cookie-analytics-note {
    margin: 0;
    color: #b9bac2;
}

.ptx-cookie-banner a {
    display: inline-block;
    margin-top: 6px;
    color: #e7c46d;
}

.ptx-cookie-actions,
.ptx-cookie-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ptx-cookie-actions button,
.ptx-cookie-dialog-actions button,
.ptx-cookie-dialog-head button,
.external-media-consent button {
    min-height: 40px;
    padding: 9px 13px;
    color: #f5f5f5;
    border: 1px solid #4a4c55;
    border-radius: 10px;
    background: #191a21;
    cursor: pointer;
    font: 700 13px/1 system-ui, sans-serif;
}

.ptx-cookie-actions button.primary,
.ptx-cookie-dialog-actions button.primary {
    color: #17130b;
    border-color: #e7c46d;
    background: #e7c46d;
}

.ptx-cookie-dialog {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, .72);
}

.ptx-cookie-dialog-card {
    width: min(100%, 600px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 22px;
    color: #f5f5f5;
    border: 1px solid rgba(220, 183, 94, .4);
    border-radius: 18px;
    background: #0d0e14;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
    font: 500 14px/1.5 system-ui, sans-serif;
}

.ptx-cookie-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ptx-cookie-dialog-head {
    margin-bottom: 14px;
}

.ptx-cookie-dialog-head span {
    color: #e7c46d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ptx-cookie-dialog-head button {
    width: 40px;
    padding: 0;
    font-size: 22px;
}

.ptx-cookie-choice {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 10px 0;
    padding: 14px;
    border: 1px solid #2d2f37;
    border-radius: 12px;
    background: #14151c;
}

.ptx-cookie-choice > div {
    min-width: 0;
}

.ptx-cookie-choice input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: #d6ad4e;
}

.ptx-cookie-always {
    flex: 0 0 auto;
    color: #e7c46d;
    font-weight: 800;
}

.ptx-cookie-analytics-note {
    padding: 6px 2px 16px;
}

.ptx-cookie-settings-button {
    position: fixed;
    z-index: 99998;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    color: #d6d7dc;
    border: 1px solid rgba(220, 183, 94, .32);
    border-radius: 999px;
    background: rgba(11, 12, 17, .92);
    cursor: pointer;
    font: 700 11px/1 system-ui, sans-serif;
}

.ptx-cookie-consent:not([hidden]) ~ .ptx-cookie-settings-button {
    display: none;
}

.external-media-consent {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 150px;
    padding: 24px;
    text-align: center;
    color: #b9bac2;
    border: 1px dashed #454752;
    border-radius: 12px;
    background: rgba(17, 18, 25, .9);
}

.external-media-consent strong {
    align-self: end;
    color: #f3f3f3;
}

.external-media-consent button {
    align-self: start;
}

[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .ptx-cookie-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .ptx-cookie-actions,
    .ptx-cookie-dialog-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ptx-cookie-actions button,
    .ptx-cookie-dialog-actions button {
        width: 100%;
    }

    .ptx-cookie-dialog {
        padding: 10px;
    }

    .ptx-cookie-dialog-card {
        max-height: calc(100dvh - 20px);
        padding: 18px 18px 0;
    }

    .ptx-cookie-choice {
        align-items: flex-start;
        gap: 12px;
    }

    .ptx-cookie-choice input,
    .ptx-cookie-always {
        margin-top: 2px;
    }

    .ptx-cookie-dialog-actions {
        position: sticky;
        bottom: 0;
        margin: 0 -18px;
        padding: 12px 18px 18px;
        border-top: 1px solid #2d2f37;
        background: #0d0e14;
    }
}
