/* =========================================================
   EFWA MEMBERPRESS ACCESS
   ========================================================= */

/* Locked-download notice */
.efwa-download-lock-notice {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    width: 100%;
    padding: 32px 42px;
    background: var(--orange, #d67417);
    color: #ffffff;
    border-radius: 22px;
}

.efwa-download-lock-notice__content p {
    margin: 0;
    color: inherit;
    font-size: 17px;
    line-height: 1.45;
}

.efwa-download-lock-notice__content strong {
    color: inherit;
    font-weight: 700;
}

/* Remove the complete Divi section when the shortcode outputs no notice. */
.efwa-access-notice-section:not(:has(.efwa-download-lock-notice)) {
    display: none !important;
}

/* Locked-download notice icon */
.efwa-download-lock-notice__icon {
    position: relative;
    display: block;
    width: 42px;
    height: 36px;
    margin-top: 13px;
    border-radius: 5px;
    background: currentColor;
}

.efwa-download-lock-notice__icon::before {
    position: absolute;
    bottom: 27px;
    left: 7px;
    width: 28px;
    height: 29px;
    border: 6px solid currentColor;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
    content: "";
}

.efwa-download-lock-notice__icon::after {
    position: absolute;
    top: 12px;
    left: 17px;
    width: 8px;
    height: 13px;
    border-radius: 5px;
    background: var(--orange, #d67417);
    content: "";
}

.efwa-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

/* Membership state indicator displayed on cards */
/* Hide the complete Divi module when the shortcode outputs no badge. */
.efwa-card-lock-module:not(:has(.efwa-card-access-icon)) {
    display: none !important;
}

.efwa-card-access-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    box-sizing: border-box;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.efwa-card-access-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.efwa-card-access-icon--locked {
    background: var(--orange, #d67417);
    color: #ffffff;
}

.efwa-card-access-icon--unlocked {
    background: #ffffff;
    color: var(--green, #2c6f5e);
}

/* Add this class to the Divi Text module containing the padlock shortcode. */
.efwa-card-lock-module .et_pb_text_inner,
.efwa-card-lock-module p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

@media (max-width: 767px) {
    .efwa-download-lock-notice {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 20px;
        padding: 26px 24px;
        border-radius: 16px;
    }

    .efwa-download-lock-notice__content p {
        font-size: 15px;
    }

    .efwa-download-lock-notice__icon {
        transform: scale(.8);
        transform-origin: left center;
    }
}
