.field-blocks{
    position:relative;
    display:inline-block;
    width:100%;
}
.field-blocks .block{
    width:calc(25% - 10px);
    float:left;
    position:relative;
    padding:0 10px 0 0;
}

.field-blocks .block input,
.field-blocks .block textarea{
    width:100% !important;
}
.quantity_discount_block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-top: 10px;
}

.field-blocks {
    display: flex;
    flex-grow: 1;
}
.quantity_discount_block {
    border-bottom: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
}
.block {
    flex-grow: 1;
    margin-right: 10px;
}

.block:last-child {
    margin-right: 0;
}

.block input,
.block textarea {
    width: 100%;
    box-sizing: border-box;
}

.delete_quantity_discount {
    margin-left: 20px;
    height: fit-content;
}

.panel.active {
    display: block !important;
}

/*Preview block*/

.wpiqd-swatch {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    display: block;
    position:relative;
}

.wpiqd-swatch .reset_variations {
    display: none;
}

.wpiron-variables-solutions form,
.wpiron-variables-solutions .variations_form{
    margin-bottom: 0 !important;
}

.preview-block{
    width:calc(100% - 20px);
    position:relative;
    display: inline-block;
    padding:10px;
}
#quantity_discounts_preview{
    max-width: 500px;
    margin: 0 auto;
}
#quantity_discounts_preview_preview{
    max-width: 500px;
    margin: 0 auto;
}
.wpiqd-inner {
    justify-content: space-between;
}
.wpiqd-radio,
.wpiqd-middle{
    display: inline-block;
}
.wpiqd-middle {
    margin-left: 20px;
}
.wpiqd-right{
    float: right;
    text-align:right;
}

.wpiqd-inner {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 920px){
    .wpiqd-swatch.active .wpiqd-inner {
        display: grid;
        align-items: center;
    }
}

.one-block {
    flex-shrink: 0; /* Prevent the radio button container from shrinking */
}

.second-block {
    flex-grow: 1; /* Take up the remaining space */
    display: flex;
    justify-content: space-between; /* Distribute space between the middle and right sections */
    align-items: center;
}


.old-price{
    color: #c0c0c0;
}

.wpiqd-swatch {
    cursor: pointer;
    line-height:1.3;
}

.wpiqd-swatch:hover {
    background-color: unset;
    color: unset;
}

.wpiqd-swatch.active .wpiqd-radio span {
    background-color: white; /* Change the color of the custom radio button when active */
}
.blocks_3{
    display: inline-block;
    padding: 0 20px;
}
.blocks_3:first-child{
    padding-left:0;
}
.quantity-discounts-settings-label {
    display: inline-block;
    margin-right: 10px;
}

.wp-picker-container {
    display: inline-block;
    vertical-align: top;
}

.wpiqd-radio input[type="radio"] {
    display: none; /* Hide the default radio button */
}


/*Badges*/

.third-block.badge-inside{
    padding-right: 80px;
}

.third-block.badge-inside-no{
    padding-right: 0;
}

#badge-container{
    position: absolute;
    top: -25px;
    left: 50%; /* Centers it horizontally */
    transform: translateX(-50%); /* Shifts the badge container to the left by half its width */
    z-index: 999;
}


#badge-container.badge-price-star_container{
    position: absolute;
    top: -25px;
    right: -20px;
    left:inherit;
    transform: inherit;
    z-index: 999;
}

#badge-container.circle-badge_container{
    top: -12px;
    position: absolute;
    right: -10px;
    transform: inherit;
    left:inherit;
    z-index: 999;
}

.badge-price-star,
.badge-price-star:before,
.badge-price-star:after,
.badge-price-star .price {
    height: 5em !important;
    width: 5em !important;
    background: #d32f2f;
}

.badge-price-star:before,
.badge-price-star:after {
    content: "" !important;
    position: absolute !important;
}

.badge-price-star {
    margin: 20px 0 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    background-color: #e53935;
    transform-origin: center !important;
    transition: 0.3s all ease-out !important;
}

.badge-price-star:before {
    top: 0;
    left: 0;
    -webkit-transform: rotate(22.5deg);
    -moz-transform: rotate(22.5deg);
    -ms-transform: rotate(22.5deg);
    -o-transform: rotate(22.5deg);
    transform: rotate(22.5deg);
    z-index: 1;
}

.badge-price-star:after {
    top: 0;
    left: 0;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    background-color: #e53935;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
}

.badge-price-star .price {
    padding: 1em 0em;
    height: 3em; /* height minus padding */
    position: absolute;
    bottom: 0;
    margin-bottom:0 !important;
    display:grid;
    text-align: center;
    align-items: center;
    right: 0;
    -webkit-transform: rotate(-22.5deg);
    -moz-transform: rotate(-22.5deg);
    -ms-transform: rotate(-22.5deg);
    -o-transform: rotate(-22.5deg);
    transform: rotate(-22.5deg);
    z-index: 1; /* important so the text shows up */
}

.badge-price-star .price span {
    position: relative;
    z-index: 100;
    align-items: center;
    display: grid;
    text-align: center;
    color: #fff;
    font: 14px Sans-Serif;
    text-transform: uppercase;
}

.badge-price-star .price span.number {
    font-weight: bold;
    font-size: 1.625em;
    line-height: .9em;
    color: #ffebee;
}

.circle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font: 14px Sans-Serif;
    background-color: #e53935;
    width: 80px;
    height: 80px;
    text-align: center;
}

.rect-badge {
    display: inline-block;
    color: white;
    font: 14px Sans-Serif;
    background-color: #e53935;
    padding: 5px 10px;
    border-radius: 5px;
}

.ribbon-badge {
    position: relative;
    padding: 10px 40px;
    background-color: #e53935;
    color: white;
    display: inline-block;
    font-size: 16px;
    margin: 30px;
}
.ribbon-badge:before, .ribbon-badge:after {
    content: '';
    position: absolute;
    top: 0;
    font: 17px Sans-Serif;
    border: 20px solid transparent;
    z-index: -1;
}
.ribbon-badge:before {
    left: -40px;
    border-right-color: #e53935;
}
.ribbon-badge:after {
    right: -40px;
    border-left-color: #e53935;
}



.wpiqd-radio span {
    display: inline-block;
    height: 20px;
    width: 20px;
    border-width: 1px; /* Inactive border color */
    border-style: solid;
    border-radius: 50%; /* Circular border */
    position: relative;
    cursor: pointer;
    vertical-align: middle; /* Align with the text */
}

/* Style for the custom radio button when it's active/checked */
.wpiqd-radio input[type="radio"]:checked + span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 12px;
    width: 12px;
    border-radius: 50%;
}


/* Hover styles for the custom radio */
.wpiqd-radio span:hover {
    border-color: #aaa; /* Hover border color */
}

.badge-price-star_preview,
.circle-badge_preview,
.rect-badge_preview {
    display:none;
}
.badge-price-star_preview.active,
.circle-badge_preview.active,
.rect-badge_preview.active {
    display:flex;
}

.circle-badge_container{
    top:-8px !important;
}

.rect-badge_container{
    top: -7px !important;
}

#minmax_preview{
    padding:0 30px;
}

.wpiron-variables-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width:100%;
    gap: 10px; /* Adjust the gap between items as needed */
}

.wpiron-variables-item {
    flex: 1 1 45%; /* Make each item take up approximately 45% of the container width */
    display: flex;
    flex-direction: column;
    text-align: left;
}


.wpiron-variables-item select {
    width: 100%;
    max-width: 200px;
    font-size: 12px;
    padding: 5px;
    appearance: none; /* Remove default arrow */
    background-color: white;
    line-height:1;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="292.362" height="292.362" viewBox="0 0 292.362 292.362"><path fill="%23000" d="M287.77 69.233c-7.612-7.612-19.917-7.612-27.531 0L146.181 183.293 32.123 69.233c-7.614-7.612-19.919-7.612-27.531 0s-7.614 19.917 0 27.53l131.602 131.602c3.806 3.806 8.77 5.71 13.765 5.71s9.959-1.904 13.765-5.71L287.77 96.764c7.614-7.613 7.614-19.918 0-27.531z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
    cursor: pointer;
    box-sizing: border-box;
}

/* Container for the select dropdown when focused */
.wpiron-variables-item select:focus {
    border-color: #999;
    outline: none;
}

/* Placeholder text color */
.wpiron-variables-item select option {
    color: #000;
}

/* Additional styling for a smooth transition */
.wpiron-variables-item select {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Styling for the arrow */
.wpiron-variables-item select::-ms-expand {
    display: none; /* Hide default arrow in IE */
}

/* Container for the select dropdown when hovered */
.wpiron-variables-item select:hover {
    border-color: #777;
}

.reset_variations {
    margin-top: 10px; /* Add some space above the reset link */
    text-align: center;
}


.wpiron-notif-which-number{
    font-size: 11px;
    position: relative;
    display: inline-block;
    font-weight: bold;
}

.wpiron-variables-solutions{
    position: relative;
    margin-top:15px;
    display:none;
}
.wpiron-variables-solutions.active{
    display: inline-block;
}

.custom-quantity-block{
    width:100% !important;
}