/**
 * Ziggi Original
 * Global frontend styles
 */

/* =====================================================
   WooCommerce informational notices
===================================================== */

.woocommerce-info.message-wrapper {
    position: relative;
    overflow: hidden;

    box-sizing: border-box;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;

    background-color: #fffbed;
    border: 1px solid rgba(242, 202, 38, 0.6);
    border-left: 6px solid #f2ca26;
    border-radius: 6px;

    color: #4c4e4b;
    box-shadow: 0 3px 12px rgba(76, 78, 75, 0.08);
}

/*
 * Remove a possible default Flatsome/WooCommerce icon
 * from the inner message container.
 */
.woocommerce-info.message-wrapper .message-container::before {
    display: none;
    content: none;
}

/*
 * Ziggi information icon.
 */
.woocommerce-info.message-wrapper::before {
    content: "i";

    position: absolute;
    top: 50%;
    left: 20px;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    width: 30px;
    height: 30px;

    transform: translateY(-50%);

    background-color: #f2ca26;
    border-radius: 50%;

    color: #4c4e4b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;

    pointer-events: none;
}

/*
 * Notice content.
 */
.woocommerce-info.message-wrapper .message-container {
    display: flex;
    align-items: center;

    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 66px;

    margin: 0;
    padding: 18px 22px 18px 66px;

    color: #4c4e4b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    text-align: left !important;
}

/*
 * Links inside informational notices.
 */
.woocommerce-info.message-wrapper .message-container a:not(.button) {
    color: #4c4e4b;
    font-weight: 700;

    text-decoration-line: underline;
    text-decoration-color: #f2ca26;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.woocommerce-info.message-wrapper .message-container a:not(.button):hover,
.woocommerce-info.message-wrapper .message-container a:not(.button):focus {
    color: #222;
    text-decoration-color: #222;
}

/* =====================================================
   Pending B2B approval notice
===================================================== */

.ziggi-b2b-pending-approval-notice .message-container {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
}

.ziggi-b2b-pending-approval-notice__content {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 20px;
    row-gap: 12px;

    min-width: 0;
}

.ziggi-b2b-pending-approval-notice__title {
    display: block;
    flex: 0 0 100%;

    margin: 0;

    color: #4c4e4b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.ziggi-b2b-pending-approval-notice__text {
    flex: 1 1 480px;

    margin: 0;

    color: #4c4e4b;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.woocommerce-info.message-wrapper
.ziggi-b2b-pending-approval-notice__button {
    flex: 0 0 auto;

    margin: 0;
    padding: 10px 20px;

    background-color: #f2ca26;
    border: 1px solid #f2ca26;
    border-radius: 5px;

    color: #4c4e4b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;

    box-shadow: none;
}

.woocommerce-info.message-wrapper
.ziggi-b2b-pending-approval-notice__button:hover,
.woocommerce-info.message-wrapper
.ziggi-b2b-pending-approval-notice__button:focus {
    background-color: #4c4e4b;
    border-color: #4c4e4b;

    color: #fff;
    text-decoration: none;

    box-shadow: none;
}

/* =====================================================
   WooCommerce informational notices – mobile
===================================================== */

@media screen and (max-width: 549px) {
    .woocommerce-info.message-wrapper {
        margin-bottom: 20px;

        border-left-width: 5px;
        border-radius: 5px;
    }

    .woocommerce-info.message-wrapper::before {
        top: 20px;
        left: 15px;

        width: 27px;
        height: 27px;

        transform: none;

        font-size: 16px;
    }

    .woocommerce-info.message-wrapper .message-container {
        min-height: 58px;
        padding: 15px 16px 15px 55px;

        font-size: 14px;
        line-height: 1.5;
    }

    .ziggi-b2b-pending-approval-notice .message-container {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .ziggi-b2b-pending-approval-notice__content {
        display: block;
    }

    .ziggi-b2b-pending-approval-notice__title {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .ziggi-b2b-pending-approval-notice__text {
        margin-bottom: 14px;
        font-size: 14px;
    }

    .woocommerce-info.message-wrapper
    .ziggi-b2b-pending-approval-notice__button {
        display: inline-block;
        width: auto;

        padding: 9px 16px;

        font-size: 13px;
    }
}

/* =====================================================
   Single product
===================================================== */

.single-product .woocommerce-info.message-wrapper {
    margin-top: 30px;
}