/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 .pi-custom-button{
     width:100%;
     display:block !important;
     margin-top:10px !important;
     margin-bottom:10px !important;
     text-align: center;
     cursor:pointer;
     padding:15px;
 }

 .pi-thumbnail img{
    max-width:60px !important;
 }

 .pi-quantity{
     max-width:70px;
     text-align: center;
 }

 #pi-loading{
     display:block;
     width:100%;
     height:100%;
     position:absolute;
     top:0;
     left:0;
     background:url(../img/loading.svg) rgba(0,0,0,0.2) no-repeat center center ;
 }

 .pi-attribute-label{
     text-transform: capitalize;
 }

 .pi-row{
     display:block;
     padding:10px 0;
 }

 .pi-row-flex{
    display:flex;
    padding:10px 0;
 }

 .pi-col-4{
    width:33%;
 }

 .pi-col-12{
     width:100%;
 }

 .pi-form-control{
     padding:10px;
     width:100%;
     display:block;
     border:1px solid #ccc;
     box-sizing: border-box;
 }

 .pi-btn{
     padding:10px 20px;
     background:#ee6443;
     color:#fff;
     border:0px;
     cursor:pointer;
 }

 #pi_tandc-error{
    position:absolute;
    right:0;
}

label.error{
    background-color:#F00 !important;
    color:#fff !important;
    padding:5px 10px;
}

#pi-eqw-enquiry-form{
    clear:both;
}

.button.add-to-enquiry-loop{
    margin:auto;
    max-width:100%;
}


@media only screen and (max-width: 768px) {
    .woocommerce table.shop_table_responsive thead,.woocommerce-page table.shop_table_responsive thead {
        display: none
    }
    
    .woocommerce table.shop_table_responsive tbody tr:first-child td:first-child,.woocommerce-page table.shop_table_responsive tbody tr:first-child td:first-child {
        border-top: 0
    }
    
    .woocommerce table.shop_table_responsive tbody th,.woocommerce-page table.shop_table_responsive tbody th {
        display: none
    }
    
    .woocommerce table.shop_table_responsive tr,.woocommerce-page table.shop_table_responsive tr {
        display: block
    }
    
    .woocommerce table.shop_table_responsive tr td,.woocommerce-page table.shop_table_responsive tr td {
        display: block;
        text-align: right!important
    }
    
    .woocommerce table.shop_table_responsive tr td.order-actions,.woocommerce-page table.shop_table_responsive tr td.order-actions {
        text-align: left!important
    }
    
    .woocommerce table.shop_table_responsive tr td::before,.woocommerce-page table.shop_table_responsive tr td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        float: left
    }

    .woocommerce table.shop_table_responsive tr td.product-thumbnail::before{
        content:"" !important;
    }
    
    .woocommerce table.shop_table_responsive tr td.actions::before,.woocommerce table.shop_table_responsive tr td.product-remove::before,.woocommerce-page table.shop_table_responsive tr td.actions::before,.woocommerce-page table.shop_table_responsive tr td.product-remove::before {
        display: none
    }
    
    .woocommerce table.shop_table_responsive tr:nth-child(2n) td,.woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
        background-color: rgba(0,0,0,.025)
    }
    
}

/** New cart table css design so we can avoid conflicts with themes */
.enquiry-cart-content-table{
    width:100%;
    border-spacing:0 15px;
    border: 0px !important;
    border: none !important;
    border-collapse: collapse !important; 
}

.enquiry-cart-content-table td{
    border:none !important;
    border-bottom:1px solid #ccc !important;
}

.enquiry-cart-content-table th{
    text-align:center;
    padding:10px 0px;
    background-color:#eee;
    border:0 !important;
}

.enquiry-cart-content-table td{
    text-align:center;
}

.enquiry-cart-content-table td textarea{
    padding:5px 10px;
    width:100%;
    resize:none;
    box-sizing: border-box;
}

.enquiry-cart-content-table .pi-eqw-product-thumb{
    margin:auto;
    max-width:100%;
    height:auto;
}

.enquiry-cart-content-table .woocommerce-cart-form__cart-item td.product-name a{
    text-decoration:none;
}

.enquiry-cart-content-table .woocommerce-cart-form__cart-item td{
    padding:10px;
}


.pi-remove-product{
    text-decoration:none;
}

@media(max-width:768px){

    .enquiry-cart-content-table thead{
        display:none;
    }

    .enquiry-cart-content-table .woocommerce-cart-form__cart-item{
        display:flex;
        flex-wrap:wrap;
    }

    .enquiry-cart-content-table .woocommerce-cart-form__cart-item td{
        display:block;
        width:100%;
    }

   .enquiry-cart-content-table .woocommerce-cart-form__cart-item td:not(.product-remove):not(.product-thumbnail):before {
    content: attr(data-title) ": ";
        font-weight: 700;
        float: left;
    }

    .enquiry-cart-content-table .woocommerce-cart-form__cart-item td.product-remove{
        width:50%;
        text-align:left;
    }
    
    .enquiry-cart-content-table .woocommerce-cart-form__cart-item td.product-thumbnail{
        width:50%;
    }
    
    .enquiry-cart-content-table .woocommerce-cart-form__cart-item td.product-thumbnail img{
        margin-right:0;
    }

    .enquiry-cart-content-table .woocommerce-cart-form__cart-item td.product-name,  .enquiry-cart-content-table .woocommerce-cart-form__cart-item td.product-price, .enquiry-cart-content-table .woocommerce-cart-form__cart-item td.product-quantity{
        text-align:right;
    }

    .enquiry-cart-content-table .woocommerce-cart-form__cart-item td.product-quantity input{
        display:inline-block;
        width:100px !important;
    }
}
/** end of cart table design */

#refresh-captcha{
    cursor:pointer;
    display:inline-block;
    margin-left:10px;
    width:30px;
    height:30px;
}

.captcha-image-container{
    display:flex;
    align-items:center;
}

.library-error{
    display: block;
    padding:10px;
    background:#f00;
    color:#fff;
    border-radius: 10px;
}

#captcha-image{
    border:1px solid #ccc;
    margin-left:10px;
}

.added-to-enq-cart:before{
    content:"\2713";
    color:inherit;
    margin-right:10px;
}

#pi-eqw-cart {
    position: fixed;
    z-index: 100000000;
    width: 40px;
    height: 40px;
}

#pi-eqw-cart.bottom-right {
    bottom: 20px;
    right: 20px;
}

#pi-eqw-cart.bottom-left {
    bottom: 20px;
    left: 20px;
}

#pi-eqw-cart.top-left {
    top: 20px;
    left: 20px;
}

#pi-eqw-cart.top-right {
    top: 20px;
    right: 20px;
}

#pi-eqw-cart .pi-count {
    position: absolute;
    top: -6px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: #000;
    color: #fff;
    font-size: 14px;
    text-align: center;
    border-radius: 10px;
}

#pi-eqw-cart.pi_icon_relative {
    position: relative;
    display: inline-block;
    bottom: auto;
    right: auto;
}

/** mini cart */
#pi-eqw-mini-cart{
    display:none;
    width:400px;
    position: fixed;
    background:#fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius:6px;
    overflow:hidden;
    z-index:1000000000;
    font-size:18px;
}

#pi-eqw-mini-cart.bottom-right{
    bottom:20px;
    right:20px;
}

#pi-eqw-mini-cart.bottom-left{
    bottom:20px;
    left:20px;
}

#pi-eqw-mini-cart.top-left{
    top:20px;
    left:20px;
}

#pi-eqw-mini-cart.top-right{
    top:20px;
    right:20px;
}

#pi-eqw-mini-cart header{
    padding:10px;
    background:#eee;
}

#pi-eqw-mini-cart content{
    padding:10px;
}

.pi-mini-cart-item{
    display:grid;
    grid-template-columns: 60px 2fr 20px;
    grid-gap:20px;
    margin-bottom:20px;
    align-items:center
}

.pi-mini-cart-item .thumbnail img{
    width:60px;
}

.pi-mini-cart-item .name-qty{
    margin-bottom:10px;
}

.pi-mini-cart-item .remove{
    width:20px;
}

.close-mini-cart{
    cursor:pointer;
    float:right;
    margin-right:10px;
    font-size:22px;
}

#pi-eqw-mini-cart content{
    position:relative;
}

#pi-eqw-mini-cart content.processing:after{
    content:"";
    display:block;
    position: absolute;
    width:100%;
    height:100%;
    top:0px;
    left:0px;
    background: rgba(200,200,200,0.5);
}

#pi-eqw-mini-cart footer{
    text-align:center;
    padding:10px;
}

#pi-eqw-mini-cart footer .button{
    padding:10px 20px;
}

.pi-remove-product{
    text-decoration: none;
}

@media(max-width:768px){
    #pi-eqw-mini-cart{
        width:100%;
        left:0px;
        bottom:0px;
    }
}
/* mini cart end */

#pi-enquiry-container:has(#pi-form-submitted-success) .enquiry-cart-content-table{
    display:none;
}

/** Modern card-based design for enquiry cart table - v2 */
.enquiry-cart-content-table-1 {
    width: 100%;
    border-spacing: 0 16px;
    border: none !important;
    border-collapse: collapse !important;
    margin-top: 20px;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Table Header Styling */
.enquiry-cart-content-table-1 thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.enquiry-cart-content-table-1 th {
    text-align: center;
    padding: 16px 12px;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
}

/* Table Row Styling (Card-like design) */
.enquiry-cart-content-table-1 tbody tr {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enquiry-cart-content-table-1 tbody tr:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #667eea !important;
}

/* Table Cell Styling */
.enquiry-cart-content-table-1 td {
    padding: 16px 12px !important;
    text-align: center;
    border: none !important;
    vertical-align: middle;
    font-size: 14px;
    color: #333333;
}

/* Product Remove Button */
.enquiry-cart-content-table-1 td.product-remove {
    padding: 16px 8px !important;
}

.enquiry-cart-content-table-1 .pi-remove-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fee;
    color: #e74c3c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.enquiry-cart-content-table-1 .pi-remove-product:hover {
    background: #e74c3c;
    color: #ffffff;
    transform: scale(1.1);
}

/* Product Thumbnail */
.enquiry-cart-content-table-1 td.product-thumbnail {
    padding: 12px !important;
}

.enquiry-cart-content-table-1 .pi-eqw-product-thumb {
    display: inline-block;
    max-width: 70px;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f8f8;
    padding: 4px;
}

/* Product Name and Details */
.enquiry-cart-content-table-1 td.product-name {
    text-align: left;
    padding: 16px 14px !important;
    font-weight: 500;
    max-width: 250px;
}

.enquiry-cart-content-table-1 td.product-name a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.enquiry-cart-content-table-1 td.product-name a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Product Price and Quantity */
.enquiry-cart-content-table-1 td.product-price,
.enquiry-cart-content-table-1 td.product-quantity {
    font-weight: 500;
}

.enquiry-cart-content-table-1 td.product-price {
    color: #764ba2;
    font-weight: 600;
    font-size: 15px;
}

/* Quantity Input */
.enquiry-cart-content-table-1 .pi-quantity {
    max-width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.enquiry-cart-content-table-1 .pi-quantity:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Textarea for Messages */
.enquiry-cart-content-table-1 td textarea {
    padding: 12px;
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    transition: all 0.2s ease-in-out;
    min-height: 80px;
    background: #fafafa;
}

.enquiry-cart-content-table-1 td textarea::placeholder {
    color: #999;
}

.enquiry-cart-content-table-1 td textarea:focus {
    background: #ffffff;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none;
}

/* SKU Column */
.enquiry-cart-content-table-1 td.product-sku {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f8f8f8;
    padding: 10px !important;
    border-radius: 4px;
    color: #666;
}

/* Message Column */
.enquiry-cart-content-table-1 td.product-message {
    max-width: 280px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enquiry-cart-content-table-1 {
        border-spacing: 0 12px;
        margin-top: 16px;
        margin-bottom: 24px;
    }

    .enquiry-cart-content-table-1 thead {
        display: none;
    }

    .enquiry-cart-content-table-1 tbody tr {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
        border-radius: 10px;
    }

    .enquiry-cart-content-table-1 td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .enquiry-cart-content-table-1 td:last-child {
        border-bottom: none !important;
    }

    .enquiry-cart-content-table-1 td:before {
        content: attr(data-title);
        font-weight: 600;
        color: #667eea;
        display: block;
        margin-bottom: 6px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .enquiry-cart-content-table-1 td.product-remove {
        width: auto;
        padding: 8px !important;
    }

    .enquiry-cart-content-table-1 td.product-thumbnail {
        width: auto;
        text-align: left;
        padding: 8px 0 !important;
    }

    .enquiry-cart-content-table-1 td.product-thumbnail img {
        max-width: 60px;
    }

    .enquiry-cart-content-table-1 td.product-name,
    .enquiry-cart-content-table-1 td.product-price,
    .enquiry-cart-content-table-1 td.product-sku,
    .enquiry-cart-content-table-1 td.product-quantity {
        text-align: left;
        padding: 8px 0 !important;
    }

    .enquiry-cart-content-table-1 td.product-quantity input {
        display: inline-block;
        width: 70px !important;
    }

    .enquiry-cart-content-table-1 td textarea {
        min-height: 70px;
        padding: 10px !important;
    }
}
/** end of modern cart table design */
