/* FPV Dronas V4.4.46 - My Account > Orders and Order View only.
   Isolated fixes for WooCommerce account action buttons and mobile order layouts. */

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td {
  vertical-align: middle !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions {
  white-space: nowrap !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .woocommerce-button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.woocommerce-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 108px !important;
  max-width: none !important;
  min-height: 34px !important;
  height: auto !important;
  margin: 2px 4px 2px 0 !important;
  padding: 8px 14px !important;
  border: 1px solid #ff6a00 !important;
  border-radius: 12px !important;
  background: #ff6a00 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
  background-image: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .woocommerce-button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.woocommerce-button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button:focus,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.button:focus,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .woocommerce-button:focus,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.woocommerce-button:focus {
  background: #e85f00 !important;
  border-color: #e85f00 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table thead,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tr,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table {
    display: block !important;
    border: 0 !important;
    overflow: visible !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table thead {
    display: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tr,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr.order {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: baseline !important;
    gap: 8px !important;
    padding: 5px 0 !important;
    border: 0 !important;
    color: #3a3a3a !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td::before {
    content: attr(data-title) ":" !important;
    display: block !important;
    color: #3a3a3a !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td.woocommerce-orders-table__cell-order-number,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title="Užsakymas"] {
    display: block !important;
    padding: 0 0 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #ececec !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td.woocommerce-orders-table__cell-order-number::before,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title="Užsakymas"]::before {
    display: none !important;
    content: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td.woocommerce-orders-table__cell-order-number a,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title="Užsakymas"] a {
    color: #ff6a00 !important;
    -webkit-text-fill-color: #ff6a00 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title="Veiksmai"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding-top: 10px !important;
    white-space: normal !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title="Veiksmai"]::before {
    grid-column: 1 / -1 !important;
    margin: 0 0 2px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.button,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .woocommerce-button,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.woocommerce-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

@media (max-width: 420px) {
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tr,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr.order {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 7px !important;
    font-size: 14px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title="Veiksmai"] {
    grid-template-columns: 1fr !important;
  }
}


/* V4.4.46 - My Account: robust account action buttons, including single order view.
   This deliberately targets only WooCommerce account content, not product/cart/checkout buttons. */
body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button,
body.woocommerce-account .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce-MyAccount-content input.button,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table a.button,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table a.woocommerce-button,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table .woocommerce-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 132px !important;
  min-height: 34px !important;
  width: auto !important;
  height: auto !important;
  margin: 2px 6px 2px 0 !important;
  padding: 9px 16px !important;
  border: 1px solid #ff6a00 !important;
  border-radius: 10px !important;
  background: #ff6a00 !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button *,
body.woocommerce-account .woocommerce-MyAccount-content .button *,
body.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button *,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button:hover,
body.woocommerce-account .woocommerce-MyAccount-content a.button:focus,
body.woocommerce-account .woocommerce-MyAccount-content .button:focus,
body.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button:focus,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button:focus {
  background: #e85f00 !important;
  border-color: #e85f00 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  outline: none !important;
}

/* V4.4.46 - Single order view structure inside My Account. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-downloads,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.customer_details,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.d0-order-company-details,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details {
  margin-top: 18px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details td,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details th,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details td {
  padding: 11px 12px !important;
  vertical-align: middle !important;
  border-color: #d8d8d8 !important;
  color: #3a3a3a !important;
  -webkit-text-fill-color: #3a3a3a !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details a:not(.button),
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details a:not(.button) {
  color: #ff6a00 !important;
  -webkit-text-fill-color: #ff6a00 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot th {
  width: 34% !important;
  font-weight: 800 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot td,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot td {
  font-weight: 700 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot tr:last-child th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot tr:last-child td,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child td {
  border-bottom: 0 !important;
}

@media (max-width: 768px) {
  body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    margin-bottom: 14px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details__title,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title,
  body.woocommerce-account .woocommerce-MyAccount-content h2,
  body.woocommerce-account .woocommerce-MyAccount-content h3 {
    margin: 18px 0 12px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.customer_details,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.d0-order-company-details {
    display: block !important;
    width: 100% !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details thead,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details thead {
    display: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tbody,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tr,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details th,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details td,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tbody,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tr,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details th,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tbody tr,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tbody td,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tbody td {
    padding: 0 12px !important;
    border: 0 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tbody td:last-child,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tbody td:last-child {
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot tr,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.customer_details tr,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.d0-order-company-details tr {
    display: grid !important;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 12px !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot th,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot td,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot th,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot td,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.customer_details th,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.customer_details td,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.d0-order-company-details th,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.d0-order-company-details td {
    padding: 0 !important;
    border: 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot th,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot th,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.customer_details th,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.d0-order-company-details th {
    width: auto !important;
    font-weight: 800 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot tr:last-child,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.customer_details tr:last-child,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.d0-order-company-details tr:last-child {
    border-bottom: 0 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details a.button,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details a.button,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details .woocommerce-button,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details .woocommerce-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    white-space: normal !important;
  }
}

@media (max-width: 420px) {
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.order_details tfoot tr,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.customer_details tr,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.d0-order-company-details tr {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }
}


/* v4.4.47 - Safety fallback: hide the Communication endpoint if a plugin injects it after WooCommerce menu filtering. */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--communication,
body.woocommerce-account .woocommerce-MyAccount-navigation li[class*="communication"],
body.woocommerce-account .fpv-account-auth-nav li[class*="communication"] {
  display: none !important;
}
