/**
 * Gradient Border
 *
 * Werkt via een ::before pseudo-element omdat border-image
 * niet compatibel is met border-radius.
 *
 * Pas de CSS variabelen aan naar wens:
 * --gradient-border-radius  → ronding van de hoeken
 * --gradient-border-width   → dikte van de border
 * --gradient-border-colors  → de gradient kleuren
 * --gradient-border-angle   → richting van de gradient
 */

.has-gradient-border {
    --gradient-border-radius: 16px;
    --gradient-border-width:  3px;
    --gradient-border-colors: #CED5E0, transparent;
    --gradient-border-angle:  135deg;
    --gradient-border-bg:     #ffffff;

    position:                 relative;
    border-radius:            var(--gradient-border-radius) !important;
}

@media only screen and (min-width: 1025px) {
    html body main .has-gradient-border.has-gradient-border--desktop::before {
        content:       '' !important;
        position:      absolute;
        inset:         calc(var(--gradient-border-width) * -1);
        border-radius: 16px;
        /*background:    linear-gradient(var(--gradient-border-angle), var(--gradient-border-colors));*/
        background:    linear-gradient(150deg, rgba(206, 213, 224, 1) 0%, rgba(237, 221, 83, 0) 40%);
        z-index:       -1;
        top:           0;
        left:          0;
    }

    .has-gradient-border.has-gradient-border--desktop::after {
        content:       '' !important;
        position:      absolute;
        width:         calc(100% - 2px);
        height:        calc(100% - 2px);
        top:           1px;
        left:          1px;
        /*inset:         calc(var(--gradient-border-width) * -1);*/
        border-radius: 15px;
        background:    #fff;
        z-index:       -1;
    }
}

@media only screen and (min-width: 480px) and (max-width: 1024px) {
    html body main .has-gradient-border.has-gradient-border--tablet::before {
        content:       '' !important;
        position:      absolute;
        inset:         calc(var(--gradient-border-width) * -1);
        border-radius: 16px;
        /*background:    linear-gradient(var(--gradient-border-angle), var(--gradient-border-colors));*/
        background:    linear-gradient(150deg, rgba(206, 213, 224, 1) 0%, rgba(237, 221, 83, 0) 40%);
        z-index:       -1;
        top:           0;
        left:          0;
    }

    .has-gradient-border.has-gradient-border--tablet::after {
        content:       '' !important;
        position:      absolute;
        width:         calc(100% - 2px);
        height:        calc(100% - 2px);
        top:           1px;
        left:          1px;
        /*inset:         calc(var(--gradient-border-width) * -1);*/
        border-radius: 15px;
        background:    #fff;
        z-index:       -1;
    }
}

@media only screen and (max-width: 479px) {
    html body main .has-gradient-border.has-gradient-border--mobile::before {
        content:       '' !important;
        position:      absolute;
        border-radius: 16px;
        background:    linear-gradient(110deg, rgba(206, 213, 224, 1) 0%, rgba(237, 221, 83, 0) 50%);
        z-index:       -1;
        top:           0;
        left:          0;
    }

    .has-gradient-border.has-gradient-border--mobile::after {
        content:       '' !important;
        position:      absolute;
        width:         calc(100% - 2px);
        height:        calc(100% - 2px);
        top:           1px;
        left:          1px;
        /*inset:         calc(var(--gradient-border-width) * -1);*/
        border-radius: 15px;
        background:    #fff;
        z-index:       -1;
    }
}