/* Wrapper */
.demo-order-profile-dropdown {
    display: table-cell;
    vertical-align: middle;
}

/* Toggle Area */
.demo-order-profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
     padding-bottom: 10px;
}

/* Avatar Circle */
.demo-order-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Username */
.demo-order-name {
    font-weight: 500;
}

/* Arrow */
.demo-order-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
    transition: 0.3s ease;
}

/* Dropdown Menu */
.demo-order-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    padding: 15px 0;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

/* Dropdown Header */
.demo-order-dropdown-header {
    padding: 0 15px 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.demo-order-dropdown-header p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #777;
}

/* Menu List */
.demo-order-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.demo-order-dropdown-list li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.2s ease;
}

.demo-order-dropdown-list li a:hover {
    background: #f5f5f5;
}

/* Logout */
.demo-order-logout {
    display: block;
    padding: 8px 15px;
    color: #e74c3c;
    text-decoration: none;
}

.demo-order-logout:hover {
    background: #fbeaea;
}

.demo-order-profile-dropdown.active .demo-order-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.demo-order-profile-dropdown.active .demo-order-arrow {
    transform: rotate(180deg);
}
.demo-order-header-login-btn {
    display: inline-block;
    padding: 8px 18px;
    /* background: #f37321; */
    /* color: #fff !important; */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    /* border: 2px solid #f37321; */
}


/* Hover open */
.demo-order-profile-dropdown:hover .demo-order-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow animation */
.demo-order-arrow {
    transition: transform 0.3s ease;
}

.demo-order-profile-dropdown:hover .demo-order-arrow {
    transform: rotate(180deg);
}

/* breadcrumbs Custom CSS start */

/* Breadcrumb Wrapper */
/* .breadcrumb {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
} */

/* Inner Container */
.breadcrumbs_inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 500;
}

/* Links */
.breadcrumbs_inner a {
    color: #e6ae48 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumbs_inner a:hover {
    color: #c8922f; /* slightly darker for hover */
    text-decoration: underline;
}

/* Separator */
.breadcrumbs_inner .delimiter {
    margin: 0 8px;
    color: #999;
}

/* Current Page */
.breadcrumbs_inner .current {
    color: #333;
    font-weight: 600;
}

/* breadcrumbs Custom CSS end */

/* ================================
   CART TABLE DESIGN
================================= */

.woocommerce-cart-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.woocommerce table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.woocommerce table.shop_table thead th {
    background: #f8f9fa;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.woocommerce table.shop_table tbody tr.cart_item {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border-radius: 10px;
}

.woocommerce table.shop_table td {
    padding: 18px 15px;
    vertical-align: middle;
    border-top: none;
}

/* Product Image */
.product-thumbnail img {
    border-radius: 10px;
    width: 80px;
}

/* Product Name */
.product-name a {
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.product-name a:hover {
    color: #e6ae48;
}

/* Remove Button */
.product-remove a.remove {
    background: #f8f9fa;
    color: #e6ae48 !important;
    font-size: 18px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    transition: 0.3s ease;
}

.product-remove a.remove:hover {
    background: #e6ae48;
    color: #fff !important;
}

/* ================================
   CART TOTALS CARD
================================= */

.cart_totals {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cart_totals h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.cart_totals table {
    border: none;
}

.cart_totals th {
    font-weight: 500;
}

.cart_totals .order-total {
    font-size: 18px;
}

.cart_totals .order-total strong {
    color: #e6ae48;
}
.cart_totals tr th {
    vertical-align: middle;
}

/* ================================
   RESPONSIVE
================================= */

@media (max-width: 768px) {
    .woocommerce-cart-form,
    .cart_totals {
        padding: 15px;
    }

    .quantity {
        width: 100px;
    }
}

/* Checkout page custom CSS start */
/* ===== MAIN WRAPPER ===== */
.custom-checkout-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* LEFT SIDE (Billing Form) */
.checkout-left {
    flex: 3;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* RIGHT SIDE (Order Summary) */
.checkout-right {
    flex: 2;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 30px;
}

/* SECTION HEADINGS */
.checkout-left h3,
.checkout-right h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f3f3;
}

/* ===== FORM FIELDS ===== */
.woocommerce-billing-fields__field-wrapper p {
    margin-bottom: 20px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

/* Focus Effect */
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #e6ae48;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230,174,72,0.15);
    outline: none;
}

/* Labels */
.woocommerce form .form-row label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* ===== ORDER TABLE ===== */
.woocommerce-checkout-review-order-table {
    border-collapse: collapse;
    width: 100%;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table th {
    font-weight: 600;
}

/* Highlight Total */
.order-total th,
.order-total td {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* Budget Highlight Rows */
/* .available-budget,
.remaining-balance {
    background: #faf7f0;
    font-weight: 600;
} */

/* ===== PAYMENT METHOD ===== */
.wc_payment_methods {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.wc_payment_methods label {
    font-weight: 500;
    cursor: pointer;
}

/* ===== DELIVERY SELECT ===== */
#delivery_preference,
#specific_delivery_date , #demo_sample_order_reason {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
}

#delivery_preference:focus,
#specific_delivery_date:focus ,#demo_sample_order_reason:focus {
    border-color: #e6ae48;
    box-shadow: 0 0 0 3px rgba(230,174,72,0.15);
    outline: none;
}

/* ===== ORDER TABLE CLEAN FIX ===== */

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* space between rows */
}

.woocommerce-checkout-review-order-table thead th {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-checkout-review-order-table tbody tr,
.woocommerce-checkout-review-order-table tfoot tr {
    background: #f9fafb;
    border-radius: 10px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 14px 16px;
}

.woocommerce-checkout-review-order-table tbody tr td:first-child,
.woocommerce-checkout-review-order-table tfoot tr th {
    text-align: left;
    border-radius: 10px 0 0 10px;
}

.woocommerce-checkout-review-order-table tbody tr td:last-child,
.woocommerce-checkout-review-order-table tfoot tr td {
    text-align: right;
    border-radius: 0 10px 10px 0;
}

/* Remove default borders */
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    border: none !important;
}
/* ===== FORCE FULL WIDTH FIELDS ===== */

#billing_company_field,
.woocommerce-additional-fields {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Add spacing above Additional Information */
.woocommerce-additional-fields {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}
.available-budget,
.deducted-amount,
.remaining-balance {
    background: #ffffff !important;
    border: 1px solid #eef0f4;
}

.available-budget td,
.deducted-amount td,
.remaining-balance td {
    font-weight: 600;
}

.remaining-balance td {
    color: #ef4444;
}
.mis-approval-row td,
.delivery-preference-row td {
    padding-top: 20px !important;
}

.mis-approval-row small {
    display: block;
    margin-top: 8px;
    background: #fff1f2;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
}
.woocommerce-checkout-review-order-table th.product-total {
    text-align: right;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .custom-checkout-wrapper {
        flex-direction: column;
    }

    .checkout-right {
        position: relative;
        top: 0;
    }
}
/* Checkout page custom CSS end */



/* Cart icon custom CSS */
.custom-cart-link::before {
    content: "";
    display: inline-block;
    width: 2em;
    height: 2em;
    margin-right: 6px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 32 32'><circle cx='12.667' cy='24.667' r='2'/><circle cx='23.333' cy='24.667' r='2'/><path fill-rule='evenodd' d='M9.285 10.036a1 1 0 0 1 .776-.37h15.272a1 1 0 0 1 .99 1.142l-1.333 9.333A1 1 0 0 1 24 21H12a1 1 0 0 1-.98-.797L9.083 10.87a1 1 0 0 1 .203-.834m2.005 1.63L12.814 19h10.319l1.047-7.333z' clip-rule='evenodd'/><path fill-rule='evenodd' d='M5.667 6.667a1 1 0 0 1 1-1h2.666a1 1 0 0 1 .984.82l.727 4a1 1 0 1 1-1.967.359l-.578-3.18H6.667a1 1 0 0 1-1-1' clip-rule='evenodd'/></svg>");
}
ul#menu-demo-order-footer-menu li a:hover {
    color: #f37321;
}
.footer_bottom {
    padding: 10px 20px;
}

/* Left column */
.footer_bottom .footer_text_main {
    float: left;
}

/* Right column */
.footer_bottom .menu-demo-order-footer-menu-container {
    float: right;
}

/* Remove default spacing */
.footer_bottom .footer_text_main p {
    margin: 0;
}

/* Menu reset */
.footer_bottom #menu-demo-order-footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* hide share button from product detail page */
.product_meta span.social_share_title {
    display: none !important;
}

.refurbished-single {
    display: inline-block;
    background: #d63638;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/*
* Start CSS for order listing page frontend 
*/
/* Table Wrapper */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Header */
.woocommerce-orders-table thead {
    background: #f9fafb;
}

.woocommerce-orders-table th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #eee;
}

/* Body Cells */
.woocommerce-orders-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

/* Row Hover */
.woocommerce-orders-table tbody tr:hover {
    background: #fafafa;
}

/* Status Colors */
.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    font-weight: 500;
}

.woocommerce-orders-table .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status {
    color: #f37321;
}

.woocommerce-orders-table .woocommerce-orders-table__row--status-pending-approval .woocommerce-orders-table__cell-order-status {
    color: #f59e0b;
}

.woocommerce-orders-table .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status {
    color: #dc3545;
}

/* Actions Column - FORCE INLINE */
.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Base Button Reset (important fix) */
.woocommerce-orders-table .woocommerce-button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

/* View Button */
.woocommerce-orders-table .woocommerce-button.view {
    background: #eef0f2;
    color: #333;
}

.woocommerce-orders-table .woocommerce-button.view:hover {
    background: #dcdfe3;
}

/* Track Button (Primary) */
.woocommerce-orders-table .woocommerce-button.track {
    background: #f37321;
    color: #fff;
}

.woocommerce-orders-table .woocommerce-button.track:hover {
    background: #d95f15;
}

/* Fix spacing if theme overrides */
.woocommerce-orders-table .woocommerce-button + .woocommerce-button {
    margin-left: 0;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*
* End Start CSS for order listing page frontend 
*/

/* My account custom field section */
.myaccount-custom-fields {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.myaccount-custom-fields .myaccount-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}
.myaccount-custom-fields .myaccount-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}
.myaccount-custom-fields .myaccount-fields-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}
.myaccount-custom-fields .myaccount-field-item {
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.myaccount-custom-fields .field-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.myaccount-custom-fields .field-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}
.myaccount-custom-fields .field-value img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
    margin-top: 5px;
}

div.woocommerce form.checkout .col2-set p.form-row label {display: block !important;}
.woocommerce input[type=text]:not(.qode_search_field):not(.qty), .woocommerce input[type=email], .woocommerce input[type=password], .woocommerce textarea, .woocommerce-page input[type=text]:not(.qode_search_field):not(.qty), .woocommerce-page input[type=email], .woocommerce-page input[type=tel], .woocommerce-page input[type=password], .woocommerce-page textarea{border-color: #ebebeb !important}
.wc-block-product-categories-list > li:nth-child(n+16) {display: none;}
.wc-block-product-categories-list.show-all > li {display: list-item;}
.category-load-more {cursor: pointer;display: inline-block;    background: transparent;color: #000;border-radius: 4px;border: 0;text-decoration: underline;}
/* Mobile */
@media (max-width: 600px) {
    .myaccount-fields-list {
        grid-template-columns: 1fr;
    }
}
.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-navigation {
    display: block;
    width: 20%;
}

.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content {
    width: 80%;
}

.woocommerce form.checkout table.shop_table td, .woocommerce form.checkout table.shop_table th {
    padding: 10px;
    vertical-align: baseline;
}