/**
 * GW Elementos Maxime Oro - Checkout Steps
 * v1.6.30
 */

.gw-emocs {
    --gw-emocs-marker-size: 34px;
    --gw-emocs-connector-min: 80px;
    --gw-emocs-line-height: 2px;
    --gw-emocs-active-color: #A29666;
    --gw-emocs-line-active-color: #A29666;
    display: flex;
    width: 100%;
    justify-content: center;
}

.gw-emocs-track {
    display: grid;
    grid-template-columns:
        auto minmax(var(--gw-emocs-connector-min), 1fr)
        auto minmax(var(--gw-emocs-connector-min), 1fr)
        auto;
    grid-template-rows: auto auto;
    align-items: center;
    width: 100%;
    max-width: 100%;
    row-gap: 10px;
}

.gw-emocs-step-marker,
.gw-emocs-step-label {
    display: flex;
    min-width: var(--gw-emocs-marker-size);
    justify-content: center;
    min-height: 0;
}

.gw-emocs-step-marker {
    position: relative;
    z-index: 2;
}

.gw-emocs-marker {
    display: inline-flex;
    width: var(--gw-emocs-marker-size);
    height: var(--gw-emocs-marker-size);
    align-items: center;
    justify-content: center;
    border: 1px solid #D9DDE3;
    border-radius: 50%;
    background: #E5E7EB;
    color: #7C8490;
    line-height: 1;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.gw-emocs-marker-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.gw-emocs-marker-icon,
.gw-emocs-marker-icon i,
.gw-emocs-marker-icon svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gw-emocs-marker-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.gw-emocs-step-marker.is-current .gw-emocs-marker,
.gw-emocs-step-marker.is-complete .gw-emocs-marker {
    border-color: var(--gw-emocs-active-color);
    background: var(--gw-emocs-active-color);
    color: #FFFFFF;
}

.gw-emocs-connector {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-width: var(--gw-emocs-connector-min);
    height: var(--gw-emocs-line-height);
    align-self: center;
    overflow: hidden;
    border-radius: 999px;
    background: #D9DDE3;
}

.gw-emocs-connector-fill,
.gw-emocs-connector-shine {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
}

.gw-emocs-connector-fill {
    width: 100%;
    background: var(--gw-emocs-line-active-color);
    transform: scaleX(0);
    transform-origin: left center;
}

.gw-emocs-connector-shine {
    width: 42%;
    opacity: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
}

.gw-emocs-connector.is-complete .gw-emocs-connector-fill {
    transform: scaleX(1);
}

.gw-emocs-connector.is-loading .gw-emocs-connector-fill {
    transform: scaleX(0.46);
}

.gw-emocs-label {
    display: block;
    width: max-content;
    max-width: clamp(72px, 12vw, 180px);
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.gw-emocs-step-label.is-current .gw-emocs-label,
.gw-emocs-step-label.is-complete .gw-emocs-label {
    color: #1F2937;
}

.gw-emocs-no-labels .gw-emocs-track {
    grid-template-rows: auto;
    row-gap: 0;
}

.gw-emocs-animate.gw-emocs-animation-loading .gw-emocs-connector.is-loading .gw-emocs-connector-fill {
    will-change: transform, opacity;
    animation: gw-emocs-loading-fill 1.7s ease-in-out infinite;
}

.gw-emocs-animate.gw-emocs-animation-shine .gw-emocs-connector.is-loading .gw-emocs-connector-fill {
    transform: scaleX(1);
}

.gw-emocs-animate.gw-emocs-animation-shine .gw-emocs-connector.is-loading .gw-emocs-connector-shine {
    opacity: 1;
    will-change: transform;
    animation: gw-emocs-line-shine 1.55s ease-in-out infinite;
}

.gw-emocs-animate.gw-emocs-animation-pulse .gw-emocs-step-marker.is-current .gw-emocs-marker,
.gw-emocs-animate.gw-emocs-animation-loading .gw-emocs-step-marker.is-current .gw-emocs-marker,
.gw-emocs-animate.gw-emocs-animation-shine .gw-emocs-step-marker.is-current .gw-emocs-marker {
    animation: gw-emocs-marker-pulse 1.55s ease-in-out infinite;
}

@keyframes gw-emocs-loading-fill {
    0% {
        transform: scaleX(0);
        opacity: 0.45;
    }
    55% {
        transform: scaleX(0.72);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

@keyframes gw-emocs-line-shine {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(260%);
    }
}

@keyframes gw-emocs-marker-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(162, 150, 102, 0.28);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 8px rgba(162, 150, 102, 0);
    }
}

@media (max-width: 767px) {
    .gw-emocs {
        --gw-emocs-marker-size: 30px;
        --gw-emocs-connector-min: 34px;
    }

    .gw-emocs-label {
        max-width: 82px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gw-emocs-animate .gw-emocs-connector-fill,
    .gw-emocs-animate .gw-emocs-connector-shine,
    .gw-emocs-animate .gw-emocs-marker {
        animation: none !important;
    }
}
