@import "~modaal/dist/css/modaal.min.css";

.cfw-modaal {
    z-index: 1000000;

    .modaal-container {
        border-radius: 5px;
    }

    .modaal-confirm-wrap {
        font-size: 16px;
    }

    #modaal-title {
        display: none;
    }

    .modaal-confirm-btn.modaal-ok {
        @include cfw-primary-button();
    }

    .modaal-confirm-btn.modaal-cancel {
        @include cfw-secondary-button();
        width: auto;
    }

    .modaal-confirm-btn.modaal-ok[disabled] {
        display: none !important;
    }
}

.cfw-modaal + .modaal-overlay {
    z-index: 999999;
}

.cfw-bump-modal-wrap {
    padding: 10px;

    .stepper-wrapper {
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        margin-bottom: 1.8em;
    }
    .stepper-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;

        @media (max-width: 768px) {
            font-size: 12px;
        }
    }

    .stepper-item::before {
        position: absolute;
        content: "";
        border-bottom: 4px solid #ccc;
        width: 100%;
        top: 20px;
        left: -50%;
        z-index: 2;
    }

    .stepper-item::after {
        position: absolute;
        content: "";
        border-bottom: 4px solid #ccc;
        width: 100%;
        top: 20px;
        left: 50%;
        z-index: 2;
    }

    .stepper-item .step-counter {
        position: relative;
        z-index: 5;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #ccc;
        margin-bottom: 6px;
    }

    .stepper-item.active {
        font-weight: bold;
    }

    .stepper-item.completed .step-counter {
        background-color: var(--cfw-buttons-primary-background-color);
    }

    .stepper-item.completed::before {
        border-bottom: 4px solid var(--cfw-buttons-primary-background-color);
    }

    .stepper-item.completed::after {
        position: absolute;
        content: "";
        border-bottom: 4px solid var(--cfw-buttons-primary-background-color);
        width: 100%;
        top: 20px;
        left: 50%;
        z-index: 3;
    }

    .stepper-item:last-child::before {
        border-bottom: 4px solid #ccc !important;
        z-index: 3;
    }

    .stepper-item:first-child::before {
        content: none;
    }
    .stepper-item:last-child::after {
        content: none;
    }

    h2, h3 {
        text-align: center;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1em !important;
        font-weight: 500 !important;
        margin-bottom: 1.8em !important;
    }

    .cfw-product-form-modal {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid #eee;
        border-radius: 5px;
        color: #333;
        padding: 40px;

        .cfw-product-form-modal-content {
            padding-left: 20px;
        }
    }
}