/* =========================================================
   GLOBAL BASICS
   ========================================================= */

table { width: 100%; }
td { vertical-align: top; }

@media (max-width: 768px) {
  td {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  td:last-child { margin-bottom: 0; }
}

/* Responsive iframe wrapper */
.responsive-iframe{
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}
.responsive-iframe iframe{
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* =========================================================
   WOOCOMMERCE: PRICES / BADGES / BACKORDER
   ========================================================= */

.stock.available-on-backorder{
  font-size: 22px !important;
  font-family: Arial, sans-serif !important;
  text-transform: capitalize !important;
  color: #358A4C;
}

.woocommerce span.onsale,
.wc-block-grid__product-onsale{
  display: none !important;
}

.woocommerce-Price-amount{ display: block; }
.woocommerce-Price-amount + .woocommerce-Price-amount{ margin-top: 5px; }

.backorder-date{
  font-size: 22px;
  font-family: Arial, sans-serif !important;
  color: #b00020;
  font-weight: 800;
}

.backorder-badge{
  position: absolute;
  top: 5px;
  left: 5px;
  color: #b00020;
  font-weight: 800;
  border: 2px solid #b00020;
  background: rgba(176, 0, 32, 0.08);
  padding: 0.35em 0.6em;
  border-radius: 3px;
  z-index: 10;
}

/* =========================================================
   WOOCOMMERCE: SELECT2 STATE/PROVINCE VISUAL FIX
   ========================================================= */

.woocommerce form .form-row .select2-container--default .select2-selection--single{
  background-color: #fff !important;
  border: 1px solid #ddd;
  height: 40px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* =========================================================
   DRYAWAY FINDER BUTTONS
   ========================================================= */

.dyd-finder .dyd-btn{
  background: #fff;
  color: #1e5bb8;
  border-color: rgba(30, 91, 184, .35);
}

.dyd-finder .dyd-btn:hover,
.dyd-finder .dyd-btn:focus,
.dyd-finder .dyd-btn:focus-visible{
  background: #1e5bb8;
  color: #fff;
  border-color: rgba(30, 91, 184, .85);
  outline: none;
}

.dyd-finder .dyd-btn--active{
  background: #fff;
  color: #0b6b45;
  border-color: rgba(0,145,94,.65);
  box-shadow: 0 0 0 3px rgba(0,145,94,.14);
}

.dyd-finder .dyd-btn--ghost{
  background: transparent;
  color: #333;
  border-color: rgba(0,0,0,.18);
}
.dyd-finder .dyd-btn--ghost:hover,
.dyd-finder .dyd-btn--ghost:focus,
.dyd-finder .dyd-btn--ghost:focus-visible{
  background: rgba(0,0,0,.04);
  color: #111;
}

/* =========================================================
   MY ACCOUNT (WOOCOMMERCE) — CLEAN, SINGLE SOURCE OF TRUTH
   - (Removed YITH menu styles; plugin disabled)
   ========================================================= */

body.woocommerce-account .woocommerce{
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 18px;
}

/* Left nav box */
body.woocommerce-account .woocommerce-MyAccount-navigation{
  background: #fff;
  border: 1px solid rgba(16,24,40,0.10);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul{
  margin: 0;
  padding: 6px;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li{
  margin: 0 0 6px;
  border: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
  color: #1f2937;
  background: transparent;
  border: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{
  background: rgba(16,24,40,0.06);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{
  background: rgba(11,87,208,0.10);
  color: #0b57d0;
}

/* Right content area */
body.woocommerce-account .woocommerce-MyAccount-content{
  background: #fff;
  border: 1px solid rgba(16,24,40,0.10);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
  padding: 18px 18px 22px;
}

/* Headings */
body.woocommerce-account .woocommerce-MyAccount-content h1,
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3{
  line-height: 1.2;
  margin: 18px 0 12px;
}

/* Form labels + fields */
body.woocommerce-account .woocommerce-MyAccount-content form label{
  display: block;
  font-size: 13px;
  line-height: 1.2;
  margin: 0 0 6px;
  min-height: 16px;
  font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="url"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="number"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="password"],
body.woocommerce-account .woocommerce-MyAccount-content form select,
body.woocommerce-account .woocommerce-MyAccount-content form textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(16,24,40,0.16);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.25;
  background: #fff;
  outline: none;
}

body.woocommerce-account .woocommerce-MyAccount-content form select{ height: 44px; }

body.woocommerce-account .woocommerce-MyAccount-content form textarea{
  min-height: 120px;
  resize: vertical;
}

/* Focus */
body.woocommerce-account .woocommerce-MyAccount-content form input:focus,
body.woocommerce-account .woocommerce-MyAccount-content form select:focus,
body.woocommerce-account .woocommerce-MyAccount-content form textarea:focus{
  border-color: rgba(11,87,208,0.55);
  box-shadow: 0 0 0 4px rgba(11,87,208,0.12);
}

/* Buttons */
body.woocommerce-account .woocommerce-MyAccount-content button,
body.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]{
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
}

/* Responsive account layout */
@media (max-width: 900px){
  body.woocommerce-account .woocommerce{
    padding: 18px 14px;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content{
    padding: 14px;
  }
}

/* =========================================================
   DEALER APPLICATION ENDPOINT (PLUGIN) — UPLOAD SEPARATION FIX
   - Makes the Tax Exempt upload clearly separate from EIN field
   ========================================================= */

body.woocommerce-account .dryaway-da-field{
  margin-top: 14px;
}
body.woocommerce-account .dryaway-da-field + .dryaway-da-field{
  margin-top: 18px;
}

/* Give helper text breathing room */
body.woocommerce-account .dryaway-da-help{
  margin-top: 8px;
}

/* Add a divider + spacing before the upload block */
body.woocommerce-account .dryaway-da-cert{
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(16,24,40,0.10);
}

/* Make the upload label read like a section header */
body.woocommerce-account .dryaway-da-field label{
  font-weight: 700;
}

/* =========================================================
   CHECKOUT: CITY / STATE / ZIP ON ONE ROW
   ========================================================= */

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_city_field,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_state_field,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_postcode_field{
  float: left;
  width: calc(33.333% - 12px);
  margin-right: 18px;
  clear: none;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_city_field{
  clear: both;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_postcode_field{
  margin-right: 0;
}

@media (max-width: 900px){
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_city_field,
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_state_field,
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_postcode_field{
    float: none;
    width: 100%;
    margin-right: 0;
    clear: both;
  }
}