/**
 * My Account Page Styles
 * 
 * This stylesheet is only loaded on the WooCommerce My Account page.
 */

/* My Account Page Wrapper */
.woocommerce-account .woocommerce {
	max-width: 1200px;
	margin: 0 auto 20px;
	padding: 2rem 1rem;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}
body.woocommerce-account.logged-in .woocommerce {
    flex-wrap: nowrap;
}
.woocommerce-MyAccount-content a,
.elementor .woocommerce-MyAccount-content a {
    color: #000000;
	text-decoration: underline;
}

/* My Account Navigation */
.woocommerce-MyAccount-navigation {
	background: #fff;
	padding: 1.5rem;
	border-radius: 0px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.woocommerce-MyAccount-content button.show-password-input {
    display: none;
}

/* Password Field Toggle */
.password-field-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.password-field-wrapper .password-input {
  margin-bottom: 10px;
}
.password-field-wrapper input[type="password"],
.password-field-wrapper input[type="text"] {
	padding-right: 45px;
}

.password-toggle {
	position: absolute;
	right: 10px;
	top: 13px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	margin: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	transition: color 0.3s ease;
}

.password-toggle:hover {
	color: #000;
}

.password-toggle:focus {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.password-toggle .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	line-height: 20px;
}

.woocommerce-MyAccount-navigation ul li {
	margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-navigation ul li:last-child {
	margin-bottom: 0;
}

.woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 0.75rem 1rem;
	color: #333;
	text-decoration: none;
	border-radius: 0px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
	background-color: #f5f5f5;
	color: #000;
}

/* My Account Content */
.woocommerce-MyAccount-content {
	background: #fff;
	padding: 2rem;
	border-radius: 0px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	width: calc(75%-20px);
}

/* Dashboard */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
	padding: 1rem;
	margin-bottom: 1.5rem;
	border-radius: 0px;
}

.woocommerce-MyAccount-content .woocommerce-info {
	background-color: #e7f3ff;
	border-left: 4px solid #0073aa;
}

.woocommerce-MyAccount-content .woocommerce-message {
	background-color: #d4edda;
	border-left: 4px solid #28a745;
}

/* Addresses */
.woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-top: 2rem;
}

.woocommerce-Address {
	background: #f9f9f9;
	padding: 1.5rem;
	border-radius: 0px;
}

.woocommerce-Address-title h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.woocommerce-Address address {
	margin-bottom: 1rem;
	font-style: normal;
	line-height: 1.8;
}

/* Orders Table */
.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5rem;
}

.woocommerce-orders-table thead {
	background-color: #f5f5f5;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}
.woocommerce-orders-table td{
	font-size: 14px;
    font-weight: 400;
    color: #000000;
}

.woocommerce-orders-table th {
	font-size: 20px;
    text-transform: uppercase;
    font-family: 'Bebas Neue';
    font-weight: 400;
    padding: 10px;
}

.woocommerce-orders-table tbody tr:hover {
	background-color: #f9f9f9;
}

/* Order View */
.woocommerce-order-details {
	margin-top: 2rem;
	padding: 1.5rem;
	background: #f9f9f9;
}

.woocommerce-order-details__title,
section.woocommerce-customer-details h2,
.woocommerce-Addresses h2 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 30px;
	font-family: 'Bebas Neue';
    font-weight: 400;
    text-transform: uppercase;
}

.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.woocommerce-table--order-details tfoot th {
	font-weight: 600;
}

.woocommerce-table--order-details tfoot td {
	font-weight: 600;
}

/* Customer Details */
.woocommerce-customer-details {
	margin-top: 2rem;
	padding: 1.5rem;
	background: #f9f9f9;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
	margin-top: 1rem;
}

/* Forms */
.woocommerce-account .woocommerce-form {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0px 0px 10px #cccccc;
}

.woocommerce-account .form-row {
	margin-bottom: 1.5rem;
}

.woocommerce-account .form-row label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.woocommerce-account .form-row input[type="text"],
.woocommerce-account .form-row input[type="email"],
.woocommerce-account .form-row input[type="password"],
.woocommerce-account .form-row input[type="tel"],
.woocommerce-account .form-row textarea,
.woocommerce-account .form-row select {
	width: 100%;
	padding: 0px 15px;
	border: 1px solid #ddd;
	border-radius: 0px;
	font-size: 16px;
	height: 50px;
}

.woocommerce-address-fields input{
	height: 50px;
}

.woocommerce-address-fields .select2-container .select2-selection--single .select2-selection__rendered {
    height: 50px;
    line-height: 50px;
    padding-left: 15px;
}

.woocommerce-address-fields span.select2-selection.select2-selection--single{
	height: 50px;
}

.woocommerce-address-fields .select2-container .select2-selection--single span.select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}

.woocommerce-account .form-row .password-field-wrapper {
	width: 100%;
}

li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
    display: none;
}

.woocommerce-account .woocommerce-button,
.woocommerce-account .elementor.woocommerce-button,
.woocommerce-account .button,
.woocommerce-account .elementor .button {
	display: block;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 10px 30px;
    margin-top: 15px;
    text-transform: uppercase;
    font-family: 'Barlow Condensed';
    font-size: 16px;
    border: none;
	text-decoration: none;
}

.woocommerce-account .woocommerce-button:hover,
.woocommerce-account .button:hover {
	background-color: #ecbc4c;
    color: #000000;
}

/* Downloads */
.woocommerce-MyAccount-downloads {
	margin-top: 2rem;
}

.woocommerce-MyAccount-downloads .woocommerce-Message {
	padding: 1rem;
	background-color: #e7f3ff;
	border-left: 4px solid #0073aa;
	border-radius: 0px;
}

/* Payment Methods */
.woocommerce-PaymentMethods {
	margin-top: 2rem;
}

.payment_methods {
	list-style: none;
	padding: 0;
	margin: 0;
}

.payment_methods li {
	margin-bottom: 1rem;
	padding: 1rem;
	background: #f9f9f9;
	border-radius: 0px;
}

nav.woocommerce-MyAccount-navigation {
    width: 25%;
	min-width: 25%;
	height: max-content;
}

.loggedin-heading,
body.logged-in .loggedout-heading{
	display: none;
}

body.logged-in .loggedin-heading{
	display: block;
}

.loggedout-heading{
	display: block;
}

.customer-dashboard .woocommerce-notices-wrapper + h2 {
    display: none;
}

.woocommerce-account .woocommerce-form input{
	border-radius: 0;
	font-size: 16px;
    font-family: 'Alibaba Sans';
    font-weight: 400;
    color: #000000;
}
button.show-password-input {
    display: none;
}
.woocommerce-account .form-row .password-field-wrapper .password-input {
    width: 100%;
}
.woocommerce-account .woocommerce-form .woocommerce-LostPassword.lost_password a {
    color: #000000;
    text-decoration: underline;
}
.customer-dashboard .woocommerce-error {
  background: none;
  list-style: none;
  padding: 0px;
  text-align: center;
  margin: 0px 0px 20px;
}
.myorder-item-wrap {
    display: flex;
    gap: 16px;
}
tr.woocommerce-table__line-item.order_item td.woocommerce-table__product-name.product-name {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
img.product-hover-image.lazyloaded {
    display: none;
}
tr.woocommerce-table__line-item.order_item td.woocommerce-table__product-name.product-name ul.wc-item-meta {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0px;
}
tr.woocommerce-table__line-item.order_item{
	vertical-align: top;
}
tr.woocommerce-table__line-item.order_item td.woocommerce-table__product-name.product-name ul.wc-item-meta li {
    display: flex;
    align-items: center;
    gap: 0px 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.woocommerce-account .woocommerce,
	body.woocommerce-account.logged-in .woocommerce{
		flex-wrap: wrap;
	}
	nav.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content {
		width: 100%;
	}
}
@media (max-width: 768px) {
	.woocommerce-account .woocommerce {
		padding: 1rem 15px;
	}

	table.shop_table_responsive tr td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions:before{
		display: none;
	}

	.woocommerce-table--order-details th, .woocommerce-table--order-details td {
		font-size: 14px;
	}	

	.woocommerce-MyAccount-navigation,
	.woocommerce-MyAccount-content {
		padding: 1rem;
	}

	.woocommerce-Addresses {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.woocommerce-orders-table {
		font-size: 0.875rem;
	}

	.woocommerce-orders-table th,
	.woocommerce-orders-table td {
		padding: 0.5rem;
	}
	.woocommerce-order-details,
	.woocommerce-customer-details{
		padding: 10px;
	}
}

