/* Apply styles only inside the WooCommerce account page */
body.woocommerce-account .site-main,
body.woocommerce-account .woocommerce {
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  font-family: "Segoe UI", Roboto, sans-serif;
	color: #000000;
	font-style: normal;
	font-size: 1.2rem;
}
body.woocommerce-account a{
  text-decoration: none;
}
body.woocommerce-account h2{
	margin-top: 10px;
}

/* Login/Register Forms */
body.woocommerce-account form.woocommerce-form {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

body.woocommerce-account form .form-row {
  margin-bottom: 20px;
}

body.woocommerce-account form .form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

body.woocommerce-account form .form-row input.input-text {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border 0.2s;
	font-size: 1.2rem;
}

body.woocommerce-account form .form-row input.input-text:focus {
  border-color: linear-gradient(90deg, #A217FC 0%, #7017FC 100%);
  outline: none;
}

/* Buttons */
body.woocommerce-account button.button {
  background: linear-gradient(90deg, #A217FC 0%, #7017FC 100%);
  color: white;
  padding: 12px 24px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: auto;
}

body.woocommerce-account button.button:hover {
  background-color: #7017FC;
}

/* Navigation Tabs */
body.woocommerce-account .woocommerce-MyAccount-navigation {
  margin-bottom: 30px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  flex: 1 1 auto;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  background: #f1f1f1;
  padding: 12px 15px;
  text-align: center;
  border-radius: 6px;
  color: #333;
  font-weight: 500;
  transition: background 0.3s ease;
	text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #7017FC;
  color: #fff;
}

/* Dashboard Content */
body.woocommerce-account .woocommerce-MyAccount-content {
  padding: 20px;
  background: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
  }

  body.woocommerce-account .site-main,
  body.woocommerce-account .woocommerce {
    padding: 15px;
  }
  .woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table{
    padding: 10px;
  }
  .woocommerce-table__line-item.order_item{
    font-size: 14px;
  }

  
}

.woocommerce-MyAccount-content fieldset{
  padding: 10px;
}
.woocommerce-MyAccount-content button{
  min-width: 15px;
  height: 15px;
}
.woocommerce-MyAccount-content .password-input{
  display: flex;
  align-items: flex-end;
}
.password-input button{
  display: none;
}

/* Base styling */
.woocommerce-MyAccount-paymentMethods.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 15px;
}

.woocommerce-MyAccount-paymentMethods.shop_table th,
.woocommerce-MyAccount-paymentMethods.shop_table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}

.woocommerce-MyAccount-paymentMethods.shop_table th {
  background-color: #7017FC;
  color: #fff;
}

/* Responsive styles */
@media (max-width: 600px) {
  .woocommerce-MyAccount-paymentMethods.shop_table thead {
    display: none;
  }

  .woocommerce-MyAccount-paymentMethods.shop_table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
  }

  .woocommerce-MyAccount-paymentMethods.shop_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .woocommerce-MyAccount-paymentMethods.shop_table td::before {
    content: attr(data-title);
    font-weight: bold;
    flex: 1;
    color: #7017FC;
    margin-right: 10px;
    min-width: 75px;
  }

  .woocommerce-MyAccount-paymentMethods.shop_table td:last-child {
    border-bottom: none;
  }
}



/* Style and responsiveness for WooCommerce Orders Table */
body.woocommerce-account .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: #fff;
  border: 1px solid #ddd;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
}

body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-orders-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

body.woocommerce-account .woocommerce-orders-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
}

body.woocommerce-account .woocommerce-orders-table td {
  color: #555;
}

/* Action Button */
body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 5px;
  background-color: #7017FC;
  color: #fff;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover {
  background-color: #005a8c;
}

/* Responsive Table: Stack rows on small screens */
@media screen and (max-width: 768px) {
  body.woocommerce-account .woocommerce-orders-table thead {
    display: none;
  }

  body.woocommerce-account .woocommerce-orders-table,
  body.woocommerce-account .woocommerce-orders-table tbody,
  body.woocommerce-account .woocommerce-orders-table tr,
  body.woocommerce-account .woocommerce-orders-table td {
    display: block;
    width: 100%;
  }

  body.woocommerce-account .woocommerce-orders-table tr {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    padding: 10px;
  }

  body.woocommerce-account .woocommerce-orders-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }

  body.woocommerce-account .woocommerce-orders-table td::before {
    content: attr(data-title);
    position: absolute;
    left: 15px;
    top: 12px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
    text-align: center;
  }
}

/* Container styling */
.woocommerce-Addresses {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Individual address boxes */
.woocommerce-Address {
  flex: 1 1 45%;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease-in-out;
}

.woocommerce-Address:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

/* Header */
.woocommerce-Address header h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

/* Address text */
.woocommerce-Address address {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 1rem;
}

/* Edit button */
.woocommerce-Address a.edit {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  background-color: #7017FC;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.woocommerce-Address a.edit:hover {
  background-color: #005f86;
}

/* Responsive layout for small screens */
@media (max-width: 768px) {
  .woocommerce-Addresses {
    flex-direction: column;
  }

  .woocommerce-Address {
    flex: 1 1 100%;
  }
}


/* Container styling */
.woocommerce-MyAccount-paymentMethods {
  margin-top: 2rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

/* Table base style */
.account-payment-methods-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #7017FC;
  background-color: #fff;
  font-size: 0.95rem;
}

.account-payment-methods-table thead {
  background-color: #7017FC;
  color: #fff;
  text-align: left;
}

.account-payment-methods-table th,
.account-payment-methods-table td {
  padding: 1rem;
  border: 1px solid #7017FC;
  vertical-align: middle;
}

/* Alternate row background */
.account-payment-methods-table tbody tr:nth-child(even) {
  background-color: #f9f7ff;
}

/* Buttons inside table */
.account-payment-methods-table a.button {
  background-color: #7017FC;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.account-payment-methods-table a.button:hover {
  background-color: #5a12ca;
}


/* General Reset & Table Styling */
.woocommerce mark{
	background: #7017fc63;
}
.woocommerce .woocommerce-MyAccount-content .woocommerce-order-details, table.woocommerce-table.woocommerce-table--order-details.shop_table order_details{
	font-size: 1rem;
}
.woocommerce-order-details,
.woocommerce-customer-details {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 20px auto;
  padding: 20px;
  max-width: 900px;
  font-family: "Segoe UI", Roboto, sans-serif;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #222;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.shop_table thead th {
  background-color: #f7f7f7;
  padding: 12px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.shop_table tbody td,
.shop_table tfoot td,
.shop_table tfoot th {
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.woocommerce-table__product-name a {
  color: #7017FC;
  text-decoration: none;
  font-weight: 500;
}

.woocommerce-table__product-name a:hover {
  text-decoration: underline;
}

.product-quantity {
  display: inline-block;
  margin-left: 5px;
  font-weight: bold;
  color: #555;
}

.woocommerce-Price-amount {
  font-weight: 600;
  color: #222;
}

.wc-item-meta {
  margin: 5px 0 0;
  font-size: 0.75rem;
  list-style: none;
  padding-left: 0;
}

.wc-item-meta li {
  color: #666;
}

tfoot tr {
  background: #fafafa;
  font-weight: 500;
}

tfoot td,
tfoot th {
  border-top: 2px solid #ddd;
}

.woocommerce-customer-details address {
  font-style: normal;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

.woocommerce-customer-details p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #666;
}

/* Icons (if needed) */
.woocommerce-customer-details--phone::before {
  content: "📞";
}
.woocommerce-customer-details--email::before {
  content: "📧 ";
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .shop_table thead {
    display: none;
  }

  .shop_table,
  .shop_table tbody,
  .shop_table tr,
  .shop_table td {
    display: block;
    width: 100%;
  }

  .shop_table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fefefe;
  }

  .shop_table td {
    text-align: right;
    position: relative;
    padding-left: 50%;
  }

  .shop_table td::before {
    content: attr(data-title);
    position: absolute;
    left: 10px;
    top: 12px;
    font-weight: bold;
    text-align: left;
    color: #555;
  }

  .woocommerce-customer-details,
  .woocommerce-order-details {
    padding: 15px;
  }

  .woocommerce-order-details__title,
  .woocommerce-column__title {
    font-size: 1.25rem;
  }
}
