@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//bids.attradeprice.co.uk/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.0.6") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//bids.attradeprice.co.uk/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//bids.attradeprice.co.uk/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//bids.attradeprice.co.uk/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//bids.attradeprice.co.uk/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//bids.attradeprice.co.uk/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//bids.attradeprice.co.uk/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//bids.attradeprice.co.uk/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//bids.attradeprice.co.uk/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-text-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(40,82,98);
	--wd-text-font-size: 14px;
	--wd-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-color: rgb(40,82,98);
	--wd-entities-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: rgb(40,82,98);
	--wd-entities-title-color-hover: rgb(59, 112, 145);
	--wd-alternative-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: rgb(40,82,98);
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-primary-color: rgb(40,82,98);
	--wd-alternative-color: rgb(61,144,150);
	--wd-link-color: rgb(40,82,98);
	--wd-link-color-hover: rgb(61,144,150);
	--btn-default-bgcolor: rgb(40,82,98);
	--btn-default-bgcolor-hover: rgb(62,142,153);
	--btn-default-color: rgb(255,255,255);
	--btn-default-color-hover: rgb(255,255,255);
	--btn-accented-bgcolor: rgb(40,82,98);
	--btn-accented-bgcolor-hover: rgb(60,143,147);
	--wd-form-brd-width: 2px;
	--notices-success-bg: rgb(40,82,98);
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
}
.wd-popup.wd-age-verify {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: url(https://bids.attradeprice.co.uk/wp-content/uploads/2021/08/promo-popup.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	--wd-popup-width: 800px;
	--wd-popup-padding: 15px;
}
.woodmart-woocommerce-layered-nav .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title {
	background-color: #0a0a0a;
	background-image: url(https://bids.attradeprice.co.uk/wp-content/uploads/2025/02/tractor-building-materials-on-construction-site-2023-11-27-05-17-20-utc-copy-scaled.jpeg);
	background-size: cover;
	background-position: center center;
}
.wd-footer {
	background-color: rgb(255,255,255);
	background-image: none;
}
html .product-image-summary-wrap .product_title, html .wd-single-title .product_title {
	font-weight: 600;
}
.wd-popup.popup-quick-view {
	--wd-popup-width: 920px;
}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 0px;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 35px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-bottom-active: -1px;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-accented-box-shadow-hover: inset 0 -2px 0 rgba(0, 0, 0, .15);
--wd-brd-radius: 8px;
}

@media (min-width: 1239px) {
.platform-Windows .wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}

@media (min-width: 1222px) {
html:not(.platform-Windows) .wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


div.quantity {
    --wd-form-height: 42px;
    display: inline-flex;
    vertical-align: top;
    white-space: nowrap;
    font-size: 40px;  /* Add 'px' to specify pixels as the unit */
}

div.quantity input[type="number"] {
width: 120px;
border-radius: 0;
border-right: none;
border-left: none;
}

:is(.btn, .button, button, [type="submit"], [type="button"]) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    outline: none;
    border-radius: var(--btn-brd-radius, 0px);
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    line-height: 1.2;
    cursor: pointer;
    transition: all .25s ease;
    color: var(--btn-color, #ffffff);
    border: var(--btn-brd-width, 0px) var(--btn-brd-style, solid) var(--btn-brd-color, #E9E9E9);
    background-color: var(--btn-bgcolor, #145264);
    box-shadow: var(--btn-box-shadow, unset);
    text-transform: var(--btn-transform, uppercase);
    font-weight: var(--btn-font-weight, 600);
    font-family: var(--btn-font-family, inherit);
    font-style: var(--btn-font-style, unset);
    padding: var(--btn-padding, 5px 20px);
    min-height: var(--btn-height, 42px);
    font-size: var(--btn-font-size, 16px);
}

<style>
.ywcact-sealed-auction {
    display: none !important;
}
</style>

<style>
.ywcact-current-bid-sealed {
    display: none !important;
}
</style>

/* --- Final Smart Full Width Auction Page --- */

/* Completely neutralize Woodmart grid */
.single-product .product-image-summary-wrap {
    display: block !important;
}

/* Hide empty product images div */
.single-product .product-images {
    display: none !important;
}

/* Make the summary (content) full width */
.single-product .summary.entry-summary {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Full Width Wrapper */
.single-product .fullwidth-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Center Page Heading */
.fullwidth-wrapper h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Materials Table */
.materials-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.materials-table th, .materials-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 14px;
}

.materials-table th {
    background-color: #f5f7fa;
    font-weight: bold;
}

.materials-table tr:hover {
    background-color: #f9f9f9;
}

/* Input fields */
input[type="number"], input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Overall total */
#overall_total_price {
    border: 2px solid #0071a1;
    background: #eef9ff;
    font-size: 18px;
    font-weight: bold;
    color: #0071a1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

/* Submit Button */
button.button {
    background-color: #28a745;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: block;
    margin: 30px auto 0;
    transition: background-color 0.3s;
}

button.button:hover {
    background-color: #218838;
}

/* Mobile Improvements */
@media screen and (max-width: 768px) {
    .materials-table th, .materials-table td {
        padding: 8px;
        font-size: 13px;
    }
    button.button {
        width: 100%;
        font-size: 18px;
    }
}

a[href="#tab-yith-wcact-bid-tab"],
#tab-yith-wcact-bid-tab {
    display: none !important;
}

#tab-description {
    display: block !important;
    opacity: 1 !important;
}

.wrapp-product-price {
    display: none !important;
}

/* Hide current bid and reverse auction messages */
.ywcact-current-bid, 
.ywcact-reserve-message, 
.price,
span.amount,
.woocommerce-Price-amount {
    display: none !important;
}

/* Hide Bids tab (desktop and mobile) */
li#tab-title-yith-wcact-bid-tab,
#tab-yith-wcact-bid-tab,
#tab-item-title-yith-wcact-bid-tab {
    display: none !important;
}

form .remove-quote-button {
    background-color: #cc0000 !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

form .remove-quote-button:hover {
    background-color: #a30000 !important;
    cursor: pointer;
}

form .remove-quote-button .dashicons {
    font-size: 18px;
    line-height: 1;
}

.smart-remove-quote-button {
    background-color: #dc3545;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.smart-remove-quote-button:hover {
    background-color: #c82333;
}

/* --- Style for the "Submit Material Prices" Button --- */

button[name="submit_prices"] {
    background-color: #145464 !important; /* A clear, vibrant green */
    color: #ffffff !important; /* White text */
    border: none !important; /* Removes any default border */
    padding: 12px 24px !important; /* Ensures consistent padding */
    border-radius: 6px !important; /* Gives it slightly rounded corners */
}

/* Make the button slightly darker when hovered over */
button[name="submit_prices"]:hover {
    background-color: #ffc43d !important; /* A darker green */
}

/* Hide ended auction products from the carousel */
.wd-carousel-item:has(.ywcact-auction-ended-loop) {
    display: none !important;
}

/* Custom CSS for Merchant Notes to look like a messenger */

/* Brand Color Variable (for easier management) */
:root {
    --atp-brand-color: #2b5062;
    --atp-brand-color-light: #e8eff1; /* A lighter shade for backgrounds */
    --atp-brand-color-dark: #1f3d4a; /* A darker shade for hover/accents */
}

/* Overall container for the chat history */
.atp-chat-history-wrapper {
    margin-top: 15px; /* Space above the history section */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fdfdfd;
    overflow: hidden; /* Ensures rounded corners */
}

/* Header for the chat history (always visible) */
.atp-chat-header {
    background-color: var(--atp-brand-color); /* Your brand color */
    color: white;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer; /* Indicates it's clickable */
    position: relative;
    border-bottom: 1px solid var(--atp-brand-color-dark);
}

.atp-chat-header:hover {
    background-color: var(--atp-brand-color-dark);
}

.atp-chat-header .dashicons {
    color: white;
    font-size: 18px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.atp-chat-header.collapsed .dashicons {
    transform: rotate(-90deg); /* Rotate icon for collapsed state */
}

/* New message notification badge */
.atp-new-message-badge {
    background-color: #ff5252; /* Bright red for new messages */
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 10px;
    margin-left: 8px;
    animation: pulse-red 1.5s infinite; /* Animation for attention */
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}


/* Main chat message container (collapsible part) */
.atp-chat-content-area {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between messages */
    max-height: 350px; /* Max height for scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 15px;
    background-color: #fdfdfd; /* Light background for chat area */
    border-top: 1px solid #e9e9e9;
}

/* Individual chat bubble styling */
.atp-chat-bubble {
    padding: 10px 15px;
    border-radius: 18px; /* More rounded bubbles */
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08); /* Slightly stronger shadow */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 75%; /* Limit bubble width */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Styling for messages sent by the Customer (incoming from main site) */
.atp-chat-customer {
    background-color: #e0e0e0; /* Neutral grey for incoming */
    color: #333;
    align-self: flex-start; /* Aligns to the left */
    border-bottom-left-radius: 4px; /* Slightly less rounded on the bottom left for the 'tail' */
}

/* Styling for messages sent by the Merchant (outgoing from this site) */
.atp-chat-merchant {
    background-color: #d4edda; /* Light green for outgoing (like WhatsApp) */
    color: #333;
    align-self: flex-end; /* Aligns to the right */
    border-bottom-right-radius: 4px; /* Slightly less rounded on the bottom right for the 'tail' */
}

/* Meta information (author and time) */
.atp-chat-meta {
    font-size: 11px;
    color: #777;
    margin-top: 5px;
    display: flex;
    gap: 8px; /* Space between author and time */
    opacity: 0.9; /* Slightly faded */
}

.atp-chat-customer .atp-chat-meta {
    justify-content: flex-start; /* Align meta to left for customer notes */
}

.atp-chat-merchant .atp-chat-meta {
    justify-content: flex-end; /* Align meta to right for merchant notes */
}

.atp-chat-author {
    font-weight: bold;
    text-transform: capitalize; /* Ensures "customer" or "merchant" are capitalized */
}

/* Styles for the Send Message form */
.atp-merchant-note-form-row td {
    padding: 15px;
    background: #f0f6ff; /* Light blue background for form area */
    border-top: 1px dashed #d0d0d0;
    border-left: 4px solid var(--atp-brand-color); /* Brand color left border */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
}
.atp-merchant-note-form-row h4 {
    margin-top:0;
    color: var(--atp-brand-color);
    margin-bottom: 10px;
}
.atp-merchant-note-form-row textarea {
    width:100%;
    margin-bottom:10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    resize: vertical;
}
.atp-merchant-note-form-row button.button {
    background-color: var(--atp-brand-color) !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
.atp-merchant-note-form-row button.button:hover {
    background-color: var(--atp-brand-color-dark) !important;
}

/* --- Styles for Collapsible Headers --- */
.atp-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #0056b3;
    transition: background-color 0.2s;
}

.atp-collapsible-header:hover {
    background-color: rgba(0, 115, 230, 0.05);
}

.atp-collapsible-header .dashicons {
    transition: transform 0.3s ease-in-out;
}

.atp-collapsible-header.collapsed .dashicons {
    transform: rotate(-90deg);
}

/* --- New Messaging/Tabs Interface --- */
.atp-messaging-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
}
ul.atp-messaging-tabs {
    display: flex;
    list-style: none;
    margin: 0 !important;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f7f7f7;
}
ul.atp-messaging-tabs li {
    margin: 0 !important;
    padding: 0;
}
ul.atp-messaging-tabs li a {
    display: block;
    padding: 10px 15px;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px; /* Overlaps the container border */
    position: relative;
}
ul.atp-messaging-tabs li a.active {
    color: #155264;
    border-bottom-color: #155264;
    background-color: #ffffff;
}
.atp-messaging-content {
    padding: 15px;
}
.atp-tab-pane {
    display: none;
}
.atp-tab-pane.active {
    display: block;
}
.atp-messaging-content form textarea {
    width: 100%;
    margin-bottom: 10px;
}
.atp-no-messages {
    text-align: center;
    color: #777;
    padding: 20px 0;
}
.atp-new-message-badge { 
    background-color: #f7c932; 
    color: #155264; font-size: 10px; 
    font-weight: bold; border-radius: 10px; 
    padding: 2px 6px; margin-left: 8px;
    vertical-align: middle;
}

/* --- NEW STYLES FOR MY QUOTES PAGE --- */

/* Main container for all quotes */
.atp-quotes-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* The "Card" for each individual quote */
.atp-quote-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden; /* Ensures child elements respect the border radius */
}

/* The header of the card, always visible */
.atp-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 15px;
}

.atp-header-main h3 {
    margin: 0 0 2px 0;
    font-size: 1.1em;
    color: #333;
}
.atp-header-main h3 a {
    text-decoration: none;
    color: #155264; /* Your brand color */
}
.atp-header-main p.submission-date {
    margin: 0;
    font-size: 0.9em;
    color: #777;
}

.atp-header-meta {
    text-align: right;
}
.atp-header-meta .grand-total {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    display: block;
}
.atp-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 5px;
    color: #fff;
}
.atp-status-badge.status-paid { background-color: #28a745; }
.atp-status-badge.status-winner { background-color: #ffc107; color: #333; }
.atp-status-badge.status-pending { background-color: #777; }


/* The collapsible details section */
.atp-quote-details {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* The toggle button */
.atp-details-toggle {
    cursor: pointer;
    text-decoration: none !important;
    font-weight: bold;
    color: #155264;
    margin-left: 20px;
    white-space: nowrap;
}
.atp-details-toggle .dashicons {
    font-size: 16px;
    vertical-align: middle;
    transition: transform 0.2s ease-in-out;
}
.atp-details-toggle.expanded .dashicons {
    transform: rotate(180deg);
}

/* Styles for the messaging section within the new layout */
.atp-messaging-wrapper {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.atp-messaging-tabs {
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    margin: 0 !important;
    padding: 0 10px !important;
    list-style: none !important;
    display: flex;
}
.atp-messaging-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.atp-messaging-tabs li a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: #555;
    border-bottom: 2px solid transparent;
}
.atp-messaging-tabs li a.active {
    font-weight: bold;
    color: #155264;
    border-bottom-color: #155264;
}
.atp-messaging-content {
    padding: 15px;
}

