/* Custom Checkout Steps Styles - Modern Industrial Design */
:root {
    /* Brand colors - matching cart design for consistency */
    --checkout-primary-color: #000000;
    --checkout-secondary-color: #333333;
    --checkout-accent-color: #FDB913;
    --checkout-accent-hover: #e9a912;
    --checkout-accent-light: rgba(253, 185, 19, 0.1);
    
    /* Neutral colors */
    --checkout-background: #ffffff;
    --checkout-light-bg: #f8f8f8;
    --checkout-border-color: #e6e6e6;
    --checkout-text-color: #222222;
    --checkout-light-text: #555555;
    
    /* Status colors */
    --checkout-success-color: #28a745;
    --checkout-warning-color: #f5a623;
    --checkout-error-color: #dc3545;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: var(--checkout-accent-light); }
    100% { background-color: transparent; }
}

@keyframes dotScale {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes lineProgress {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes hoverBorderProgress {
    0% {
        stroke-dasharray: 0 314;
        stroke-dashoffset: 314;
    }
    100% {
        stroke-dasharray: 314 314;
        stroke-dashoffset: 0;
    }
}

/* Checkout Steps Container */
.checkout-steps-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px auto;
    max-width: 800px;
    padding: 0 40px;
    position: relative;
    font-family: "Mukta", Sans-serif;
}

/* Progress Bar */
.steps-progress-bar {
    position: absolute;
    top: 21px;
    left: 50%;
    width: calc(100% - 240px);
    height: 1px;
    background: #E5E7EB;
    z-index: 1;
    transform: translateX(-50%);
    overflow: hidden;
}

.steps-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 21px;
    right: 21px;
    height: 100%;
    background: #333;
    transform-origin: left;
    transform: scaleX(0);
    transition: none;
}

/* Checkout Step */
.checkout-step {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 150px;
    margin: 0 30px;
    text-decoration: none;
}
.elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-checkout-review-order-table .cart_item td.product-name{
    text-align: left!important;
    display: flex
    ;
        flex-direction: column;
        min-width: 100%;
}
.product-quantity{
    margin-left:auto!important;
    margin-top: -20px;
}
/* Step Content */
.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Step Dot */
.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E5E7EB;
    position: relative;
    animation: dotScale 0.4s ease forwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
}

.step-dot::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 50%;
    border: 1px solid transparent;
    border-left-color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Step Border Progress */
.step-border-progress {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    pointer-events: none;
    opacity: 0;
    transform: rotate(-90deg);
}

.step-border-progress circle {
    fill: none;
    stroke: #333;
    stroke-width: 1;
    stroke-dasharray: 0 314;
    stroke-dashoffset: 314;
    transition: stroke-dasharray 0.3s ease, stroke-dashoffset 0.3s ease;
    transform-origin: center;
}

/* Step Icon */
.step-icon {
    transition: all 0.3s ease;
    opacity: 0.7;
    line-height: 1em;
}

.step-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
}

/* Step Text */
.step-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* Step Title */
.step-title {
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

/* Step Subtitle */
.step-subtitle {
    font-size: 11px;
    color: #9CA3AF;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Active Step */
.checkout-step.active .step-dot {
    background: #F3F9F7;
    border-color: #333;
    color: #333;
    transform: scale(1.05);
}

.checkout-step.active .step-icon {
    opacity: 1;
}

.checkout-step.active .step-title {
    color: #333;
    font-weight: 600;
}

.checkout-step.active .step-subtitle {
    color: #333;
    opacity: 0.8;
}

/* Completed Step */
.checkout-step.completed .step-dot {
    background: #333;
    border-color: #333;
    color: white;
}

.checkout-step.completed .step-icon {
    opacity: 1;
}

.checkout-step.completed .step-title {
    color: #333;
}

.checkout-step.completed .step-subtitle {
    color: #333;
    opacity: 0.8;
}

/* Disabled Step */
.checkout-step.disabled {
    cursor: not-allowed;
}

.checkout-step.disabled .step-dot {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #bebebe;
}

.checkout-step.disabled .step-title {
    color: #bebebe;
    opacity: 0.6;
}

.checkout-step.disabled .step-subtitle {
    color: #bebebe;
    opacity: 0.6;
}

/* Progress Bar Animation for Confirmation Step */
.checkout-steps:has(.checkout-step.active:nth-child(3)) .steps-progress-bar::before {
    width: calc(100% - 42px);
    animation: lineProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.checkout-steps:has(.checkout-step.active:nth-child(3)) .checkout-step:nth-child(3) .step-border-progress {
    opacity: 1;
    transform: rotate(-90deg);
}

.checkout-steps:has(.checkout-step.active:nth-child(3)) .checkout-step:nth-child(3) .step-border-progress circle {
    animation: hoverBorderProgress 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.2s;
}

/* Hover effects */
.checkout-step:not(.active):hover .step-border-progress {
    opacity: 1;
}

.checkout-step:not(.active):hover .step-border-progress circle {
    animation: hoverBorderProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.checkout-step:not(.active):hover .step-dot {
    transform: translateY(-1px);
}

.checkout-step:not(.active):hover .step-icon {
    opacity: 0.9;
}

/* Active and completed states should maintain the border */
.checkout-step.active .step-border-progress,
.checkout-step.completed .step-border-progress {
    opacity: 1;
}

.checkout-step.active .step-border-progress circle,
.checkout-step.completed .step-border-progress circle {
    stroke-dasharray: 314 314;
    stroke-dashoffset: 0;
}

/* Secure checkout badge */
.secure-checkout {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background: #F3F9F7;
    border: 1px solid rgba(11, 93, 76, 0.15);
    width: max-content;
    margin: 0 auto;
}

.secure-checkout svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
    flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .checkout-steps {
        max-width: 500px;
        padding: 0 30px;
        padding-left: 0px;
    }
    
    .steps-progress-bar {
        width: calc(100% - 180px);
    }
    
    .checkout-step {
        margin: 0 20px;
    }
    
    .step-dot {
        width: 40px;
        height: 40px;
    }
    
    .step-title {
        font-size: 12px;
    }
    
    .step-subtitle {
        display: none;
    }
    
    .secure-checkout {
        bottom: -45px;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .secure-checkout svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .checkout-steps {
        max-width: 360px;
        padding: 0 20px;
        padding-left: 0px;
        margin-bottom: 70px;
    }
    
    .steps-progress-bar {
        width: calc(100% - 140px);
        top: 20px;
    }
    
    .checkout-step {
        margin: 0 15px;
        width: auto;
    }
    
    .step-title {
        font-size: 12px;
    }
    
    .step-subtitle {
        display: none;
    }
    
    .step-dot {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }
    
    .secure-checkout {
        bottom: -45px;
        font-size: 10px;
    }
}

/* Checkout Steps Only Wrapper - For use with Elementor */
.custom-checkout-steps-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.custom-checkout-steps-wrapper .checkout-steps-container {
    margin-bottom: 0;
}

/* Make sure steps are visible when used with Elementor */
.elementor-widget-woocommerce-checkout-page + .custom-checkout-steps-wrapper,
.elementor-widget-woocommerce-checkout-page .custom-checkout-steps-wrapper {
    margin-bottom: 30px;
}

/* Ensure steps are properly spaced when placed above Elementor checkout */
.custom-checkout-steps-wrapper + .elementor-widget-woocommerce-checkout-page {
    margin-top: 30px;
}

/* Style the order summary in Elementor checkout widget */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table {
    border: 1px solid var(--checkout-border-color, #e6e6e6);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: var(--checkout-light-bg, #f8f8f8);
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table th,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--checkout-border-color, #e6e6e6);
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table .product-name {
    color: var(--checkout-text-color, #222222);
    font-weight: 500;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    color: var(--checkout-text-color, #222222);
    font-weight: 600;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    font-weight: 500;
    color: var(--checkout-light-text, #555555);
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 600;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table .order-total th,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table .order-total td {
    border-bottom: none;
    font-size: 1.1em;
    padding-top: 20px;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table .order-total td {
    color: var(--checkout-accent-color, #FDB913);
}

/* Fix for custom order review in Elementor */
.elementor-widget-woocommerce-checkout-page .custom-order-review {
    margin-bottom: 20px;
}

.elementor-widget-woocommerce-checkout-page .custom-order-review h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--checkout-text-color, #222222);
}

.elementor-widget-woocommerce-checkout-page .order-review-message {
    margin-bottom: 15px;
    color: var(--checkout-light-text, #555555);
}

/* Elementor Checkout Coupon Form Styles */
.woocommerce-form-coupon-toggle {
    margin-bottom: 20px;
}

.woocommerce-form-coupon {
    padding: 20px;
    border: 1px solid var(--neutral-200);
    border-radius: 5px;
    background-color: var(--neutral-50);
    margin-bottom: 30px;
}

.woocommerce-form-coupon p {
    margin-bottom: 15px;
}

.woocommerce-form-coupon .form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.woocommerce-form-coupon .form-row-first {
    flex: 1;
    min-width: 200px;
}

.woocommerce-form-coupon input[name="coupon_code"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--neutral-300);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.woocommerce-form-coupon input[name="coupon_code"]:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--brand-primary-rgb), 0.2);
}

.woocommerce-form-coupon .button {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.woocommerce-form-coupon .button:hover {
    background-color: var(--brand-primary-dark);
}

.coupon-success {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: var(--status-success-light);
    border-left: 4px solid var(--status-success);
    color: var(--status-success-dark);
    border-radius: 4px;
}

.coupon-error {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: var(--status-error-light);
    border-left: 4px solid var(--status-error);
    color: var(--status-error-dark);
    border-radius: 4px;
}

/* Fix for Elementor checkout widget */
.elementor-widget-woocommerce-checkout-page .woocommerce {
    max-width: 100%;
}

/* Prevent infinite loading spinner */
.blockUI.blockOverlay {
    position: absolute !important;
}

/* Ensure proper spacing in Elementor checkout */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout > * {
    width: 100%;
}

/* Ensure the order review is visible */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure the order review table is properly styled */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

/* Fix for any hidden elements */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-payment {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Checkout Sidebar Styles - Matching Cart Design */
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .e-checkout__order_review,
body.woocommerce-checkout .e-checkout__order_review-2,
.elementor-widget-woocommerce-checkout-page #order_review {
    background-color: #fff !important;
    border-radius: 15px !important;
    transition: all 0.5s ease !important;
    margin-bottom: 20px !important;
}

/* Order Summary Header */
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .e-checkout__column h3,
.elementor-widget-woocommerce-checkout-page h3#order_review_heading {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    position: relative !important;
    text-align: left !important;
    border-bottom: 1px solid #eee !important;
}

/* Custom Order Review Header */
body.woocommerce-checkout .custom-order-review h4,
.elementor-widget-woocommerce-checkout-page .custom-order-review h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 0 0 15px 0 !important;
}

/* Order Summary Table Styling */
body.woocommerce-checkout table.shop_table,
body.woocommerce-checkout .e-checkout__column table.shop_table,
.elementor-widget-woocommerce-checkout-page table.shop_table {
    border: none !important;
    margin: 0 0 0 0 !important;
    border-collapse: collapse !important;
    width: 100% !important;
    padding:0px!important;
    background-color: transparent !important;
}

body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td,
body.woocommerce-checkout .e-checkout__column table.shop_table th,
body.woocommerce-checkout .e-checkout__column table.shop_table td,
.elementor-widget-woocommerce-checkout-page table.shop_table th,
.elementor-widget-woocommerce-checkout-page table.shop_table td {
    padding: 12px 5px !important;
    border-top: none !important;
    border-bottom: 1px solid #eee !important;
    text-align: left !important;
    font-size: 15px !important;
    background-color: transparent !important;
}

body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout .e-checkout__column table.shop_table th,
.elementor-widget-woocommerce-checkout-page table.shop_table th {
    font-weight: normal !important;
    color: #555 !important;
}

body.woocommerce-checkout table.shop_table td,
body.woocommerce-checkout .e-checkout__column table.shop_table td,
.elementor-widget-woocommerce-checkout-page table.shop_table td {
    font-weight: 500 !important;
    color: #222 !important;
    text-align: right !important;
}

/* Product Details */
body.woocommerce-checkout table.shop_table .product-name,
body.woocommerce-checkout .e-checkout__column table.shop_table .product-name,
.elementor-widget-woocommerce-checkout-page table.shop_table .product-name {
    color: #555 !important;
    font-weight: normal !important;
    width: 100% !important;
}

body.woocommerce-checkout table.shop_table .product-total,
body.woocommerce-checkout .e-checkout__column table.shop_table .product-total,
.elementor-widget-woocommerce-checkout-page table.shop_table .product-total {
    font-weight: 500 !important;
    color: #222 !important;
    width: 30% !important;
}

/* Cart Item Addon Styling */
body.woocommerce-checkout .cart-item-addon,
.elementor-widget-woocommerce-checkout-page .cart-item-addon {
    display: flex !important;
    font-size: 13px !important;
    color: #666 !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

body.woocommerce-checkout .addon-label,
.elementor-widget-woocommerce-checkout-page .addon-label {
    font-style: italic !important;
    margin-right: 5px !important;
}

/* Cart Subtotal */
body.woocommerce-checkout table.shop_table .cart-subtotal th,
body.woocommerce-checkout table.shop_table .cart-subtotal td,
body.woocommerce-checkout .e-checkout__column table.shop_table .cart-subtotal th,
body.woocommerce-checkout .e-checkout__column table.shop_table .cart-subtotal td,
.elementor-widget-woocommerce-checkout-page table.shop_table .cart-subtotal th,
.elementor-widget-woocommerce-checkout-page table.shop_table .cart-subtotal td {
    font-weight: normal !important;
    color: #555 !important;
}

/* Discount Row Styling */
body.woocommerce-checkout table.shop_table .cart-discount,
body.woocommerce-checkout .e-checkout__column table.shop_table .cart-discount,
.elementor-widget-woocommerce-checkout-page table.shop_table .cart-discount {
    background-color: rgba(40, 167, 69, 0.05) !important;
    border-radius: 10px !important;
}

body.woocommerce-checkout table.shop_table .cart-discount th,
body.woocommerce-checkout table.shop_table .cart-discount td,
body.woocommerce-checkout .e-checkout__column table.shop_table .cart-discount th,
body.woocommerce-checkout .e-checkout__column table.shop_table .cart-discount td,
.elementor-widget-woocommerce-checkout-page table.shop_table .cart-discount th,
.elementor-widget-woocommerce-checkout-page table.shop_table .cart-discount td {
    padding: 10px 15px !important;
    border-bottom: none !important;
}

body.woocommerce-checkout table.shop_table .cart-discount th,
body.woocommerce-checkout .e-checkout__column table.shop_table .cart-discount th,
.elementor-widget-woocommerce-checkout-page table.shop_table .cart-discount th {
    color: #28a745 !important;
}

body.woocommerce-checkout table.shop_table .cart-discount td,
body.woocommerce-checkout .e-checkout__column table.shop_table .cart-discount td,
.elementor-widget-woocommerce-checkout-page table.shop_table .cart-discount td {
    color: #28a745 !important;
    font-weight: 700 !important;
}

body.woocommerce-checkout .woocommerce-remove-coupon,
.elementor-widget-woocommerce-checkout-page .woocommerce-remove-coupon {
    font-size: 12px !important;
    color: #666 !important;
    margin-left: 5px !important;
    text-decoration: none !important;
}

body.woocommerce-checkout .woocommerce-remove-coupon:hover,
.elementor-widget-woocommerce-checkout-page .woocommerce-remove-coupon:hover {
    color: #dc3545 !important;
}

/* Order Total */
body.woocommerce-checkout table.shop_table .order-total,
body.woocommerce-checkout .e-checkout__column table.shop_table .order-total,
.elementor-widget-woocommerce-checkout-page table.shop_table .order-total {
    margin-top: 5px !important;
    border-bottom: none !important;
}

body.woocommerce-checkout table.shop_table .order-total th,
body.woocommerce-checkout .e-checkout__column table.shop_table .order-total th,
.elementor-widget-woocommerce-checkout-page table.shop_table .order-total th {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #222 !important;
    padding-top: 20px !important;
    border-top: 2px solid #eee !important;
}

body.woocommerce-checkout table.shop_table .order-total td,
body.woocommerce-checkout .e-checkout__column table.shop_table .order-total td,
.elementor-widget-woocommerce-checkout-page table.shop_table .order-total td {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000 !important;
    padding-top: 20px !important;
    border-top: 2px solid #eee !important;
}

/* Shipping Methods */
body.woocommerce-checkout .woocommerce-shipping-methods,
body.woocommerce-checkout .e-checkout__column .woocommerce-shipping-methods,
.elementor-widget-woocommerce-checkout-page .woocommerce-shipping-methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-checkout .woocommerce-shipping-methods li,
body.woocommerce-checkout .e-checkout__column .woocommerce-shipping-methods li,
.elementor-widget-woocommerce-checkout-page .woocommerce-shipping-methods li {
    margin-bottom: 5px !important;
}

/* Coupon Box Styling - Matching Cart Design */
body.woocommerce-checkout .e-coupon-box,
.elementor-widget-woocommerce-checkout-page .e-coupon-box {
    margin-bottom: 20px !important;
    border-radius: 15px !important;
    background: #f7f7f7 !important;
    padding: 15px !important;
}

body.woocommerce-checkout .e-woocommerce-coupon-nudge,
.elementor-widget-woocommerce-checkout-page .e-woocommerce-coupon-nudge {
    display: none !important; /* Hide the toggle text */
}

body.woocommerce-checkout .e-coupon-anchor,
.elementor-widget-woocommerce-checkout-page .e-coupon-anchor {
    display: block !important; /* Always show coupon form */
}

body.woocommerce-checkout .e-coupon-anchor-description,
.elementor-widget-woocommerce-checkout-page .e-coupon-anchor-description {
    display: block !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
    color: #000 !important;
    font-weight: 600 !important;
}

body.woocommerce-checkout .coupon-container-grid,
.elementor-widget-woocommerce-checkout-page .coupon-container-grid {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body.woocommerce-checkout .coupon-col-1,
.elementor-widget-woocommerce-checkout-page .coupon-col-1 {
    flex: 1 !important;
    position: relative;
}
.elementor-widget-woocommerce-checkout-page .coupon-col-1 .fas{
    z-index: 3;
}
body.woocommerce-checkout #coupon_code,
.elementor-widget-woocommerce-checkout-page #coupon_code {
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    padding: 10px 15px 10px 35px !important;
    height: 45px !important;
    font-size: 15px !important;
    background: #fff !important;
    position: relative !important;
}

body.woocommerce-checkout .coupon-col-2,
.elementor-widget-woocommerce-checkout-page .coupon-col-2 {
    width: auto !important;
}

body.woocommerce-checkout .e-apply-coupon,
.elementor-widget-woocommerce-checkout-page .e-apply-coupon {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 80px !important;
    font-size: 15px !important;
    height: 45px !important;
}

body.woocommerce-checkout .e-apply-coupon:hover,
.elementor-widget-woocommerce-checkout-page .e-apply-coupon:hover {
    background: #333;
    box-shadow: var(--cart-shadow-sm);
}

/* Payment Methods Section */
body.woocommerce-checkout #payment,
body.woocommerce-checkout .e-checkout__order_review-2 #payment,
.elementor-widget-woocommerce-checkout-page #payment {
    background: transparent !important;
    border-radius: 15px !important;
    margin-top: 0 !important;
    border: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-checkout .e-checkout__order_review-2 #payment ul.payment_methods,
.elementor-widget-woocommerce-checkout-page #payment ul.payment_methods {
    padding: 0 !important;
    border-bottom: none !important;
}

body.woocommerce-checkout .wc_payment_method,
.elementor-widget-woocommerce-checkout-page .wc_payment_method {
    background-color: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    padding: 15px !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-checkout .wc_payment_method:hover,
.elementor-widget-woocommerce-checkout-page .wc_payment_method:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

body.woocommerce-checkout .wc_payment_method.active-payment-method,
.elementor-widget-woocommerce-checkout-page .wc_payment_method.active-payment-method {
    border-color: var(--checkout-accent-color) !important;
    box-shadow: 0 2px 8px rgba(253, 185, 19, 0.2) !important;
}

body.woocommerce-checkout .wc_payment_method label,
.elementor-widget-woocommerce-checkout-page .wc_payment_method label {
    font-weight: 600 !important;
    color: #222 !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin-left: 5px !important;
}

body.woocommerce-checkout #payment div.payment_box,
body.woocommerce-checkout .e-checkout__order_review-2 #payment div.payment_box,
.elementor-widget-woocommerce-checkout-page #payment div.payment_box {
    background-color: #f7f7f7 !important;
    border-radius: 10px !important;
    margin: 10px 0 0 !important;
    padding: 15px !important;
}

body.woocommerce-checkout #payment div.payment_box::before,
body.woocommerce-checkout .e-checkout__order_review-2 #payment div.payment_box::before,
.elementor-widget-woocommerce-checkout-page #payment div.payment_box::before {
}

body.woocommerce-checkout #payment div.payment_box p,
.elementor-widget-woocommerce-checkout-page #payment div.payment_box p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
}

/* Place Order Button */
body.woocommerce-checkout #payment .place-order,
body.woocommerce-checkout .e-checkout__order_review-2 #payment .place-order,
.elementor-widget-woocommerce-checkout-page #payment .place-order {
    padding: 20px 0 0 0 !important;
    margin-top: 20px !important;
    background: transparent !important;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout .e-checkout__order_review-2 #place_order,
.elementor-widget-woocommerce-checkout-page #place_order {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f9ba37 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 0 25px !important;
    height: 50px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout .e-checkout__order_review-2 #place_order:hover,
.elementor-widget-woocommerce-checkout-page #place_order:hover {
    background-color: #FFB300 !important;
}

body.woocommerce-checkout #place_order:before,
body.woocommerce-checkout .e-checkout__order_review-2 #place_order:before,
.elementor-widget-woocommerce-checkout-page #place_order:before {
    content: "" !important;
    background-image: url(/wp-content/uploads/2025/02/arrowbg-yellow.svg) !important;
    height: 33px !important;
    width: 33px !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translatey(-50%) !important;
    z-index: 1 !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    transition: all 0.3s ease-in-out !important;
}

body.woocommerce-checkout #place_order:after,
body.woocommerce-checkout .e-checkout__order_review-2 #place_order:after,
.elementor-widget-woocommerce-checkout-page #place_order:after {
    content: "" !important;
    background-image: url(/wp-content/uploads/2025/02/arrow-right.svg) !important;
    height: 33px !important;
    width: 33px !important;
    background-size: initial !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translatey(-50%) !important;
    z-index: 2 !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    transition: all 0.3s ease-in-out !important;
}

/* Privacy Policy Text */
body.woocommerce-checkout .woocommerce-privacy-policy-text,
.elementor-widget-woocommerce-checkout-page .woocommerce-privacy-policy-text {
    font-size: 13px !important;
    color: #666 !important;
    margin-bottom: 20px !important;
    background: #f7f7f7 !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a,
.elementor-widget-woocommerce-checkout-page .woocommerce-privacy-policy-text a {
    color: var(--checkout-accent-color) !important;
    text-decoration: none !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a:hover,
.elementor-widget-woocommerce-checkout-page .woocommerce-privacy-policy-text a:hover {
    text-decoration: underline !important;
}

/* Sticky Right Column */
body.woocommerce-checkout .e-sticky-right-column,
.elementor-widget-woocommerce-checkout-page .e-sticky-right-column {
    position: sticky !important;
    top: 30px !important;
}

/* Responsive Styles for Checkout Sidebar */
@media (max-width: 768px) {
    body.woocommerce-checkout #order_review,
    body.woocommerce-checkout .e-checkout__order_review,
    body.woocommerce-checkout .e-checkout__order_review-2,
    .elementor-widget-woocommerce-checkout-page #order_review {
        padding: 20px !important;
    }
    
    body.woocommerce-checkout .coupon-container-grid,
    .elementor-widget-woocommerce-checkout-page .coupon-container-grid {
        flex-direction: column !important;
    }
    
    body.woocommerce-checkout .coupon-col-1,
    body.woocommerce-checkout .coupon-col-2,
    .elementor-widget-woocommerce-checkout-page .coupon-col-1,
    .elementor-widget-woocommerce-checkout-page .coupon-col-2 {
        width: 100% !important;
    }
    
    body.woocommerce-checkout .e-apply-coupon,
    .elementor-widget-woocommerce-checkout-page .e-apply-coupon {
        width: 100% !important;
    }
    
    body.woocommerce-checkout #place_order,
    body.woocommerce-checkout .e-checkout__order_review-2 #place_order,
    .elementor-widget-woocommerce-checkout-page #place_order {
        font-size: 15px !important;
        height: 45px !important;
    }
}

@media (max-width: 480px) {
    body.woocommerce-checkout #order_review,
    body.woocommerce-checkout .e-checkout__order_review,
    body.woocommerce-checkout .e-checkout__order_review-2,
    .elementor-widget-woocommerce-checkout-page #order_review {
        padding: 15px !important;
    }
    
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout .e-checkout__column h3,
    .elementor-widget-woocommerce-checkout-page h3#order_review_heading {
        font-size: 16px !important;
    }
    
    body.woocommerce-checkout table.shop_table th,
    body.woocommerce-checkout table.shop_table td,
    body.woocommerce-checkout .e-checkout__column table.shop_table th,
    body.woocommerce-checkout .e-checkout__column table.shop_table td,
    .elementor-widget-woocommerce-checkout-page table.shop_table th,
    .elementor-widget-woocommerce-checkout-page table.shop_table td {
        padding: 10px 3px !important;
        font-size: 14px !important;
    }
    
    body.woocommerce-checkout table.shop_table .order-total th,
    body.woocommerce-checkout .e-checkout__column table.shop_table .order-total th,
    .elementor-widget-woocommerce-checkout-page table.shop_table .order-total th {
        font-size: 15px !important;
    }
    
    body.woocommerce-checkout table.shop_table .order-total td,
    body.woocommerce-checkout .e-checkout__column table.shop_table .order-total td,
    .elementor-widget-woocommerce-checkout-page table.shop_table .order-total td {
        font-size: 18px !important;
    }
}

/* JavaScript to enhance the payment method selection experience */
body:after {
    content: "" !important;
    display: none !important;
}



#payment{
    border-radius: 15px!important;
}

/* Backorder styling for checkout */
.backorder-label {
    display: inline-block;
    background-color: #FF9800;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.backorder-notice {
    background-color: #FFF3E0;
    border-left: 0px!important;
    border-radius:8px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-style: italic;
}

.backordered-items-list {
    margin: 10px 0 15px 20px;
    padding: 0;
    list-style-type: disc;
}

.backordered-items-list li {
    margin-bottom: 5px;
    color: #555;
}

/* Make BACKORDER label more prominent in checkout */
.woocommerce-checkout-review-order-table .backorder-label {
    display: inline-block !important;
    background-color: #f9ba37 !important;
    color: #000000 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    vertical-align: middle !important;
    margin-left: 0px;
    width: fit-content;
}

/* Ensure the backorder label is clearly visible in checkout */
.elementor-widget-woocommerce-checkout-page #order_review .backorder-label,
body.woocommerce-checkout #order_review .backorder-label,
body.woocommerce-checkout .e-checkout__order_review .backorder-label {
    margin-top: 5px !important;
    display: inline-block !important;
    clear: both !important;
    float: none !important;
}

/* Hide duplicate backorder labels in checkout */
.woocommerce-checkout-review-order-table .product-name .product-quantity + .backorder-label {
    display: none !important;
}

/* Fix for Elementor checkout */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table td.product-name > .backorder-label:nth-of-type(2) {
    display: none !important;
}