/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Mobile: Full width variation select */
@media (max-width: 768px) {
    .single-product .variations td.value {
        display: block;
        width: 100%;
    }

    .single-product .variations select,
    .single-product .variations .nice-select {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Responsive table for scooter filter */
@media (max-width: 768px) {
    .mobility-filter-variations, 
    .mobility-filter-variations tbody, 
    .mobility-filter-variations tr, 
    .mobility-filter-variations th, 
    .mobility-filter-variations td {
        display: block;
        width: 100% !important;
    }
    
    .mobility-filter-variations th.label {
        padding-bottom: 5px;
        text-align: left;
        padding-left: 0;
    }
    
    .mobility-filter-variations td.value {
        padding-bottom: 15px;
        padding-left: 0;
    }

    .mobility-filter-variations .select2-container,
    .mobility-filter-variations select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Buttons */
.scooter-no-match-container {
    max-width: 70%;
    display: none; /* It is hidden by default in JS */
}

.scooter-no-match-text {
    margin-bottom: 10px; 
    font-size: 15px; 
    color: red;
}

.scooter-action-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.scooter-call-btn, .scooter-email-btn {
    padding: 10px 5px;
    background-color: rgb(4,56,157);
    color: white;
    border: none;
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 14px;
}

.scooter-call-btn:hover, .scooter-email-btn:hover {
    background-color: #032b7a; /* Darker shade */
    color: white;
}

@media (max-width: 768px) {
    .scooter-no-match-container {
        max-width: 100%;
    }
    
    .scooter-action-buttons {
        flex-direction: row;
    }
    
    .scooter-call-btn, .scooter-email-btn {
        font-size: 12px;
        padding: 10px 2px;
    }
}

.scooter-width + .select2-container .select2-selection--single,
.scooter-length + .select2-container .select2-selection--single,
.scooter-weight + .select2-container .select2-selection--single,
.scooter-front-wheel + .select2-container .select2-selection--single,
.scooter-rear-wheel + .select2-container .select2-selection--single
{
    height: 38px;
    display: flex;
    align-items: center;
    background-color: #fff;
    font-size: 14px;
}

.scooter-width + .select2-container .select2-selection__rendered,
.scooter-length + .select2-container .select2-selection__rendered,
.scooter-weight + .select2-container .select2-selection__rendered,
.scooter-front-wheel + .select2-container .select2-selection__rendered,
.scooter-rear-wheel + .select2-container .select2-selection__rendered
{
    line-height: 36px;
}

.scooter-width + .select2-container .select2-selection__arrow,
.scooter-length + .select2-container .select2-selection__arrow,
.scooter-weight + .select2-container .select2-selection__arrow,
.scooter-front-wheel + .select2-container .select2-selection__arrow,
.scooter-rear-wheel + .select2-container .select2-selection__arrow
{
    height: 36px;
}

.scooter-filter tr {
    margin-bottom: 10px;
}

.filter-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 0px !important;
}
.filter-tooltiptext {
  visibility: hidden;
  width: 400px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  max-width: 90vw;
  white-space: normal;
  word-wrap: break-word;
  
}
.filter-tooltip:hover .filter-tooltiptext {
  visibility: visible;
}

.wc-no-product-match {
    color: red;
    display: none;
}

/* Product Request Form Start */
/* Container chính */
.wc-product-request-form-container {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  border-top: 6px solid #234193; /* primary color */
  text-align: center;
  margin: auto;
}

/* Group input/label */
.wc-form-group {
  margin-bottom: 25px;
  text-align: left;
}

.wc-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  font-size: 16px;
}

/* Inputs & selects */
.wc-form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.wc-form-group input:focus {
  border-color: #234193;
  outline: none;
}

/* Nút Submit */
.wc-submit-button {
  width: 100%;
  padding: 14px;
  background-color: #fbcb0c; /* accent color */
  border: none;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.wc-submit-button:hover {
  background-color: #e6b800;
}

/* Responsive */
@media (max-width: 768px) {
  .wc-product-request-form-container {
    padding: 25px;
    border-radius: 16px;
  }

  .wc-product-request-form-container h2 {
    font-size: 22px;
  }

  .wc-form-group input,
  .wc-submit-button {
    font-size: 15px;
    padding: 12px;
  }
}

/* Lỗi form (nếu cần) */
.wc-product-request-form-container .error {
  font-weight: bold;
  color: #ff7676;
  margin-bottom: 15px;
}
/* Product Request Form End */

/* Dealer Report Styles */
.dealer-report-filter-bar {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.dealer-report-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dealer-report-filter-label {
    font-weight: 600;
    font-size: 13px;
}

.dealer-date-preset {
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    background: #f0f0f1;
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: all 0.2s;
}

.dealer-date-preset:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.dealer-date-preset.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    font-weight: 600;
}

.dealer-report-kpi {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.dealer-report-kpi-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    text-align: center;
}

.dealer-report-kpi-card h3 {
    margin: 0 0 10px;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.dealer-report-kpi-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #007cba;
}

.dealer-report-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    margin-bottom: 30px;
}

.dealer-report-section h2 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
}

.dealer-report-table {
    width: 100%;
    border-collapse: collapse;
}

.dealer-report-table th {
    background: #f9f9f9;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ccd0d4;
}

.dealer-report-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.dealer-report-table tr:hover {
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .dealer-report-kpi {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dealer-report-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dealer-report-table {
        font-size: 12px;
    }
    
    .dealer-report-table th,
    .dealer-report-table td {
        padding: 8px;
    }
}