.single_variation_wrap{
    display: flex;
    padding:0 20px;
    .single_add_to_cart_button{
        width:fit-content;
        text-wrap: nowrap;
    }
}
.jmj-medical-fields-wrapper {
    *{
        margin-bottom: 0 !important;
    }
    width:100%;
    margin-bottom: 20px;
    border: none;
    background: transparent;
    color: #fff;
}

.jmj-field-group {
    position: relative !important;
    margin-bottom: 20px;
    display: block;
}

.jmj-medical-fields-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #fff !important;
    line-height: 1.2;
}

.jmj-medical-fields-wrapper input[type="text"] {
    width: 100%;
    background-color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px !important;
    padding: 12px 25px !important;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    outline: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: auto !important;
}

.jmj-medical-fields-wrapper input[type="text"]:focus {
    border-color: var(--ast-global-color-1, #246df5);
    box-shadow: 0 0 0 3px rgba(36, 109, 245, 0.3);
}

.jmj-autocomplete-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: none;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99999;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    overflow: hidden;
}

.jmj-suggestion-item {
    padding: 12px 25px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.4;
}

.jmj-suggestion-item:last-child {
    border-bottom: none;
}

.jmj-suggestion-item:hover {
    background-color: var(--ast-global-color-1, #246df5) !important;
    color: #fff !important;
    padding-left: 30px;
}

.jmj-autocomplete-list::-webkit-scrollbar {
    width: 8px;
}
.jmj-autocomplete-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.jmj-autocomplete-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
    border: 2px solid #f5f5f5;
}
.quantity{
    display: none !important;
}.woocommerce-Tabs-panel {
    .wb_cptb_content:has(.wpcf7){
    &>p{
        display: none;
    }
}

    #abstrakt {

        input,
        textarea {
            border-radius: 12px;
            border: 1px solid var(--ast-global-color-1) !important;
        }
    }
}
.products > li {
    &:hover {
    
        span,
            div:not(.archive-event),
            h2{
                color: #fff !important;

            }
        .jmj-product-meta-wrap {
            background: #334080 !important;

            
        }
        .add_to_cart_button,.product_type_variable,.button {
          background: #FFF !important;
          color:var(--ast-global-color-0) !important;
        }
        background:var(--ast-global-color-0) !important;
    }
    *{
      transition: .2s ease-in-out background-color, color;
    }
    overflow: hidden;
    gap:20px;
    img{
      margin:0 !important;
      max-height: 250px;
                  object-fit: cover;
    }
    min-height: 350px;
    padding:0 !important;
    .astra-shop-thumbnail-wrap{
      margin-bottom: 40px;
    }
    .astra-shop-summary-wrap {
      
    
      padding: 0px 30px 20px 30px !important;
      .ast-loop-product__link {
        margin-bottom: auto;

        h2 {
          font-weight: 400 !important;
          font-size: 22px;
          line-height: 33px;
        }
      }

      .price {
        font-weight: 700;
        font-size: 18px;
        line-height: 24px;

        margin-bottom: 20px !important;
      }

      .button {
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        width: 100%;
        padding: 10px 20px !important;
        text-align: center;
        margin: 0 !important;
        background-color: var(--ast-global-color-0);
      }

      justify-content: flex-end;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    
    .archive-event-over-message{
      filter: grayscale(1);
    }
    .archive-event-ongoing-message{
      color:var(--ast-global-color-1) !important;
      background:#fff !important;
      border:1px solid var(--ast-global-color-1)
    }
    .archive-event{
      position: absolute;
      padding: 3px 10px;
      border-radius: 20px;
      width: max-content;
      background: var(--ast-global-color-1);
      color: #fff;
      bottom: 0;
      left: 50%;
      transform: translate(-50%, 50%);
    }
      
    border: 1px solid #246df5;
    border-radius: 20px;
  }


.ast-container:has(.main-event-container) {
    max-width: 1640px;
    padding:0 20px;
    overflow: visible;
    
    .gallery-summary-wrap {
        display: flex;
        position: relative;
        gap:40px;
        justify-content: space-between;
        align-items: start;
        flex-direction: row-reverse;
        padding: 222px 0 102px 0px;
        min-height: 500px;
        margin: auto;
        user-select: none;
        

        &:after {
            content: "";
            position: absolute;
            top:0;
            height: 100%;
            width: 100vw;
            background: linear-gradient(180deg, #001060 0%, #010B79 100%);
            opacity: .85;
            z-index: 1;
                left: 50%;
    margin-left: -50vw;
    width: 100vw;
        }

        .woocommerce-product-gallery {
            display: flex;
            justify-content: end;
            margin-top:auto;
            margin-bottom: auto;

            z-index: 2;

            .woocommerce-product-gallery__wrapper,
            .woocommerce-product-gallery__image {
                height: 100%;

                &>a {
                    pointer-events: none;
                    overflow: hidden;
                    height: 100%;
                    display: flex;
                    justify-content: end;
                    position: relative;
                    
                    }
            }

            img {
border-radius: 20px;
max-height: 500px;
            }
        }

        .summary {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10%;
            width: 100% !important;
            max-width: 48%;
            
            z-index: 10;

            p,
            h1,
            h2,
            h3,
            h4,
            h5,
            a,
            span,
            div {
                color: #fff;
            }

            h1.product_title {
                font-weight: 400;
                font-size: 44px;
                line-height: 61.6px;
            }

            &>div {
                width: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 40px;
            }

            .jmj-event-meta-wrapper {
                display: flex;
                align-items: center;
                gap: 20px;

                &:before {
                    content: "";
                    display: block;
                    width: 1px;
                    height: -webkit-fill-available;
                    background: #FFF;
                    order: 1;
                }

                .jmj-event-date {
                    font-weight: 400;
                    font-size: 22px;
                    line-height: 1;
                    order: -1;
                }

                .single-product-category {
                    font-weight: 700;
                    font-size: 22px;
                    line-height: 1;
                    margin: 0 !important;
                    order: 9;
                }
            }
            .product-title-wrapper{
                order:0;
            }
            .woocommerce-notices-wrapper{
                order:1;
                background:transparent !important;
                li,div,ul{
                    background:transparent !important;
                    color:#fff;
                    a{
                        width: max-content;
                        text-wrap: nowrap;
                        display: inline-flex;
                            align-items: center;
                            height: fit-content;
                    }
                    display: flex;
                }
                
            }
            .product-price-cart-wrapper {
                order:2;
                display: block;
                max-width: 75%;
                margin-right: auto;

                .event-over-message {
                    padding: 2rem;
                    border: 1px solid white;
                    border-radius: 20px;
                    text-align: center;
                }
            }
            .value {
    height: 53px;

    position: relative !important;
}

.variations {
    margin-bottom: 40px !important;
}

.value:has(select:open) {
    &:after {
        transform: translateY(-50%) rotate(-90deg) !important;

    }
}

.value:after {
    width: 22px;
    height: 22px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    content: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_92_389)"><path d="M31.6866 20.3711L11.5596 0.24409C11.2095 -0.0884155 10.6582 -0.0797193 10.3257 0.261565C10.0019 0.602849 10.0019 1.13668 10.3257 1.47796L29.8314 20.9837L10.3257 40.4981C9.97564 40.8306 9.96694 41.3907 10.3082 41.732C10.6407 42.0821 11.2008 42.0908 11.5421 41.7495C11.5509 41.7407 11.5596 41.732 11.5596 41.732L31.6866 21.605C32.0278 21.2637 32.0278 20.7124 31.6866 20.3711Z" fill="white"/></g><defs><clipPath id="clip0_92_389"><rect width="42" height="42" fill="white"/></clipPath></defs></svg>');
}
            .variations {
                border: none !important;
                th:has(label){
                    margin-bottom:0;
                    margin-top:15px !important;
                }
                label {
                    color:#FFF;
                    
                    font-weight: 400;
                    font-size: 18px;
                }

                select {
                    background: transparent url("data:image/svg+xml,...") no-repeat 95% 50%;
                    border: 1px solid var(--ast-global-color-1);
                    color: #FFF;
                    padding: 15px 30px !important;
                    border-radius: 20px;
                    height: auto;
                }

                option {
                    color: #000;
                }
            }

            .woocommerce-variation-add-to-cart {
                display: flex;
                flex-direction: column;
                width:100%;
                align-items: flex-start;
            }

            .quantity,
            .single_add_to_cart_button {
                margin-bottom: 0 !important;
                margin-left: 0 !important;
            }

            .single_add_to_cart_button {
                padding: 18px 34px !important;
            }

            .quantity {
                display: flex;
                gap: 0;

                input[type=number] {
                    background: transparent;
                    border: none;
                    text-align: center;
                    color: #FFF;
                    padding: 0;

                    &::-webkit-outer-spin-button,
                    &::-webkit-inner-spin-button {
                        -webkit-appearance: none;
                        margin: 0;
                    }

                    &::placeholder {
                        text-align: center;
                        color: #FFF;
                    }
                }

                button {
                    padding: 0;
                    width: 40px;
                    background: transparent;
                    line-height: 1;
                }
            }
        }
    }

    .woocommerce-tabs {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap !important;
        gap: 70px;
        max-width: 1640px !important;
        margin: auto;
        padding: 120px 0px 0px !important;

        ul.tabs {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 20%;

            &:before {
                display: none !important;
            }

            li {
                background: transparent;
                border: 1px solid var(--ast-global-color-0) !important;
                border-radius: 20px 0 0 20px !important;

                a {
                    padding: 20px 40px !important;
                    color: var(--ast-global-color-0) !important;
                    font-weight: 400 !important;
                    width: 100%;
                }

                &.active,
                &:hover {
                    background: var(--ast-global-color-0) !important;

                    a {
                        color: #FFF !important;
                    }
                }

                &.active::before {
                    display: none !important;
                }
            }
        }
    }

    /* Sekcja "Produkty powiązane" */
    .related {
        max-width: 1640px;
        padding: 0 40px;
        margin: auto;
    }

    /* Przyciski udostępniania w mediach społecznościowych */
    
}