/**
 * Routine Steps Frontend Styles
 */

.routine-steps-wrapper {
    margin: 40px 0 34px;
    padding: 20px 0;
}

.routine-steps-header {
    /* margin-bottom: 30px; */
    padding: 0 24px;
}

.routine-steps-title {
    font-size: 36px;
    margin-bottom: 0;
    font-weight: 650;
    line-height: 48px;
}

.routine-steps-description {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px;
    display: none;
}

.routine-steps-slider-container {
    position: relative;
    overflow: hidden;
}

.routine-steps-slider {
    /* Owl Carousel will handle the layout */
    display: flex !important; /* Used to display the products in a row before js is loaded */
    padding: 32px 20px;
    max-width: 95%;
    overflow: visible;
}

.routine-steps-slider .owl-stage-outer {
    overflow: visible !important;
}

@media (min-width: 769px) {
    .routine-steps-slider .owl-item {
        margin: 0 !important;
    }
}

.routine-step-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid #696969;
    border-radius: 4px;
    text-align: center;
    transition: border-color 0.3s ease;
    margin: 0 6px;
    box-shadow: 0 10px 26px 0 rgba(0, 0, 0, 0.10);
    height: 100%;
}

.routine-step-card.current-step {
    border-color: #DC233E;
}

.step-label {
    position: absolute;
    top: -16px;
}

.step-label .step-number {
    display: inline-block;
    padding: 4px 8px;
    background: #F5E5E2;
    color: #020202;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.step-type {
    margin-bottom: 0;
    color: #191818;
    font-size: 20px;
    font-weight: 650;
    line-height: 28px;
    font-family: 'Ciron Text', sans-serif;
    text-align: left;
}

.step-description {
    color: #191818;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    font-family: 'Ciron Text', sans-serif;
}

.step-product {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 16px;
}

.step-product-image {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-product-image img {
    max-width: 80px;
    max-height: 100%;
    width: unset !important;
    height: 80px;
    object-fit: contain;
}

.step-product-info {
    margin-bottom: 15px;
    text-align: left;
}

.product-brand {
    font-size: 12px;
    color: #191818;
    margin-bottom: 4px;
    line-height: 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name a {
    color: #191818;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    line-height: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name a:hover {
    background: none;
}

.product-name a:active, .product-name a:focus {
    border-bottom: none;
    text-decoration: underline !important;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #000 !important;
    margin-bottom: 5px;
}

.routine-step-add-to-cart-form {
    margin: 0;
    margin-top: auto;
}

.product-out-of-stock {
    display: block;
    font-size: 12px;
    margin-top: 0;
}

.btn-secondary.step-add-to-cart-btn {
    width: 100%;
    padding: 8px 24px;
    background: #fff;
    border: 1px solid #191818;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    font-weight: 650;
    height: auto;
}

.step-add-to-cart-btn:hover:not(:disabled) {
    background: #F5E5E2;
    outline: 1px solid #191818;
    border: 1px solid #191818;
}

.step-add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.routine-steps-slider-container .owl-stage {
    display: flex;
}

.routine-steps-slider-container .owl-prev,
.routine-steps-slider-container .owl-next {
    display: none !important;
}

.routine-steps-slider-container .owl-dots {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 4px;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    background: #D9D9D9;
    display: block;
    -webkit-backface-visibility: visible;
    transition: all 200ms ease;
    border-radius: 2px;
}

.owl-dots .owl-dot.active span,
.owl-dots .owl-dot:hover span {
    background: #191818;
}

.routine-steps-header .btn-prev,
.routine-steps-header .btn-next {
    display: none;
}

@media (min-width: 1440px) {
    .routine-steps-wrapper {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
    }

    .routine-steps-slider.owl-carousel {
        margin: 0 auto;
        max-width: 1440px;
    }

    .routine-steps-header {
        max-width: 1440px;
        margin: 0 auto;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .routine-steps-wrapper {
        padding-bottom: 0;
        margin-bottom: 0;
        position: relative;
    }

    .routine-steps-header {
        padding: 0 16px;
        max-width: calc(100% - 76px);
    }

    .routine-steps-header .btn-prev,
    .routine-steps-header .btn-next {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 16px;
        width: 24px;
        height: 24px;
    }

    .routine-steps-header .btn-prev {
        right: 44px;
    }

    .routine-steps-header .btn-prev.disabled,
    .routine-steps-header .btn-next.disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    .routine-steps-title {
        font-size: 20px;
        line-height: 28px;
    }

    .routine-step-card {
        /* min-width: 250px;
        max-width: 250px; */
        margin: 0;
    }

    .routine-slider-prev,
    .routine-slider-next {
        width: 35px;
        height: 35px;
    }

    .routine-steps-description {
        display: block;
    }

    .routine-steps-slider {
        padding: 32px 16px 56px;
    }
}

