/* Hide default WooCommerce cart form */
.single-product form.cart {
    display: none !important;
}

/* Main form container */
.woostore_instant_order_form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px 20px;
    border: 1px solid #d9d9d9;
    padding: 15px;
    margin-bottom: -1px;
}

.woostore_information_title {
    width: 100%;
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

/* Form inputs */
.woostore_instant_order_form > input,
.woostore_instant_order_form > select,
.woostore_instant_order_form > textarea {
    width: calc(50% - 10px) !important;
    border: 1px solid #d9d9d9 !important;
    outline: none !important;
    border-radius: 5px !important;
    padding: 12px 10px !important;
    line-height: 1.5em !important;
    height: auto !important;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.woostore_instant_order_form > textarea {
    width: 100% !important;
    resize: vertical;
    min-height: 80px;
}

/* Coupon section */
#apply_coupon:hover {
    color: #0766e0 !important;
    background: #ffffff !important;
    border-color: #0766e0 !important;
}

#apply_coupon {
    color: #ffffff !important;
    transition: all .3s ease;
    border: 1px solid transparent;
    width: calc(127% - 20px);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    border-radius: 5px;
    padding: 18px;
    outline: none !important;
    position: relative;
    background: #007cba;
    cursor: pointer;
}

/* Checkout button */
.woostore_checkout {
    width: calc(80% - 20px);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    border-radius: 5px;
    padding: 18px;
    outline: none !important;
    position: relative;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woostore_checkout:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.woostore_checkout.loading {
    pointer-events: none !important;
}

/* Quantity controls */
.woostore_quantity {
    width: 20%;
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    overflow: hidden;
}

.woostore_quantity > input[type="number"] {
    width: 40px;
    padding: 5px;
    text-align: center;
    font-weight: 600;
    color: #000;
    border: none;
    outline: none;
    background: transparent;
}

#woostore_fixed_shipping_fe {
    display: none;
}

/* Remove number input spinners */
.woostore_quantity input::-webkit-outer-spin-button,
.woostore_quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woostore_quantity input[type="number"] {
    -moz-appearance: textfield;
}

/* Plus/Minus buttons */
.woostore_plus,
.woostore_minus {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.woostore_plus:hover,
.woostore_minus:hover {
    background: #e0e0e0;
}

.woostore_plus {
    border-left: 1px solid #d9d9d9;
}

.woostore_minus {
    border-right: 1px solid #d9d9d9;
}

/* Order summary */
.woostore_order_summary {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-top: none;
}

.woostore_order_summary_head {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.woostore_order_summary_head:hover {
    opacity: 0.9;
}

.woostore_order_summary_head > i {
    transition: transform 0.3s ease;
}

.woostore_order_summary.active .woostore_order_summary_head > i {
    transform: rotate(180deg);
}

.woostore_price_table {
    display: none;
    padding: 15px;
}

.woostore_order_summary.active .woostore_price_table {
    display: block;
}

.woostore_price_table table {
    margin-bottom: 0px;
    width: 100%;
    border-collapse: collapse;
}

.woostore_price_table > table td:first-child {
    text-align: left;
    padding: 8px 0;
}

.woostore_price_table > table td:last-child {
    text-align: right;
    padding: 8px 0;
}

.woostore_price_table > table td {
    border: none;
    font-size: 14px;
}

.woostore_price_table > table tr {
    border-bottom: 1px solid #d9d9d9;
}

.woostore_price_table > table tr:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 16px;
}

/* Button loader */
.woostore_btn_loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    display: none;
}

.woostore_checkout.loading .woostore_btn_loader {
    display: block;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Product variations */
.woostore_attributes {
    width: 100%;
}

.woostore_single_attr label input {
    display: none !important;
}

.woostore_single_attr {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
}

.woostore_single_attr label span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.woostore_single_attr label input:checked + span {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.woostore_single_attr label {
    margin-bottom: 0px !important;
}

span.woostore_attr_label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Footer icons */
.woostore_footer_icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.woostore_footer_icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.woostore_footer_icons a:hover {
    transform: scale(1.1);
}

.woostore_footer_icons i {
    font-size: 18px;
}

.woostore_footer_icons i.fa-phone {
    font-size: 18px;
}

/* Sticky footer */
.woostore_sticky_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #d9d9d9;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.woostore_buy_now {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    margin-right: 15px;
}

.woostore_buy_now:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

span.woostore_order_qty {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    color: #666;
}

/* Order loader */
.woostore_order_loader {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin: 20px auto;
}

.order_loader_container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Shipping methods */
ul.woostore_shipping_methods {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.woostore_shipping_methods li {
    margin-bottom: 8px;
}

.woostore_shipping_methods li label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.woostore_shipping_methods li label:hover {
    background: #f9f9f9;
}

span.woostore_free_shipping {
    color: #28a745;
    font-weight: 600;
}

/* Color palette for variations */
.woostore_single_attr label input:checked + span.woostore_color_palette {
    position: relative;
}

.woostore_single_attr label input:checked + span.woostore_color_palette::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* RTL Support */
.rtl .woostore_shipping_methods li label {
    text-align: right;
}

.rtl .woostore_price_table > table td:first-child {
    text-align: right;
}

.rtl .woostore_price_table > table td:last-child {
    text-align: left;
}

.rtl .woostore_order_qty {
    left: 2px;
}

.rtl .woostore_instant_order_form > input,
.rtl .woostore_instant_order_form > select,
.rtl .woostore_instant_order_form > textarea {
    text-align: right;
}

/* State dropdown styling */
#woostore_state {
    background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 5px top 55%;
    background-size: 15px;
    padding-right: 30px;
}

.rtl #woostore_state {
    background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat left 5px top 55%;
    background-size: 15px;
    padding-left: 30px;
    padding-right: 10px;
}

/* Coupon discount row */
.woostore_coupon_discount_row {
    display: none;
}

.woostore_coupon_discount_row.show {
    display: table-row;
}

/* Toast notifications */
.toast-center-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Form hide for desktop */
.form-hide-for-desktop {
    display: none !important;
}

#coupon_code {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-coupon-btn button {
    height: 40px;
    line-height: 0;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-coupon-btn button:hover {
    background: #005a87;
}

.disabled-btn {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Coupon field */
.coupon-field {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.custom-coupon {
    flex: 1;
}

.custom-coupon label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Disabled state */
.woostore_disabled,
.woostore_disabled * {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.woostore_disabled::before,
.woostore_disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* Notice styling */
.woostore_notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woostore_notice::before {
    content: '⚠️';
    font-size: 18px;
}

.woostore_notice.hidden {
    display: none;
}

/* Variations styling */
.woostore_variations {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.woostore_variations > li {
    margin-bottom: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    overflow: hidden;
}

.variation_title {
    position: relative;
}

.variation_title input {
    display: none;
}

.variation_title input + label {
    display: block;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.variation_title input + label::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #d9d9d9;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.variation_title input + label::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007cba;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.variation_title input + label:hover::after {
    opacity: 1;
}

.variation_title input:checked + label::after {
    opacity: 1;
}

.woostore_hidden {
    display: none !important;
}

/* Modern UI variations */
ul.woostore_variations.modern_ui {
    border: none;
}

.attribute_modern_ui {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
}

.attribute_modern_ui > h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.attribute_inner > input {
    display: none;
}

.attribute_inner > label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
    background: white;
}

.attribute_inner > label:hover {
    background: #f9f9f9;
}

.attribute_inner > input:checked + label {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
    background: #f0f8ff;
}

.attribute_inner.attr_color > label {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid #ddd;
    position: relative;
}

.woostore_variations.modern_ui .variation_selection {
    display: none;
}

/* RTL Support for variations */
.rtl .variation_title input + label {
    padding-right: 50px;
    padding-left: 15px;
}

.rtl .variation_title input + label::before {
    left: auto;
    right: 15px;
}

.rtl .variation_title input + label::after {
    left: auto;
    right: 20px;
}

.rtl .variation_title input + label:hover::after {
    opacity: 1;
}

.rtl .variation_title input:checked + label::after {
    opacity: 1;
}

.rtl ul.woostore_shipping_methods {
    text-align: right;
}

.rtl ul.woostore_shipping_methods li > label {
    flex-direction: row-reverse;
}

.rtl .woostore_notice::before {
    margin-right: 0;
    margin-left: 10px;
}

/* Placeholder */
.woostore_placeholder {
    width: 100%;
    height: 20px;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .woostore_footer_icons {
        display: flex;
        gap: 10px;
    }
    
    .woostore_buy_now {
        width: calc(100% - 112px) !important;
    }
    
    .woostore_checkout {
        width: calc(65% - 20px) !important;
    }
    
    .woostore_instant_order_form > input,
    .woostore_instant_order_form > select,
    .woostore_instant_order_form > textarea {
        width: 100% !important;
        font-size: 16px !important;
    }
    
    .woostore_quantity {
        width: 100px !important;
    }
    
    .woostore_variations > li {
        margin-bottom: 15px;
    }
    
    li.attribute_modern_ui .attribute_inner > label {
        margin-right: 5px;
        margin-bottom: 5px;
        padding: 6px 12px;
        font-size: 14px;
    }
}
