/* ==========================================================================
   Techmall Account Dashboard – Premium Design System
   Maintains: #111827, #f9fafb, #6b7280, #22c55e accent | Myriad Pro
   Higher specificity via .techmall-myaccount-styled for theme override.
   ========================================================================== */

/* Global typography & links on My Account screens */
.techmall-myaccount-styled.woocommerce-account,
.techmall-myaccount-styled.woocommerce-account input,
.techmall-myaccount-styled.woocommerce-account select,
.techmall-myaccount-styled.woocommerce-account textarea,
.woocommerce-account,
.woocommerce-account input,
.woocommerce-account select,
.woocommerce-account textarea {
  font-family: "Myriad Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    -system-ui, sans-serif !important;
}

.woocommerce-account a,
.woocommerce-account .woocommerce-MyAccount-content a,
.woocommerce-account .woocommerce-MyAccount-navigation a {
  text-decoration: none !important;
}

.woocommerce-account a:hover,
.woocommerce-account a:focus,
.woocommerce-account .woocommerce-MyAccount-content a:hover,
.woocommerce-account .woocommerce-MyAccount-content a:focus,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus {
  text-decoration: none !important;
}

/* Subtle premium page background for account area */
.woocommerce-account .woocommerce-MyAccount-content {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-radius: 24px !important;
  padding: 2rem !important;
  min-height: 1px !important;
}

/* Remove Woo default dashboard intro text above our panel */
.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
  display: none !important;
}

/* Left navigation – premium pill sidebar */
.woocommerce-account .woocommerce-MyAccount-navigation {
  padding: 1.5rem 1.25rem !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0.15rem 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.7rem 1rem !important;
  border-radius: 12px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  color: #374151 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
  color: #111827 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
  color: #f9fafb !important;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a::before,
.woocommerce-account
  .woocommerce-MyAccount-navigation
  .woocommerce-MyAccount-navigation-link--my-quotes
  a::before {
  content: "" !important;
  display: inline-block !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  margin-right: 0.25rem !important;
}

/* Main dashboard container – premium card */
.tm-account-dashboard {
  --tm-color-bg: #f9fafb;
  --tm-color-surface: #ffffff;
  --tm-color-accent: #111827;
  --tm-color-border-subtle: rgba(15, 23, 42, 0.06);
  --tm-color-text-main: #111827;
  --tm-color-text-soft: #6b7280;
  --tm-radius-md: 16px;
  --tm-radius-lg: 24px;
  --tm-shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.04), 0 20px 50px rgba(15, 23, 42, 0.06);
  --tm-shadow-elevated: 0 4px 6px rgba(15, 23, 42, 0.04), 0 24px 60px rgba(15, 23, 42, 0.08);
  --tm-border: 1px solid var(--tm-color-border-subtle);

  margin: 1.75rem 0 2.5rem !important;
  padding: 2.25rem 2.25rem !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 20px 50px rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  position: relative !important;
  overflow: hidden !important;
}

.tm-account-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.tm-account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.tm-account-hero-text {
  max-width: 36rem;
}

.tm-account-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #22c55e;
  margin: 0 0 0.85rem;
}

.tm-account-title {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: #111827;
}

.tm-account-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--tm-color-text-soft);
}

.tm-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.tm-account-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 1.4rem 1.5rem !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}

.tm-account-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.04), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tm-account-card h2,
.tm-account-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
}

.tm-account-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--tm-color-text-soft);
}

.tm-account-card-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111827;
}

.tm-account-card-cta::after {
  content: "→";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.tm-account-card:hover .tm-account-card-cta::after {
  transform: translateX(3px);
}

/* Primary CTA card */
.tm-account-card-primary {
  grid-row: span 2 !important;
  padding: 1.9rem 1.75rem !important;
  background: linear-gradient(145deg, #111827 0%, #1f2937 50%, #111827 100%) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2), 0 12px 40px rgba(17, 24, 39, 0.15) !important;
}

.tm-account-card-primary::before {
  background: radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.12), transparent 50%);
  opacity: 1;
}

.tm-account-card-primary h2 {
  font-size: 1.125rem;
  color: #f9fafb;
}

.tm-account-card-primary p {
  color: #d1d5db;
}

.tm-account-card-primary .tm-account-card-cta {
  color: #22c55e;
}

.tm-account-card-primary .tm-account-card-cta::after {
  color: #22c55e;
}

.tm-account-card:hover {
  transform: translateY(-4px) translateZ(0) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 20px 48px rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.tm-account-card-primary:hover {
  transform: translateY(-4px) translateZ(0) !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.3), 0 20px 56px rgba(17, 24, 39, 0.2) !important;
}

.tm-account-card:hover::before {
  opacity: 1;
}

/* Quotes section & placeholder – premium styling */
.tm-account-section {
  margin: 2rem 0 3rem !important;
  padding: 2rem 2.25rem !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 16px 48px rgba(15, 23, 42, 0.06) !important;
}

.tm-account-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
}

.tm-account-section-intro {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tm-color-text-soft);
}

.tm-account-placeholder {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

.tm-account-placeholder p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--tm-color-text-soft);
}

.tm-account-placeholder p:last-child {
  margin-bottom: 0;
}

.tm-account-placeholder .button {
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: #111827;
  color: #f9fafb;
  border: none;
  transition: all 0.2s ease;
}

.tm-account-placeholder .button:hover {
  background: #1f2937;
  color: #f9fafb;
  transform: translateY(-1px);
}

/* ==========================================================
   YITH “My Quotes” list – premium buttons + responsive layout
   ========================================================== */

.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes a {
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quotes-number a,
.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quote-actions-button__menu__item,
.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quote-actions-button__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;

  padding: 0.58rem 1rem !important;
  border-radius: 999px !important;

  font-weight: 600 !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;

  background: #111827 !important;
  color: #f9fafb !important;

  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  transition: transform 0.15s ease-out, background 0.15s ease-out !important;
}

.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quotes-number a:hover,
.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quote-actions-button__menu__item:hover,
.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quote-actions-button__link:hover {
  background: #1f2937 !important;
  transform: translateY(-1px) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quotes-actions {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quotes-actions {
    white-space: normal !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content .my_account_quotes .quote-actions-button__menu__item {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* Responsiveness */

@media (max-width: 1024px) {
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 1.5rem;
  }

  .tm-account-dashboard {
    padding: 1.85rem 1.75rem;
  }

  .tm-account-hero {
    grid-template-columns: minmax(0, 1.7fr);
    margin-bottom: 2rem;
  }

  .tm-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-account-card-primary {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 1.25rem;
  }

  .tm-account-dashboard {
    padding: 1.5rem 1.35rem;
    margin: 1.5rem 0 2rem;
    border-radius: 20px;
  }

  .tm-account-hero {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1.75rem;
  }

  .tm-account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-account-card {
    padding: 1.25rem 1.35rem;
  }

  .tm-account-section {
    padding: 1.5rem 1.35rem;
  }
}

/* ==========================================================
   YITH Quote Tables (List + Quote Details)
   ========================================================================== */

/* Quote list table (My Quotes tab) */
.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 18px 45px rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes thead th {
  background: #ffffff !important;
  color: #374151 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 0.95rem 1rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  text-align: left !important;
}

.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes tbody td {
  background: #ffffff !important;
  padding: 0.9rem 1rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  color: #111827 !important;
  vertical-align: middle !important;
  font-size: 0.9rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes tbody tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .my_account_quotes tbody tr:hover td {
  background: #f9fafb !important;
}

/* Quote details product table (View Quote page) */
.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote-wrapper table.shop_table.order_details {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 18px 45px rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote-wrapper table.shop_table.order_details thead th {
  background: #ffffff !important;
  color: #374151 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 1rem 1rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  text-align: left !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote-wrapper table.shop_table.order_details tbody td {
  background: #ffffff !important;
  padding: 0.95rem 1rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  color: #111827 !important;
  vertical-align: middle !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote-wrapper table.shop_table.order_details tbody tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote-wrapper table.shop_table.order_details tbody tr:hover td {
  background: #f9fafb !important;
}

/* Product row layout inside quote details table */
.woocommerce-account
  .woocommerce-MyAccount-content
  .ywraq-view-quote-wrapper
  table.shop_table.order_details
  td.product-name {
  padding: 0.95rem 1rem !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  .ywraq-view-quote-wrapper
  table.shop_table.order_details
  .product-name {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  .ywraq-view-quote-wrapper
  table.shop_table.order_details
  .product-thumbnail {
  display: inline-flex !important;
  align-items: center !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  .ywraq-view-quote-wrapper
  table.shop_table.order_details
  .product-thumbnail img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  background: #f3f4f6 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  .ywraq-view-quote-wrapper
  table.shop_table.order_details
  .product-name-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  flex-wrap: wrap !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  .ywraq-view-quote-wrapper
  table.shop_table.order_details
  .product-name-item > a {
  color: #111827 !important;
  font-weight: 600 !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  .ywraq-view-quote-wrapper
  table.shop_table.order_details
  .product-quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  padding: 0.28rem 0.6rem !important;
  border-radius: 999px !important;
  background: #111827 !important;
  color: #f9fafb !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

/* Status pill (Quote status block) */
.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote__order-status .ywraq-status,
.woocommerce-account .woocommerce-MyAccount-content p.ywraq-view-quote__order-status .ywraq-status {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  p.ywraq-view-quote__order-status
  .ywraq-status.ywraq-new {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #065f46 !important;
  border-color: rgba(34, 197, 94, 0.25) !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  p.ywraq-view-quote__order-status
  .ywraq-status.ywraq-rejected {
  background: rgba(204, 43, 43, 0.12) !important;
  color: #7f1d1d !important;
  border-color: rgba(204, 43, 43, 0.25) !important;
}

/* Additional info cards (Customer details + Admin reply) */
.woocommerce-account .woocommerce-MyAccount-content .ywraq-additional-information {
  margin-top: 2rem !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 1.25rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-customer-information,
.woocommerce-account .woocommerce-MyAccount-content .ywraq-admin-message {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.25rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-customer-information header h3,
.woocommerce-account .woocommerce-MyAccount-content .ywraq-admin-message header h3 {
  margin: 0 0 0.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote__customer-info {
  margin: 0.45rem 0 !important;
  color: #374151 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-admin-message .message-content p {
  margin: 0.25rem 0 !important;
  color: #374151 !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
}

/* Back to quote list link styling */
.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote-wrapper > p > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.6rem 1rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #111827 !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: transform 0.15s ease-out, background 0.15s ease-out !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ywraq-view-quote-wrapper > p > a:hover {
  background: #f9fafb !important;
  transform: translateY(-1px) !important;
}

/* Responsive: keep tables usable with horizontal scroll */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-content .my_account_quotes,
  .woocommerce-account
    .woocommerce-MyAccount-content
    .ywraq-view-quote-wrapper
    table.shop_table.order_details {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content .my_account_quotes th,
  .woocommerce-account .woocommerce-MyAccount-content .my_account_quotes td,
  .woocommerce-account
    .woocommerce-MyAccount-content
    .ywraq-view-quote-wrapper
    table.shop_table.order_details
    th,
  .woocommerce-account
    .woocommerce-MyAccount-content
    .ywraq-view-quote-wrapper
    table.shop_table.order_details
    td {
    white-space: normal !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content .ywraq-additional-information {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .woocommerce-account
    .woocommerce-MyAccount-content
    .ywraq-view-quote-wrapper
    table.shop_table.order_details
    .product-thumbnail
    img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
  }
}

/* ==========================================================
   My Quotes last column: always show "edit" button
   (instead of dropdown toggle)
   ========================================================== */

body.techmall-myaccount-styled
  .woocommerce-MyAccount-content
  table.my_account_quotes
  td.quotes-actions {
  text-align: left !important;
}

body.techmall-myaccount-styled
  .woocommerce-MyAccount-content
  table.my_account_quotes
  th.total,
body.techmall-myaccount-styled
  .woocommerce-MyAccount-content
  table.my_account_quotes
  td.quotes-total {
  text-align: center !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
}

body.techmall-myaccount-styled
  .woocommerce-MyAccount-content
  table.my_account_quotes
  td.quotes-actions
  a.quote-actions-button__link.quote-actions__tips {
  display: none !important;
}

body.techmall-myaccount-styled
  .woocommerce-MyAccount-content
  table.my_account_quotes
  td.quotes-actions
  span.quote-actions-button__menu {
  display: flex !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

body.techmall-myaccount-styled
  .woocommerce-MyAccount-content
  table.my_account_quotes
  td.quotes-actions
  a.quote-actions-button__menu__item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.58rem 1rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  background: #111827 !important;
  color: #f9fafb !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  text-align: left !important;
  justify-content: flex-start !important;
}

body.techmall-myaccount-styled
  .woocommerce-MyAccount-content
  table.my_account_quotes
  td.quotes-actions
  a.quote-actions-button__menu__item::before {
  content: "✎" !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  color: #f9fafb !important;
}

body.techmall-myaccount-styled
  .woocommerce-MyAccount-content
  table.my_account_quotes
  td.quotes-actions
  a.quote-actions-button__menu__item:hover {
  background: #1f2937 !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================
   YITH Request a Quote page (quote list + send form)
   ========================================================== */

body.techmall-ywraq-styled.yith-request-a-quote-page {
  font-family: "Myriad Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    -system-ui, sans-serif !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page a {
  text-decoration: none !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page .ywraq-wrapper {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-radius: 24px !important;
  padding: 2rem !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page .ywraq-form-table-wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  padding: 1.25rem 1.25rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 18px 45px rgba(15, 23, 42, 0.06) !important;
}

/* Quote list table */
body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list thead th {
  background: #ffffff !important;
  color: #374151 !important;
  font-weight: 700 !important;
  padding: 0.95rem 1rem !important;
  font-size: 0.85rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  text-align: left !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list tbody td {
  background: #ffffff !important;
  padding: 0.95rem 1rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  vertical-align: middle !important;
  color: #111827 !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list tbody tr:last-child td {
  border-bottom: none !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list tr.cart_item:hover td {
  background: #f9fafb !important;
}

/* Product thumbnail in quote list */
body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list .product-thumbnail img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  background: #f3f4f6 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list .product-name a {
  font-weight: 700 !important;
  color: #111827 !important;
}

/* Quantity input */
body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list input.qty {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  background: #ffffff !important;
  padding: 0.55rem 0.75rem !important;
  font-weight: 600 !important;
  max-width: 120px !important;
}

/* Buttons */
body.techmall-ywraq-styled.yith-request-a-quote-page .ywraq-before-table-wc-backward,
body.techmall-ywraq-styled.yith-request-a-quote-page .yith-ywraq-before-table-wc-backward {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.6rem 1rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #111827 !important;
  font-weight: 700 !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page .button,
body.techmall-ywraq-styled.yith-request-a-quote-page button.button,
body.techmall-ywraq-styled.yith-request-a-quote-page input.button {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page .button,
body.techmall-ywraq-styled.yith-request-a-quote-page input[type="submit"].button,
body.techmall-ywraq-styled.yith-request-a-quote-page button.button {
  background: #111827 !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  color: #f9fafb !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page .button:hover,
body.techmall-ywraq-styled.yith-request-a-quote-page button.button:hover,
body.techmall-ywraq-styled.yith-request-a-quote-page input.button:hover {
  background: #1f2937 !important;
}

/* Mail form wrapper + fields */
body.techmall-ywraq-styled.yith-request-a-quote-page .yith-ywraq-mail-form-wrapper {
  margin-top: 1.25rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  padding: 1.25rem 1.25rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 18px 45px rgba(15, 23, 42, 0.06) !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page .yith-ywraq-mail-form-wrapper h3 {
  margin: 0 0 1rem !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywraq-default-form label,
body.techmall-ywraq-styled.yith-request-a-quote-page label.required_field {
  font-weight: 800 !important;
  color: #111827 !important;
  font-size: 0.9rem !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywraq-default-form input.input-text,
body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywraq-default-form textarea {
  width: 100% !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  background: #ffffff !important;
  padding: 0.75rem 0.9rem !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywraq-default-form textarea {
  min-height: 110px !important;
}

body.techmall-ywraq-styled.yith-request-a-quote-page .raq-send-request-row {
  margin-top: 0.75rem !important;
}

/* Responsive layout */
@media (max-width: 768px) {
  body.techmall-ywraq-styled.yith-request-a-quote-page .ywraq-wrapper {
    padding: 1.25rem !important;
    border-radius: 20px !important;
  }

  body.techmall-ywraq-styled.yith-request-a-quote-page .ywraq-form-table-wrapper,
  body.techmall-ywraq-styled.yith-request-a-quote-page .yith-ywraq-mail-form-wrapper {
    padding: 1rem 1rem !important;
    border-radius: 16px !important;
  }

  body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list .product-thumbnail img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  body.techmall-ywraq-styled.yith-request-a-quote-page #yith-ywrq-table-list {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

