/* لإخفاء الأسهم من حقل له ID هو quantity_input فقط */

/* لمتصفحات Chrome, Safari, Edge, Opera */
#quantity_input::-webkit-outer-spin-button,
#quantity_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* لمتصفح Firefox */
#quantity_input {
    -moz-appearance: textfield;
    background: #e5ebef;
}

#cod-upsell{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 25; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
#cod-upsell-box{
    background-color: #fff;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

#cod-upsell-loader{
    display: none;
}

#cod-upsell-box .cod-upsell-heading {
    color: red;
    text-align: center;
    font-weight: bold;
    font-size: 45px;
    margin: 0;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 3px dotted #eee;
}
.cod-upsell-product-title {
  text-align: center;
  font-size: 24px;
  color: #000;
}

.cod-upsell-product img {
    margin: 20px auto;
    display: block;
}

.cod-upsell-product .price {
    display: block;
    text-align: center;
    color: red;
    margin-bottom: 25px;
}
#upsell-submit button {
  display: block;
  margin: 20px auto;
  color: #fff;
  background-color: #4caf50;
  padding: 15px 50px;
  font-size: 30px;
  border: none;
}
#upsell-submit #cod-upsell-cancel {
    background-color: transparent;
    color: #bababa;
    padding: 0;
    font-size: 20px;
}

#upsell-submit button:hover {
    cursor: pointer;
}
#upsell-submit #cod-add-upsell:hover {
  background-color: #222;
}
#upsell-submit #cod-upsell-cancel:hover {
  color: #555;
}

.orderform-checkout-title {
    text-align: center;
}
.orderform-checkout-title h3{
    padding: 0 20px;
    display: inline-block;
    color: #000;
    font-size: 16px;
}

.orderform-field {
    margin: 0;
}

#orderform_state .variations td.value {
    width: initial;
}
#confirm_order{
    background-color: #259bea;
    border: none;
    color: #fff !important;
    height: 50px;
    line-height: 50px;
    padding: 0;
    overflow: hidden;
}

#decrease_quantity,#quantity_input,#increase_quantity{
    color: black;
    font-size: 20px;
    text-align: center;
    line-height: 46px;
    cursor: pointer;
    line-height: 46px;


}
#orderform_woo_radio{
    width: 15px!important;
    height: 15px!important;
}

#orderform_state,
#orderform_city {
    cursor: pointer;
    color: #888;
}

span#orderform_h_o {
    line-height: 50px;
    font-size: 16px;
}
span#orderform_h_o i {
    font-size: 20px;
    color: #bce0f7;
    margin-right: 5px;
}

div#orderform_h_left {
    float: right;
}

div#orderform_h_left i {
    color: #bce0f7;
    line-height: 50px;
    font-size: 25px;
}
div#orderform_h_right {
    float: left;
}
div#orderform_history {
    height: 50px;
    cursor: pointer;
    border-bottom: 2px solid #bce0f7;
    background: #ffc107;
    padding: 0 10px;
    margin-bottom: 0;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

#processing_gif {
    /* 1. اجعلها في وضع ثابت فوق كل العناصر الأخرى */
    position: fixed;
    z-index: 9999; /* رقم عالي لضمان بقائها في الأعلى */

    /* 2. ضعها في منتصف الشاشة تمامًا */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* 3. (اختياري) أضف خلفية وتنسيقات لتحسين المظهر */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);

    /* 4. (مهم) اجعلها مخفية بشكل افتراضي */
    display: none;
}

/* (اختياري) تأكد من أن الفيديو أو الصورة تأخذ حجمًا مناسبًا */
#processing_gif video,
#processing_gif img {
    max-width: 80px; /* حدد الحجم الذي تراه مناسبًا */
    height: auto;
    display: block;
}

.form-qte {
    display: grid;
    grid-template-columns: 35px 50px 35px;
    border: 2px solid #eae7f7;
    border-radius: 3px;
}
#increase_quantity {
    border-left: 2px solid #bce0f7;
    border-right: 0;
    border-top-left-radius: 100%;
    border-bottom-left-radius: 100%;
    background-color: #ffdec4;
}
#decrease_quantity {
    border-right: 2px solid #bce0f7;
    border-left: 0;
    border-top-right-radius: 100%;
    border-bottom-right-radius: 100%;
    background-color: #ffdec4;
}


select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    padding-right: 1em !important;
    padding-left: 1em !important;


    cursor: pointer;
    background-size: 16px;
    background-position: calc(100% - (100% - .5em)) 50% !important;
}
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.woocommerce div.product .product_meta {
    border-top: none!important;
}


#order_item_quantity {
    display: inline-block;
    font-size: 12px;
    height: 18px;
    line-height: 18px;
    padding: 0 3px;
    background-color: #259bea;
    border-radius: 3px;
    color: #fff;
    font-weight: bold;
}
#order_item_quantity:before {
    content: 'x ';
}
#shipping_free span {
    display: inline-block;
    font-size: 15px;
    height: 20px;
    line-height: 20px;
    padding: 0 7px;
    background-color: #259bea;
    border-radius: 3px;
    color: #fff;
}
.summary-product-title {
    font-weight: bold !important;
}
.summary-select-state {
    font-size: 14px;
    opacity: .8;
}
.currency_symbol {
    display: none;
}

#shipping_methods {
    font-size: 14px;
    margin-left: 10px;
    opacity: .75;
}

/* -----------------------------------------
     Global Mediaqueries
----------------------------------------- */


@media (max-width: 767px) {

    #upsell-submit button {
        padding: 12px 25px;
        font-size: 20px;
    }
    #cod-upsell-box .cod-upsell-heading {
        font-size: 36px;
    }
}

@media (max-width: 488px) {

    div#orderform_history {
        margin-top: 10px;
        margin-left: 0;
        margin-right: 0;
        padding: 0 5px;
    }

}

@media (max-width: 417px ) {
    #confirm_order, .form-qte {
        grid-template-columns: 30px 35px 30px;
    }

}

.radio-variation-prices {
    margin-top: 10px;
}

.radio-variation-prices tbody {
    display: grid;
    background: #f1f9ff;
    padding: 10px;
    border-radius: 3px;
}
.radio-variation-prices tr {
    position: relative;
    border: 2px solid #bce0f7;
    margin: 3px 0;
    border-radius: 5px;
    padding: 5px 15px;
    background: white;
    grid-column-gap: 0.5rem;
    flex-direction: row;
    align-items: center;
    display: flex;
    cursor: pointer;
}
.radio-variation-prices tr td:last-child {
    margin-left: auto;
}

.radio-variation-prices input[type="radio"] {
    position : relative;
}
.radio-variation-prices  input[type="radio"]:before {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 30px;
    display: inline-block;
    background: #fff;
    border: 2px solid #ddd;
    transition: all .1s ease-in-out 0s;
    margin-top: -5px;
    margin-left: -5px;
}
.radio-variation-prices  input[type="radio"]:checked::before {
    width: 30px;
    height: 30px;
    border-color: #259bea;
    content: "";
    text-align: center;
    display: inline-block;
    background: #259bea;
    color: white;

}
.radio-variation-prices  input[type="radio"]:checked::after {
    content: '';
    display: block;
    position: absolute;
    top: 0px;
    left: 6px;
    width: 9px;
    height: 17px;
    border: 2px  solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.radio-variation-prices tr.checked-var {
    border-color: #259bea !important;
}
.variation-prices:not(.radio-variation-prices) .checked::after {
    top: 13px;
}
.rtl .radio-variation-prices input[type="radio"]:checked::after {
    right: 6px;
    left: auto;
}

.woocommerce div.product form.cart {
    margin-bottom: 0
}

#order_summary_section table {
    border : 0px solid rgba(0, 0, 0, .1);
}
.variation-price-savings {
    display: inline-block;
    border-radius: 3px;
    font-size: 15px;
    line-height: 31px;
    padding: 0 7px;
    margin-left: 5px;
    background-color: #6e32ff;
    background-image: url(assets/img/button-bg.svg);
    color: #fff;
    font-weight: 700;
    background-position-x: center;
}
/* ---------------------------------------------------------------- */
/* ------------------        ANIMATIONS        -------------------- */
/* ---------------------------------------------------------------- */

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 3s;
}


.variation-error-animation {
    animation: shake 0.4s ease-in-out;
}



@keyframes tada {
    0% {
        transform: scale3d(1, 1, 1) rotate(0deg);
    }

    10%, 20%{
        transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
    }

    30%, 50%, 70%, 90% {
        transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
    }

    40%, 60%  ,80%{
        transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
    }

    100% {
        transform: scale3d(1, 1, 1) rotate(0deg); /* توقف عند 0° */
    }
}

.tada {
    animation: tada 1s ease both;
}



