/*////////////////////////////////FONTSTYLE//////////////////*/
.fontstylefront {
    align-items: center;
    cursor: pointer;
    display: inline-block;
    flex-direction: row;
    user-select: none;
    padding: 0px 15px;
    width: 100px;
}

.border {
    border: 2px solid blue !important;
}

/*.callibri{
	background-image: url("https://productoptions.barn2.com/wp-content/uploads/sites/37/2022/07/font-choice-Japan-150x150.png");
}*/
.fontname {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.fontstylefront .fontnameimage {
    background-position: 50%;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 15px;
    border-radius: 5px;
    border-style: solid;
    border-width: 0;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    flex: 0 0 auto;
    height: auto;
    left: 4px;
    margin: 2px;
    outline: none;
    top: 4px;
    transition-duration: .2s;
    transition-property: background-image, border-color, background-color;
    transition-timing-function: cubic-bezier(.2, .8, .4, 1);
    vertical-align: middle;
    /*width: 100%;*/
    margin-left: -15px;
    z-index: 999999;

}

label .wpo-image-button {
    display: flex;
    font-weight: 400;
    margin: 0;
    padding: 0;
    text-align: left;
}

/*////////////////////////////////////////////////////////////////*/

.custom_options {
    width: 100%;
    clear: both;
    margin-bottom: 20px;
}

.custom_options label {
    font-weight: bold;
    width: 100%;
    display: block;
    clear: both;
    vertical-align: top !important;
    float: left;
}

.custom_options .required {
    color: red;
}

.custom_options .price {
    font-weight: normal;
    font-size: 15px !important;
}

.cart {
    width: 100%;
}

.eoinput {
    width: 70%;
    /*border-radius: 5px;*/
}

.eocustomgroup {
    width: 100%;
    clear: both;
    margin-top: 15px;
}

.multi {
    height: 150px !important;
}

.sim_radio {
    margin-top: 5px;

    float: left;

    margin-right: 3px;
}

/*///////////////////////////////////////*/
.radiosquarecss {
    align-items: center;
    cursor: pointer;
    display: inline-block;
    flex-direction: row;
    user-select: none;
}

.radiosquarecss label {
    display: flex;
    font-weight: 400;
    margin: 0;
    padding: 0;
    text-align: left;

}

.radiosquarecss input {
    opacity: 0;
}

.radiosquarecss span.wpo-swatch-inner {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 15px;
    border-color: var(--wpo-input-border-color-alt);
    border-radius: 5px;
    border-style: solid;
    border-width: 0;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    flex: 0 0 auto;
    height: 30px;
    left: 4px;
    margin: 2px;
    outline: none;
    top: 4px;
    transition-duration: .2s;
    transition-property: background-image, border-color, background-color;
    transition-timing-function: cubic-bezier(.2, .8, .4, 1);
    vertical-align: middle;
    width: 30px;
    /*margin-left: -15px;*/
    z-index: 999;
    /*background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='17' height='13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.5 12.6-6.1-6 2.2-2.2 3.9 4L13.9.9l2.2 2.2-9.6 9.5Z' fill='%23FFF'/%3E%3C/svg%3E");*/
}

.background-image-black {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='17' height='13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.5 12.6-6.1-6 2.2-2.2 3.9 4L13.9.9l2.2 2.2-9.6 9.5Z' fill='black'/%3E%3C/svg%3E");
}

.background-image-white {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='17' height='13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.5 12.6-6.1-6 2.2-2.2 3.9 4L13.9.9l2.2 2.2-9.6 9.5Z' fill='%23FFF'/%3E%3C/svg%3E");
}

/*/////////////////////////////////////////////*/
.sim_radio_button {
    width: auto;
    margin-right: 20px;
    clear: both
}

div.radio img {
    border: solid 1px #bbb;
    padding: 2px;
    cursor: pointer;
}

div.radio label {
    font-family: arial;
}

/*input[type=radio]{ display: none; }*/
input[type=radio]:checked+img {
    border: solid 1px #ff0000;
}

.radio {
    width: auto;
    display: inline-block !important;
    cursor: pointer;
}

.custom_options .radio label {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.rowTitle {
    text-align: center;
    float: left;
    width: 80px;
    font-size: 14px;
    /*margin: 11px;*/

}

.radiosquarecss .rowTitle {
    margin-top: -23px;
    cursor: default;


}

.pricepadding {
    padding: 4px;
}

.custom_options .radio {
    width: 80px;
    text-align: center;
}


div.checkbox img {
    border: solid 1px #bbb;
    padding: 2px;
    margin-left: 5px;
    float: left;
    cursor: pointer;
}

div.checkbox label {
    font-family: arial;
    width: auto !important;
    float: left;
    margin-right: 10px !important;
}

/*input[type=radio]{ display: none; }*/
input[type=radio]:checked+img {
    border: solid 1px #ff0000;
}

.radio {
    width: auto;
    display: inline-block !important;
    cursor: pointer;
}

.custom_options .checkbox label {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.rowTitle {
    text-align: center;
    float: left;
    width: auto;
    font-size: 14px;

}

.radio .rowTitle {
    text-align: center;
    float: left;
    font-size: 14px;
    width: 100%;
}

.custom_options .checkbox {
    width: 100%;
    text-align: left;
    float: left;
    padding-top: 5px;
}

.custom_options .checkbox input[type="checkbox"] {
    margin-top: 8px;
    float: left;
}

.price_total {
    width: 100%;
    clear: both;
    margin-top: 20px;
    margin-bottom: 20px;
    float: left;
    font-size: 18px;
}

.tprice {
    width: 100%;
    float: left;
    margin-bottom: 20px;
}

.leftprice {
    color: #000;
    font-weight: bold;
    /* width: 150px */
    width: auto;
    float: left;
}

.rightprice {
    width: auto;
    float: left;
    font-weight: bold;
    color: black;
}

.datepick,
.timepick {
    width: 90%;
    float: left;
}

.ui-datepicker-trigger {
    cursor: pointer;
    float: right;
    /*display: none;*/
}

.woocommerce_order_items_wrapper table.woocommerce_order_items table.display_meta tr th,
.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr th {
    width: auto !important;
}

.variation dt.variation- {
    display: none;
}

.range_picker_min_value,
.range_picker_max_value {
    font-size: 12px;
    vertical-align: top;
}

.range_val {
    vertical-align: super;
}

.eocustomgroup .price {
    margin-top: 0px !important;
}

.eocustomgroup .radio .price {
    margin-top: -5px !important;
}

.eocustomgroup label {
    margin-bottom: 5px;
}







div.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Three columns */
    margin-right: -5px;
}


div .vertical {
    /* Styles for vertical layout */
    display: flex;
    flex-direction: column;
    margin-right: -5px;

}


.url_error_message {
    color: red;
    display: none;
}

.extension_error_message {
    color: red;
    display: none;
}



.woocommerce-product-gallery {
    opacity: 1 !important;
}

.radio_reset {
    cursor: pointer;
    font-size: 12px !important;
    border-radius: 5px !important;
}

select.eoop,
select.eoop option {
    font-weight: normal !important;
}


.addons_select_options {
    text-align: center;
}

.addons_select_options .wp-block-button__link {
    width: auto !important;
}

/* Match WooCommerce's .woocommerce-help-tip */
.tooltip_text {
    display: none;
    background-color: #464646;
    color: #fff;
    padding: 8px;
    border-radius: 3px;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /*top: 100%;   */
    /*left: 0;*/
    z-index: 9999;
}

.tooltip {
    display: inline-block !important;
    position: relative !important;
    width: 16px !important;
    height: 16px !important;
    margin: -1px 0 0 3px !important;
    /* Slight offset like WC */
    background: #666 !important;
    /* WC's default gray-blue */
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 16px !important;
    text-align: center !important;
    cursor: help !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
    /* WC's subtle inset */
    vertical-align: middle !important;
}

/* Match WC's popup (appears on hover) */
.tooltip::after {
    content: attr(data-tip);
    /* Use data-tip attribute for text */
    position: absolute !important;
    bottom: 100% !important;
    /* Appear above the icon */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    max-width: 250px !important;
    padding: 8px 12px !important;
    background: #333 !important;
    /* Dark background like WC */
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s, visibility 0.2s !important;
    margin-bottom: 5px !important;
    /* Gap below icon */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.tooltip::before {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    /* Arrow pointing up */
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 5px solid transparent !important;
    border-top-color: #333 !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s, visibility 0.2s !important;
}


/* Show the tooltip text on hover */
.tooltip:hover+.tooltip_text {
    display: inline-block;
    /* Show as block to enable positioning */
}

/* //reset  */
.reset_tooltip_text {
    cursor: pointer;
    display: none;
    background-color: #464646;
    color: #fff;
    padding: 8px;
    border-radius: 3px;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /*top: 100%;   */
    /*left: 0;*/
    z-index: 9999;
}

.fa:hover+.reset_tooltip_text {
    display: inline-block;
}

.number_error_message {
    display: none;
    color: red;
    font-size: 12px;
}

.remaining-stock-message {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    margin: 3px 0px 0px 3px;
    padding: 2px 5px;
    border-radius: 6px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #ffeeba;
    animation: fadeBlink 2s ease-in-out infinite;
}

/* Smooth fade in/out keyframes */
@keyframes fadeBlink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.vertical .sim_radio_button {
    display: flex;
    align-items: center;
}

.vertical .checkbox {
    display: flex;
    align-items: center;
}


/* //block checkout validation error message */

/* ================================================================
   Custom Option Out-of-Stock Error Message (Blocks & Classic Checkout)
   ================================================================ */

.pa-custom-stock-error {
    display: block;
    width: 100%;
    margin: 16px 0 8px;
    padding: 14px 18px;
    background: #faf0f0;
    border-left: 4px solid #d63638;
    border-radius: 6px;
    color: #5e1f1f;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    text-align: left;
    box-shadow: 0 2px 6px rgba(214, 54, 56, 0.08);
    animation: paStockErrorFadeIn 0.4s ease-out;
}

.pa-custom-stock-error strong {
    color: #b32d2e;
    font-weight: 600;
}

/* Optional icon (using dashicons – already loaded on checkout) */
.pa-custom-stock-error::before {
    content: "\f534";
    font-family: dashicons;
    margin-right: 10px;
    vertical-align: middle;
    font-size: 20px;
    line-height: 1;
    color: #d63638;
}

/* Dark mode support (if your site ever uses it) */
@media (prefers-color-scheme: dark) {
    .pa-custom-stock-error {
        background: #3b1e1e;
        color: #f5c6c6;
        border-left-color: #e24040;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .pa-custom-stock-error strong {
        color: #ff6b6b;
    }

    .pa-custom-stock-error::before {
        color: #ff6b6b;
    }
}

/* Fade-in animation */
@keyframes paStockErrorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ultra-safe: only targets Select2 containers that come AFTER your .multiple_fields select */
select.multiple_fields[multiple]+.select2-container {
    width: 70% !important;
    max-width: 100% !important;
}

/* Google Font styled select2 */
.eopa-font-preview {
    display: block;
    padding: 2px 0;
    font-size: 14px;
    line-height: 1.2;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] .eopa-font-preview {
    color: #fff;
}

.select2-container--default .select2-results__option {
    padding: 4px 10px;
}

/* Match Google Font Select2 size to standard selects */
.eopa-google-font-select+.select2-container--default {
    width: 70% !important;
}

.eopa-google-font-select+.select2-container--default .select2-selection--single {
    height: 38px;
    padding: 5px 10px;
    border: 1px solid #ddd;
}

.eopa-google-font-select+.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px;
    font-size: 14px;
    padding-left: 0;
}

.eopa-google-font-select+.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}