/* epcan Shop: Anschlussart-Wizard */

body.epcan-aw-noscroll {
    overflow: hidden;
}

/* Blendet die Anschlussart-Zeile auf der Produktseite aus, Auswahl nur per Wizard */
.epcan-aw-hide {
    display: none !important;
}

.epcan-aw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 37, 56, 0.62);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 999999;
    padding: 32px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.epcan-aw-overlay.epcan-aw-open {
    display: flex;
}

.epcan-aw-dialog {
    background: #fff;
    border-radius: 10px;
    max-width: 760px;
    width: 100%;
    padding: 30px 30px 28px;
    position: relative;
    box-shadow: 0 24px 70px rgba(18, 37, 56, 0.35);
    font-family: inherit;
}

.epcan-aw-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f1f4f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #5c6770;
    padding: 0;
}

.epcan-aw-close:hover {
    background: #FFF3E8;
    color: #F1800E;
}

.epcan-aw-title {
    margin: 0 48px 10px 0;
    font-size: 20px;
    line-height: 1.3;
    color: #122538;
}

.epcan-aw-hint {
    font-size: 14px;
    color: #4a5560;
    margin: 0 0 22px;
    line-height: 1.6;
}

.epcan-aw-hint strong {
    color: #122538;
}

.epcan-aw-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.epcan-aw-card {
    border: 1px solid #dde4e8;
    border-radius: 8px;
    padding: 16px 16px 18px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease;
    font-family: inherit;
    display: block;
    width: 100%;
}

.epcan-aw-card:hover,
.epcan-aw-card:focus-visible {
    border-color: #F1800E;
    outline: none;
    background: #fff;
}

.epcan-aw-card > svg {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.epcan-aw-card-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #122538;
    margin-bottom: 6px;
    line-height: 1.35;
}

.epcan-aw-card-desc {
    display: block;
    font-size: 13px;
    color: #5c6770;
    line-height: 1.5;
    margin-bottom: 10px;
    font-weight: 400;
}

.epcan-aw-card-tag {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #3c4650;
    margin-bottom: 8px;
}

.epcan-aw-card-tag::before {
    content: "✓";
    color: #2fbf71;
    font-weight: 700;
    margin-right: 6px;
}

.epcan-aw-help-toggle {
    background: none;
    border: none;
    color: #004D9F;
    text-decoration: underline;
    font-size: 13.5px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.epcan-aw-help-toggle:hover {
    color: #F1800E;
    background: none;
}

.epcan-aw-help-panel {
    display: none;
    margin-top: 12px;
    background: #f7f9fa;
    border: 1px solid #e2e8ea;
    border-radius: 6px;
    padding: 14px 18px;
}

.epcan-aw-help-panel.epcan-aw-open {
    display: block;
}

.epcan-aw-help-panel ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    color: #3c4650;
    line-height: 1.65;
    list-style: disc;
}

.epcan-aw-help-panel li {
    margin-bottom: 6px;
}

.epcan-aw-help-panel li:last-child {
    margin-bottom: 0;
}

/* Mobil */
@media (max-width: 640px) {
    .epcan-aw-overlay {
        padding: 12px 10px;
    }

    .epcan-aw-dialog {
        padding: 22px 18px 20px;
        border-radius: 10px;
    }

    .epcan-aw-title {
        font-size: 18px;
        margin-right: 42px;
    }

    .epcan-aw-cards {
        grid-template-columns: 1fr;
    }

    .epcan-aw-hint {
        font-size: 13px;
    }
}
