.dan-fragtinfo-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    vertical-align: middle;
}

.dan-fragtinfo-knap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #449135;
    border-radius: 5px;
    background: #fff;
    color: #449135;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.dan-fragtinfo-knap:hover,
.dan-fragtinfo-knap:focus {
    background: #449135;
    color: #fff;
    outline: 2px solid rgba(68, 145, 53, 0.25);
    outline-offset: 2px;
}

.dan-fragtinfo-popup[hidden] {
    display: none !important;
}

.dan-fragtinfo-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dan-fragtinfo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.dan-fragtinfo-dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px 30px 30px;
    border-radius: 10px;
    background: #fff;
    color: #222;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dan-fragtinfo-dialog h2 {
    margin: 0 38px 14px 0;
    font-size: 22px;
    line-height: 1.25;
}

.dan-fragtinfo-tekst {
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.dan-fragtinfo-luk {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.dan-fragtinfo-luk:hover,
.dan-fragtinfo-luk:focus {
    color: #449135;
    outline: none;
}

.dan-fragtinfo-luk-mobil {
    display: none;
}

body.dan-fragtinfo-aaben {
    overflow: hidden;
}

/* WooCommerce Checkout Block */
.wc-block-components-shipping-rates-control__package .dan-fragtinfo-knap {
    margin-left: 8px;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .dan-fragtinfo-popup {
        align-items: flex-end;
        padding: 12px;
    }

    .dan-fragtinfo-dialog {
        width: calc(100vw - 24px);
        max-width: none;
        padding: 24px 22px 26px;
        border-radius: 10px;
    }

    .dan-fragtinfo-dialog h2 {
        font-size: 20px;
    }

    .dan-fragtinfo-luk-mobil {
        position: sticky;
        bottom: -26px;
        display: block;
        width: calc(100% + 44px);
        min-height: 50px;
        margin: 24px -22px -26px;
        padding: 12px 20px;
        border: 0;
        border-radius: 0 0 10px 10px;
        background: #449135;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        cursor: pointer;
    }

    .dan-fragtinfo-luk-mobil:hover,
    .dan-fragtinfo-luk-mobil:focus {
        background: #36782b;
        color: #fff;
        outline: 2px solid rgba(68, 145, 53, 0.3);
        outline-offset: -3px;
    }
}
