.cpx-downloads,
.cpx-downloads__modal {
    --cpx-background-color: #fff;
    --cpx-text-color: #202020;
    --cpx-border-color: #d7d7d7;
    --cpx-muted-color: #666;
    --cpx-error-color: #b42318;
    --cpx-gap: 20px;
    --cpx-text-font-family: var(--e-global-typography-text-font-family, Sans-serif);
    color: var(--cpx-text-color);
    font-family: var(--cpx-text-font-family);
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    font-style: var(--e-global-typography-text-font-style);
    line-height: var(--e-global-typography-text-line-height);
    letter-spacing: var(--e-global-typography-text-letter-spacing);
    text-transform: var(--e-global-typography-text-text-transform);
}

.cpx-downloads *,
.cpx-downloads__modal * {
    box-sizing: border-box;
}

.cpx-downloads__category + .cpx-downloads__category {
    margin-top: 32px;
}

.cpx-downloads h2.cpx-downloads__category__title {
    margin: 0;
    color: var(--cpx-text-color);
    font-family: var(--cpx-text-font-family);
    font-size: 22px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
}

.cpx-downloads__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--cpx-gap);
    align-items: start;
    padding: var(--cpx-gap) 0;
    border-bottom: 1px solid var(--cpx-border-color);
}

.cpx-downloads__item__action {
    grid-column: 2;
    justify-self: end;
}

.cpx-downloads__item__details {
    min-width: 0;
    grid-column: 1;
}

.cpx-downloads__item__title {
    display: flex;
    justify-content: space-between;
    gap: var(--cpx-gap);
    align-items: center;
    margin-top: 14px;
    cursor: pointer;
    list-style: none;
    color: var(--cpx-text-color);
    font-family: var(--cpx-text-font-family);
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
}

.cpx-downloads__item__title::-webkit-details-marker {
    display: none;
}

.cpx-downloads__item__title--static {
    cursor: default;
}

.cpx-downloads__item__title:focus-visible,
.cpx-downloads__button:focus-visible,
.cpx-downloads__modal__close:focus-visible {
    outline: 3px solid var(--e-global-color-primary, #27629b);
    outline-offset: 3px;
}

.cpx-downloads__item__icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.cpx-downloads__item__icon::before,
.cpx-downloads__item__icon::after {
    position: absolute;
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
    background-color: currentColor;
    content: '';
}

.cpx-downloads__item__icon::after {
    transform: rotate(90deg);
    transition: transform .2s;
}

.cpx-downloads__item__details[open] .cpx-downloads__item__icon::after {
    transform: rotate(0);
}

.cpx-downloads__item__description {
    padding-top: 12px;
}

.cpx-downloads__item__description > :last-child {
    margin-bottom: 0;
}

.cpx-downloads__item__description a,
.elementor .cpx-downloads__item__description a {
    color: var(--e-global-color-primary, #27629b);
    text-decoration: underline;
}

.cpx-downloads__button,
.elementor .cpx-downloads__button,
.elementor-widget-shortcode .cpx-downloads__button {
    display: inline-block;
    padding: 20px 34px;
    border: 0;
    border-radius: 0;
    background-color: var(--e-global-color-primary, #27629b);
    box-shadow: none;
    color: var(--e-global-color-accent, #fff);
    fill: var(--e-global-color-accent, #fff);
    font-family: var(--e-global-typography-cf081cb-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-cf081cb-font-weight);
    font-style: var(--e-global-typography-accent-font-style);
    line-height: var(--e-global-typography-accent-line-height);
    letter-spacing: var(--e-global-typography-accent-letter-spacing);
    text-align: center;
    text-decoration: none;
    text-transform: var(--e-global-typography-accent-text-transform);
    cursor: pointer;
    transition: all .3s;
}

.cpx-downloads__button:hover,
.cpx-downloads__button:focus,
.elementor .cpx-downloads__button:hover,
.elementor .cpx-downloads__button:focus {
    background-color: var(--e-global-color-secondary, #17466e);
    color: var(--e-global-color-accent, #fff);
    text-decoration: none;
}

.cpx-downloads__button:disabled {
    opacity: .65;
    cursor: wait;
}

.cpx-downloads__modal[hidden],
.cpx-downloads__modal__dialog [hidden] {
    display: none !important;
}

.cpx-downloads--modal-open {
    overflow: hidden;
}

.cpx-downloads__modal {
    position: fixed;
    z-index: 999999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cpx-downloads__modal__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
}

.cpx-downloads__modal__dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px;
    background-color: var(--cpx-background-color);
    box-shadow: 0 16px 60px rgba(0, 0, 0, .2);
}

.cpx-downloads__modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    color: var(--cpx-text-color);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

#cpx-downloads-modal .cpx-downloads__modal__title {
    margin: 0 30px 12px 0;
    color: var(--cpx-text-color);
    font-family: var(--cpx-text-font-family);
    font-size: 26px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
}

.cpx-downloads__modal__intro {
    margin: 0 0 22px;
}

.cpx-downloads__form__row {
    margin-bottom: 16px;
}

.cpx-downloads__form__row label {
    display: block;
    margin-bottom: 6px;
    line-height: 1.45;
}

.cpx-downloads__form__row input,
.elementor .cpx-downloads__form__row input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--cpx-border-color);
    border-radius: 0;
    background-color: var(--cpx-background-color);
    color: var(--cpx-text-color);
    font: inherit;
}

.cpx-downloads__form__consent {
    margin: 20px 0;
}

.cpx-downloads__form__consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.cpx-downloads__form__consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 18px;
}

.cpx-downloads__form__message {
    min-height: 1.4em;
    margin: 0 0 12px;
    color: var(--cpx-muted-color);
}

.cpx-downloads__form__message--error {
    color: var(--cpx-error-color);
}

.cpx-downloads__form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .cpx-downloads__item {
        grid-template-columns: minmax(0, 1fr);
    }

    .cpx-downloads__item__action,
    .cpx-downloads__item__details {
        grid-column: 1;
    }

    .cpx-downloads__item__action {
        justify-self: end;
    }

    .cpx-downloads__modal__dialog {
        padding: 28px 20px;
    }
}
