:root {
    /* Container */
    --salepify-ymal__container__background-color: transparent;
    --salepify-ymal__container__border-color: #CCCCCC;
    --salepify-ymal__container__border-radius: 4px;
    --salepify-ymal__container__border-width: 1px;
    --salepify-ymal__container__padding-top: 8px;
    --salepify-ymal__container__padding-right: 8px;
    --salepify-ymal__container__padding-bottom: 8px;
    --salepify-ymal__container__padding-left: 8px;

    /* Image */
    --salepify-ymal__image__border-radius: 0px;
    --salepify-ymal__image__height: 100;

    /* Header */
    --salepify-ymal__header__font-size: 16px;
    --salepify-ymal__header__font-weight: 700;
    --salepify-ymal__header__padding: 0px;
    --salepify-ymal__header__color: #000000;
    --salepify-ymal__header-pagination__color: #111827;

    /* Product title */
    --salepify-ymal__product-title__font-size: 14px;
    --salepify-ymal__product-title__font-weight: 500;
    --salepify-ymal__product-title__color:#111827;

    /* Product Variant title */
    --salepify-ymal__variant-title__font-size: 14px;
    --salepify-ymal__variant-title__font-weight: 400;
    --salepify-ymal__variant-title__color: #757575;

    /* Product price */
    --salepify-ymal__product-price__font-size: 14px;
    --salepify-ymal__product-price__font-weight: 500;
    --salepify-ymal__product-price__color: #FF0000;

    /* Product regular price */
    --salepify-ymal__product-regular-price__font-size: 12;
    --salepify-ymal__product-regular-price__font-weight: 400;
    --salepify-ymal__product-regular-price__color: #6B7280;

    /* Add button */
    --salepify-ymal__add-btn__font-size: 16px;
    --salepify-ymal__add-btn__font-weight: 400;
    --salepify-ymal__add-btn__color: #F5F5F5;
    --salepify-ymal__add-btn__background-color: #2C2C2C;
}

salepify-ymal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0px;
}

salepify-ymal p {
    margin: unset;
}

.salepify-ymal__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.salepify-ymal-title {
    line-height: 150%;
    vertical-align: middle;
    font-size: var(--salepify-ymal__header__font-size);
    font-weight: var(--salepify-ymal__header__font-weight);
    color: var(--salepify-ymal__header__color);
    padding: var(--salepify-ymal__header__padding);
}

.salepify-ymal-pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.salepify-ymal-pagination .salepify-ymal-pagination__button{
    cursor: pointer;
}

.salepify-ymal-pagination .salepify-ymal-pagination__button:hover{
    transform: scale(1.1);
}

.salepify-ymal-pagination .salepify-ymal-pagination__button--disabled:hover{
    transform: unset;
    cursor: not-allowed;
}

.salepify-ymal-pagination .salepify-ymal-pagination__button path {
    stroke: var(--salepify-ymal__header-pagination__color);
}

.salepify-ymal-pagination .salepify-ymal-pagination__button--disabled path {
    stroke: #CCCCCC;
}

.salepify-ymal__body {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.salepify-ymal__body::-webkit-scrollbar { 
    display: none; 
}

.salepify-ymal-item,
.salepify-ymal-product {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.salepify-ymal-item {
    flex: 0 0 100%; 
    max-width: 459px;
    scroll-snap-align: start;
    justify-content: space-between;
    border-radius: var(--salepify-ymal__container__border-radius);
    border: var(--salepify-ymal__container__border-width) solid
        var(--salepify-ymal__container__border-color);
    padding: var(--salepify-ymal__container__padding-top)
        var(--salepify-ymal__container__padding-right)
        var(--salepify-ymal__container__padding-bottom)
        var(--salepify-ymal__container__padding-right);
    background-color: var(--salepify-ymal__container__background-color);
}

/* Product style */
.salepify-ymal-product__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Product image */
.salepify-ymal-product__image {
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #dbd7d7;
    width: calc(100px * var(--salepify-ymal__image__height) / 100);
    height: calc(100px * var(--salepify-ymal__image__height) / 100);
    border-radius: var(--salepify-ymal__image__border-radius);
}

.salepify-ymal-product__image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Title */
.salepify-ymal-product-title {
    line-height: 20px;
    font-size: var(--salepify-ymal__product-title__font-size);
    font-weight: var(--salepify-ymal__product-title__font-weight);
    color: var(--salepify-ymal__product-title__color);
}

.salepify-ymal-variant-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.salepify-ymal-variant-selector select{
    border: unset;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    max-width: 120px;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: var(--salepify-ymal__variant-title__font-size);
    font-weight: var(--salepify-ymal__variant-title__font-weight);
    color: var(--salepify-ymal__variant-title__color);
}

.salepify-ymal-variant-selector select:hover
.salepify-ymal-variant-selector select:focus,
.salepify-ymal-variant-selector select:focus-visible {
    outline: none !important;
}

.salepify-ymal-variant-selector svg {
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.salepify-ymal-variant-selector svg path{
    fill: var(--salepify-ymal__variant-title__color);
}

/* Product Price */
.salepify-ymal-product-price {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
}

.salepify-ymal-product-price__final {
    line-height: 12px;
    font-size: var(--salepify-ymal__product-price__font-size);
    font-weight: var(--salepify-ymal__product-price__font-weight);
    color: var(--salepify-ymal__product-price__color);
}

.salepify-ymal-product-price__regular {
    line-height: 20px;
    text-decoration: line-through;
    font-size: var(--salepify-ymal__product-regular-price__font-size);
    font-weight: var(--salepify-ymal__product-regular-price__font-weight);
    color: var(--salepify-ymal__product-regular-price__color);
}

/* Add Button */
.salepify-ymal-add-btn {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--salepify-ymal__add-btn__background-color);
    background-color: var(--salepify-ymal__add-btn__background-color);
}

.salepify-ymal-add-btn p {
    z-index: 20;
    font-size: var(--salepify-ymal__add-btn__font-size);
    font-weight: var(--salepify-ymal__add-btn__font-weight);
    color: var(--salepify-ymal__add-btn__color);
}

.salepify-ymal-add-btn::after {
    background: #fff;
    content: "";
    height: 155px;
    left: -75px;
    opacity: 0.2;
    position: absolute;
    top: -50px;
    transform: rotate(35deg);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    width: 50px;
    z-index: 100;
}

.salepify-ymal-add-btn:hover::after {
    left: 120%;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.salepify-ymal-add-btn--loading::before {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: var(--salepify-ymal__add-btn__color);
    border-radius: 50%;
    animation: tlYMALSpinner 1s ease infinite;
    z-index: 20;
}

.salepify-ymal-add-btn--loading p {
    visibility: hidden;
    opacity: 0;
}

/* Skeleton */ 
.salepify-ymal-text-skeletion,
.salepify-ymal-thumbnail-skeletion{
    display: block !important;
    border-radius: 5px;
    background-color: #e3e3e3;
}

.salepify-ymal-text-skeletion {
    height: 25px;
}

.salepify-ymal-thumbnail-skeletion {
    width: 80px;
    height: 80px;
}
@keyframes tlYMALSpinner {
    from {
      transform: rotate(0turn);
    }
  
    to {
      transform: rotate(1turn);
    }
}