/* Wrapper handles Top and Bottom placement spacing */
.ota-progress-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Base Bar Styles */
.ota-progress-bar {
    background: var(--wp--custom--light--1);
    height: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 0 !important;
}

/* Fill Animation Styles */
.ota-progress-bar-fill {
    background: var(--wp--custom--primary--dark);
    height: 100%;
    width: 0 !important; /* Force 0 until JS triggers */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ota-progress-bar-fill.animate {
    transition: width 1s ease-in-out, opacity 0.3s ease;
    visibility: visible;
    opacity: 1;
}

/* Base Text Styles */
.ota-progress-bar-text {
    display: block;
    color: var(--wp--custom--dark--1);
    font-weight: bold;
    line-height: 24px;
    pointer-events: none;
    transition: opacity 0.5s auto;
}

/* --- Placement: Inside --- */
.placement-inside .ota-progress-bar-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    color: white;
}

/* --- Alignment Logic --- */
.alignment-left .ota-progress-bar-text { 
    text-align: left; 

}

.alignment-center .ota-progress-bar-text { 
    text-align: center; 
}

.alignment-right .ota-progress-bar-text { 
    text-align: right; 

}

.placement-inside.alignment-left .ota-progress-bar-text {
	    padding-left: 20px;
    width: calc(100% - 20px);
}
.placement-inside.alignment-right .ota-progress-bar-text {
	    padding-right: 20px;
    width: calc(100% - 20px);
}

.ota-progress-bar-wrapper.alignment-left { align-items: flex-start; }
.ota-progress-bar-wrapper.alignment-center { align-items: stretch; }
.ota-progress-bar-wrapper.alignment-right { align-items: flex-end; }