/* Hide category product count */
.woocommerce-loop-category__title mark {
    display: none;
}

/* Limit text display for dropdown options */
#product-categories-6447dca7a2597-select option {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%; /* Adjust this value as needed */
}

/* Hide product SKU in search results */
.dgwt-wcas-details-product-sku {
    display: none !important;
}

/* Styling for specific text type */
body .woosg-item-text-type-h5 > h5 {
    color: red !important;
    font-weight: bold !important;
}

/* Contact Form 7 Styling */
/* Container for the entire form */
.wpcf7 {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Form rows */
.wpcf7 .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px;
}

/* Form columns */
.wpcf7 .form-column {
    flex: 1 1 calc(33.333% - 20px);
    margin: 0 10px;
}

/* Labels */
.wpcf7 label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* All input fields, select dropdowns, and textareas */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

/* Focus styles for input fields */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74,144,226,0.5);
}

/* Textarea specific styles */
.wpcf7 textarea {
    height: 120px;
    resize: vertical;
}

/* Full-width fields */
.wpcf7 .form-full-width {
    flex-basis: 100%;
    margin: 0 10px 20px;
}

/* Submit button */
.wpcf7 input[type="submit"] {
    background-color: #4a90e2;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #3a7bc8;
}

/* Validation error messages */
.wpcf7 .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Response output message */
.wpcf7 form .wpcf7-response-output {
    margin: 2em 0 1em;
    padding: 0.5em 1em;
    border: 2px solid #00a0d2;
    border-radius: 4px;
    text-align: center;
}

/* Success message */
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    background-color: #edfaef;
    color: #155724;
}

/* Error message */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: #dc3232;
    background-color: #fbeaea;
    color: #721c24;
}

/* VIN error message */
.vin-error {
    display: block;
    color: #dc3232;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Styles for the form title */
.wpcf7-form-title,
.wpcf7 h2,
.wpcf7 .wpcf7-form > h2:first-child {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .wpcf7 {
        padding: 20px;
    }
    
    .wpcf7 .form-column {
        flex-basis: 100%;
    }
}

/* Enhanced mobile styles for form title */
@media screen and (max-width: 767px) {
    .wpcf7-form-title,
    .wpcf7 h2,
    .wpcf7 .wpcf7-form > h2:first-child {
        font-size: 20px;
        display: flex;
        flex-direction: column;
    }
    
    .wpcf7-form-title span:first-child,
    .wpcf7 h2 span:first-child,
    .wpcf7 .wpcf7-form > h2:first-child span:first-child {
        display: block;
    }
    
    .wpcf7-form-title span:first-child::after,
    .wpcf7 h2 span:first-child::after,
    .wpcf7 .wpcf7-form > h2:first-child span:first-child::after {
        content: "& Acknowledgement";
        display: block;
        margin-top: 5px;
    }
    
    .wpcf7-form-title span:last-child,
    .wpcf7 h2 span:last-child,
    .wpcf7 .wpcf7-form > h2:first-child span:last-child {
        display: none;
    }
}

/* Media query for very small screens */
@media screen and (max-width: 360px) {
    .wpcf7-form-title,
    .wpcf7 h2,
    .wpcf7 .wpcf7-form > h2:first-child {
        font-size: 18px;
    }
}

.woocommerce span.onsale {
    background-color: #ff0000; /* Bright red */
    color: #ffffff;            /* White text for contrast */
}

/* Sale price (green) */
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    color: #28a745; /* Bootstrap green, or use #00aa00 */
    font-weight: bold;
}

/* Regular (crossed-out) price (red) */
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: #cc0000; /* Deep red */
    text-decoration: line-through;
}

.woocommerce-tabs .related.products time,
.woocommerce-tabs .related.products .date {
    display: none !important;
}

.entry-title:contains("Get It On Credit") {
    display: none !important;
}

.page-id-13460 .entry-title { display: none !important; }