/**
 * WooCommerce My Account 页面自定义样式
 * 覆盖 blocksy 主题的默认样式
 */

/* My Account 页面容器 */
.tooto-my-account-page {
	/* 可以在这里添加页面级别的样式 */
	position: relative;
}

.tooto-my-account-page .woocommerce.tooto-woo-account.ct-woo-unauthorized{
	padding: 60px 0;
}

.tooto-my-account-page .tooto-woo-account-ResetPassword {
	max-width: 450px;
	margin: auto;
}
.tooto-my-account-page .tooto-woo-account-ResetPassword .form-row-first {
	width: 100%;
}

/* 主账户容器 - 使用 tooto-woo-account 类 */
.tooto-woo-account {
	/* 可以在这里添加主容器的自定义样式 */
	position: relative;
	max-width: 100%;
	width: 100%;
}
.woocommerce-MyAccount-navigation ul li:not(:last-child) a{
	border-bottom: 0;
}
.tooto-woo-account .ct-acount-nav{
	border-radius: 0;
	padding-block: 40px;
	height: calc(100vh - 64px);
	border-right: 1px solid #EDEDED;
}
@media (min-width: 690px) {
	.tooto-woo-account .ct-acount-nav{
		margin-inline-end: 0;
	}
}
.woocommerce-MyAccount-content{
	height: calc(100vh - 64px);
overflow-y: auto;
}
.woocommerce-MyAccount-navigation ul li:hover a, .woocommerce-MyAccount-navigation ul li.is-active a{
	color: unset;
    background: unset;
}
.woocommerce-MyAccount-navigation ul li:hover > a, .woocommerce-MyAccount-navigation ul li.is-active > a{
	color: var(--account-nav-text-active-color, var(--theme-palette-color-8));
    background: var(--account-nav-background-active-color, var(--theme-palette-color-1));
}
/* 覆盖 blocksy 主题的账户导航样式 */
.tooto-my-account-page .ct-acount-nav,
.tooto-my-account-page .woocommerce-MyAccount-navigation,
.tooto-woo-account .ct-acount-nav,
.tooto-woo-account .woocommerce-MyAccount-navigation {
	/* 自定义导航样式 */
	position: relative;
}

/* 覆盖 blocksy 主题的导航菜单项样式 */
.tooto-my-account-page .woocommerce-MyAccount-navigation ul li a,
.tooto-woo-account .woocommerce-MyAccount-navigation ul li a {
	/* 自定义菜单项链接样式 */
	position: relative;
	display: flex;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
}

/* 隐藏 blocksy 主题的默认图标 */
.tooto-woo-account .woocommerce-MyAccount-navigation ul li a:before {
	display: none !important;
	content: none !important;
}

/* 自定义菜单图标样式 */
.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-menu-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-inline-end: 15px;
	flex-shrink: 0;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-menu-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* 菜单标签 */
.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-menu-label {
	flex: 1;
}

/* 激活项样式 - 红色背景 */
/* 样式已通过其他规则覆盖 */

/* Management 子菜单样式 */
.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-has-submenu {
	position: relative;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-menu-toggle {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-toggle-icon {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 12px;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-toggle-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-expanded .tooto-submenu-toggle-icon {
	transform: rotate(180deg);
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-item {
	margin: 0;
	padding: 10px 0;
}
.woocommerce-MyAccount-navigation.has-submenu ul li:hover a{
	color: unset;
	background-color: unset;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-item-active a {
	background: var(--theme-palette-color-1) !important;
	color: #ffffff !important;
	padding: 10px 20px;
	display: block;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-level-2 {
	list-style: none;
	margin: 0;
	padding: 0;
	padding-left: 20px;
	margin-top: 5px;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-item {
	margin: 0;
	padding: 0;
}

.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-item a {
	color: #000;
	text-decoration: none;
	padding: 5px 0 5px 54px;
	display: flex;
	align-items: center;
	font-weight: 500;
	font-size: 14px;
	line-height: 24px;

}
.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-item a:hover {
	color: var(--account-nav-text-active-color, var(--theme-palette-color-8));
    background: var(--account-nav-background-active-color, var(--theme-palette-color-1));
}

/* 隐藏子菜单项的图标 */
.tooto-woo-account .woocommerce-MyAccount-navigation .tooto-submenu-item a:before {
	display: none !important;
	content: none !important;
}

/* 子菜单项激活和悬停样式 */
/* 样式已通过其他规则覆盖 */
.woocommerce-MyAccount-navigation ul li.is-active:has(.tooto-submenu) a{
	background-color: transparent;
	color: #000;
}
.woocommerce-MyAccount-navigation ul li.is-active:hover > a{
	/* color: var(--account-nav-text-active-color, var(--theme-palette-color-8)); */
    /* background: var(--account-nav-background-active-color, var(--theme-palette-color-1)); */
}
/* 端点内容样式 */
.tooto-endpoint-content {

}

.tooto-endpoint-content h2 {
	margin-bottom: 20px;
	font-size: 24px;
	font-weight: 600;
}

.tooto-endpoint-content .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.tooto-edit-address-wrapper .woocommerce-address-fields .woocommerce-address-fields__field-wrapper {
    display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.tooto-edit-address-wrapper .woocommerce-address-fields .woocommerce-address-fields__field-wrapper  .form-row-first, .form-row-last {
    width: 100%;
}
.tooto-edit-address-wrapper .woocommerce-input-wrapper .radio {
    margin-bottom: 0;
}
.tooto-endpoint-content .form-row {
	margin-bottom: 15px;
}

.tooto-endpoint-content .form-row label {
	display: block;
	margin-bottom: 5px;
	font-weight: 400;
	color: #767676;
	font-size: 14px;
}

.tooto-endpoint-content .form-row strong {
	display: block;
	color: #000;
	font-weight: 400;
}

.tooto-endpoint-content .form-row-wide {
	grid-column: 1 / -1;
}

/* Store Information 布局 */
.tooto-store-information-wrapper {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 40px;
	margin-top: 20px;
}

@media (max-width: 1024px) {
	.tooto-store-information-wrapper {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* Store Information 表单样式 */
.tooto-store-information-form-wrapper {
	flex: 1;
}

.tooto-store-information-form {
	max-width: 100%;
}

.tooto-form-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 20px;
}

.tooto-form-field {
	display: flex;
	flex-direction: column;
}

.tooto-form-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 400;
	color: #767676;
	font-size: 14px;
}

.tooto-form-field input[type="text"],
.tooto-form-field input[type="url"],
.tooto-form-field textarea,
.tooto-form-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	transition: border-color 0.3s ease;
}

.tooto-form-field input[type="text"]:focus,
.tooto-form-field input[type="url"]:focus,
.tooto-form-field textarea:focus {
	outline: none;
	border-color: #C1272D;
}

.tooto-form-field textarea {
	resize: vertical;
	min-height: 80px;
}

/* 隐藏原始 select */
.tooto-select-hidden {
	display: none !important;
}

/* 自定义下拉选择器容器 */
.tooto-custom-select {
	position: relative;
	width: 100%;
}

/* 自定义下拉触发器 */
.tooto-custom-select-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 14px;
	line-height: 1.5;
	min-height: 44px;
}

.tooto-custom-select-trigger:hover {
	border-color: var(--theme-palette-color-1);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-palette-color-1) 10%, transparent);
}

.tooto-custom-select-trigger:active {
	transform: translateY(1px);
}

#shipping_address_type_field {
    float: initial;
}
#shipping_address_type_field .woocommerce-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 选中值显示 */
.tooto-custom-select-value {
	flex: 1;
	color: #333;
	text-align: left;
}

/* 下拉箭头 SVG */
.tooto-custom-select-arrow {
	flex-shrink: 0;
	margin-left: 12px;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: var(--theme-palette-color-1);
}

/* 打开状态 */
.tooto-custom-select.open .tooto-custom-select-trigger {
	border-color: var(--theme-palette-color-1);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-palette-color-1) 15%, transparent);
}

.tooto-custom-select-trigger.changed {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-palette-color-1) 20%, transparent);
}

.tooto-custom-select.open .tooto-custom-select-arrow {
	transform: rotate(180deg);
}

/* 下拉选项列表 */
.tooto-custom-select-options {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
}

.tooto-custom-select.open .tooto-custom-select-options {
	max-height: 300px;
	opacity: 1;
	transform: translateY(0);
	overflow-y: auto;
}

/* 下拉选项项 */
.tooto-custom-select-option {
	padding: 12px 16px;
	cursor: pointer;
	color: #333;
	font-size: 14px;
	line-height: 1.5;
	transition: all 0.2s ease;
	position: relative;
}

.tooto-custom-select-option:hover {
	background-color: color-mix(in srgb, var(--theme-palette-color-1) 5%, white);
	color: var(--theme-palette-color-1);
}

.tooto-custom-select-option.selected {
	background-color: var(--theme-palette-color-1);
	color: #fff;
	font-weight: 500;
}

.tooto-custom-select-option.selected::after {
	content: '✓';
	position: absolute;
	right: 16px;
	font-weight: bold;
}

/* Select2 下拉在 My Account 页面上的滚动优化（移动端） */
body.woocommerce-account .select2-dropdown {
	overscroll-behavior: contain;
	z-index: 10000;
}
body.woocommerce-account .select2-results > .select2-results__options {
	max-height: 300px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
body.woocommerce-account .select2-container .select2-selection--single {
	touch-action: pan-y;
}
body.woocommerce-account {
	touch-action: pan-y;
}
/* 包装 select 的容器，用于更好的控制 */
.tooto-form-field {
	position: relative;
}

/* Profile Picture 样式 */
.tooto-profile-picture-field {
	margin-bottom: 30px;
}

.tooto-profile-picture-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
}

.tooto-profile-picture-preview {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ddd;
}

.tooto-profile-picture-input {
	display: none;
}

.tooto-profile-picture-label {
	display: inline-block;
	padding: 8px 16px;
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease;
}

.tooto-profile-picture-label:hover {
	background-color: #e9e9e9;
}

/* Update 按钮样式 */
.tooto-update-button {
	background-color: var(--theme-palette-color-1) !important;
	color: #ffffff !important;
	padding: 12px 30px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.tooto-update-button:hover {
	background-color: color-mix(in srgb, var(--theme-palette-color-1) 80%, black) !important;
}

/* Application Document 样式 */
.tooto-application-document-wrapper {
	border: 1px solid #eee;
	border-radius: 8px;
	height: fit-content;
	overflow: hidden;
}

h3.tooto-application-document-title {
	font-size: 20px;
	font-weight: 600;
	color: #1A1A1A;
	padding: 20px 16px 16px;
	margin-bottom: 0;
	border-bottom: 1px solid #eee;
	background-color: #F5F5F5;
}

.tooto-application-document-list {
	list-style: none;
	margin: 0;
	gap: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tooto-application-document-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tooto-application-document-item:last-child {
	border-bottom: none;
}

.tooto-document-name {
	font-size: 14px;
	color: #333;
	flex: 1;
}

.tooto-document-view-link {
	color: var(--theme-palette-color-1);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.tooto-document-view-link:hover {
	color: color-mix(in srgb, var(--theme-palette-color-1) 80%, black);
	text-decoration: underline;
}

/* 覆盖 blocksy 主题的内容区域样式 */
.tooto-my-account-page .woocommerce-MyAccount-content,
.tooto-woo-account .woocommerce-MyAccount-content {
	/* 自定义内容区域样式 */
	position: relative;
}

/* 账户导航包装器 */
.tooto-account-nav-wrapper {
	/* 导航包装器样式 */
	position: relative;
}

/* 账户内容包装器 */
.tooto-account-content-wrapper {
	/* 内容包装器样式 */
	position: relative;
}

/* 自定义端点样式 */
.tooto-custom-endpoint-my-custom-page {
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}
.tooto-my-account-page .woocommerce-MyAccount-content{
	padding: 16px;
	background-color: #fff;
}
/* 响应式调整 */
@media (max-width: 767px) {
	/* 移动端样式调整 */
	.tooto-my-account-page .ct-acount-nav {
		/* 移动端导航样式 */
		position: relative;
	}
	.tooto-form-field input[type="text"],.tooto-form-field input[type="url"] ,.tooto-form-field input[type="text"], .tooto-form-field input[type="url"], .tooto-form-field textarea{
		height: 35px;
	}
	.tooto-form-fields {
		gap: 16px;
	}
}

.tooto-orders-list-wrapper {
	background-color: #fff;
	overflow-x: auto;
    border: 1px solid #EEEEEE;
    border-top: none;
    border-radius: 0 0 16px 16px;
}

.tooto-orders-list {
	min-width: 800px;
    width: 100%;
}

.tooto-orders-row {
	display: grid;
	grid-template-columns: 2fr 3.2fr 1.5fr 1fr 1fr 100px;
	align-items: center;
	padding: 16px 24px;
	border-bottom: 1px solid #eee;
}

.tooto-orders-header {
	/* Header wrapper style */
}

/* Specific style for the header row */
.tooto-orders-header .tooto-orders-row {
	font-weight: 600;
	color: #444;
	font-size: 14px;
	border-bottom: 1px solid #e0e0e0;
}

.tooto-orders-row {
    color: #333;
    font-size: 14px;
}

.tooto-orders-row:last-child {
    border-bottom: none;
}

.tooto-orders-col {
	padding: 0 10px;
    overflow: hidden;
}

.tooto-orders-col:first-child {
    padding-left: 0;
}

/* PC Specific Column Alignment */
@media (min-width: 768px) {
	/* Action Column */
	.tooto-orders-col:last-child {
		padding-right: 0;
		display: flex;
	}
}

/* Management Tabs */
.tooto-management-tabs {
	display: none;
	gap: 30px;
	margin-bottom: 30px;
}

.tooto-management-tab {
	font-size: 18px;
	font-weight: 500;
	color: #000;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px; /* Overlap the bottom border */
	transition: all 0.3s;
}

.tooto-management-tab:hover {
	color: #C1272D;
}

.tooto-management-tab.active {
	color: #C1272D;
	border-bottom-color: #C1272D;
}

/* Mobile responsive for tabs */
@media (max-width: 768px) {
	.tooto-management-tabs {
		display: flex;
		gap: 20px;
		overflow-x: auto;
		white-space: nowrap;
		/* Hide scrollbar */
		-ms-overflow-style: none;
		scrollbar-width: none;
	}
	
	.tooto-management-tabs::-webkit-scrollbar {
		display: none;
	}
	
	.tooto-management-tab {
		font-size: 16px;
	}
}

/* Product Column Specifics */
.tooto-product-display {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
    color: #333;
}

.tooto-orders-col a {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.tooto-orders-col a:hover {
    color: var(--theme-palette-color-1, #C1272D);
}

.tooto-order-total-display {
    font-weight: 600;
}

/* Action Button */
.tooto-orders-col .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 4px;
    min-height: 32px;
    width: 100%;
    max-width: 82px;
    background-color: var(--theme-palette-color-1, #C1272D);
    color: white !important;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    line-height: 1;
    font-weight: 500;
}
h3.tooto-dashboard-title {
	font-size: 24px;
    font-weight: 600;
	margin-bottom: 0;
    color: #000;
}
.tooto-orders-col .button:hover {
    background-color: color-mix(in srgb, var(--theme-palette-color-1) 85%, black);
    color: white !important;
}

.tooto-dashboard-header {
	border-radius: 16px 16px 0 0;
	background-color: #F5F5F5;
	border: 1px solid #EEEEEE;
	border-bottom: none;
	padding: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.tooto-orders-row {
	
}
.tooto-select-wrapper select {
	padding: 8px 24px 8px 16px;
	box-sizing: border-box;
	border: 1px solid #D4D4D4;
	background-color: transparent;
	max-height: 39px;

	color: #767676;
	font-size: 14px;
}

/* Mobile Toggle and Modal Styles */
.tooto-account-mobile-toggle {
    display: none;
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: url('../images/arraw-bg.png') no-repeat center center;
    background-size: cover;
    color: white;
    width: 20px;
    height: 50px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease-out;
}

.tooto-account-mobile-toggle svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease-out;
}

/* Move toggle with drawer when open */
body.tooto-account-menu-open .tooto-account-mobile-toggle {
    transform: translate(calc(-1 * min(80vw, 300px)), -50%);
}

body.tooto-account-menu-open .tooto-account-mobile-toggle svg {
    transform: rotate(0deg);
}

.tooto-account-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

@media (max-width: 767px) {
    /* 移动端订单列表样式 */
    .tooto-orders-list-wrapper {
        border: none;
        background: transparent;
        overflow-x: hidden;
    }

    .tooto-orders-list {
        min-width: 100%;
    }
	.tooto-application-document-wrapper {
		border-radius: 4px;
	}
    /* 隐藏表头 */
    .tooto-orders-header {
        display: none;
    }
	.tooto-custom-select-trigger {
		min-height: 35px;
		padding: 4px 12px;
	}
    /* 每一行变成一个卡片 */
    .tooto-orders-row {
        display: flex;
        flex-direction: column;
        background: #fff;
        margin-bottom: 60px;
        padding: 0;
        border: none;
        border-radius: 8px;
    }

    .tooto-orders-col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
        box-sizing: border-box;
    }

    /* 使用 data-label 显示标签 */
    .tooto-orders-col::before {
        content: attr(data-label);
        font-weight: 500;
        color: #878282;
        font-size: 13px;
        text-align: left;
        margin-right: 10px;
        flex-shrink: 0;
    }
	h3.tooto-dashboard-title {
		font-size: 20px;
	}

    /* 针对不同列的特殊调整 */
    
    /* Order Number */
    .tooto-orders-col[data-label="Order Number"] a {
        font-weight: 600;
        color: #333;
    }

    /* Product - 允许换行但限制行数 */
    .tooto-orders-col[data-label="Product"] {
        align-items: flex-start;
    }
    
    .tooto-orders-col[data-label="Product"] .tooto-product-display {
        white-space: normal;
        text-align: right;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* State (Status) Pill */
    .tooto-orders-col[data-label="State"] span {
        margin-left: auto;
    }

    .tooto-orders-col[data-label="Action"]::before {
        /* display: none; */
        align-self: center;
    }
    
    .tooto-orders-col[data-label="Action"] .button {
        width: auto;
        min-width: 80px;
    }

    /* 头部筛选器调整 */
    .tooto-dashboard-header {
        gap: 16px;
        border-radius: 4px 4px 0 0;
        margin-bottom: 20px;
		padding: 10px 8px;
    }
    
    .tooto-dashboard-filters {
        width: 100%;
        flex-direction: column;
    }
    
    .tooto-select-wrapper {
        width: 100%;
    }
    
    .tooto-select-wrapper select {
        width: 100%;
    }

    .tooto-account-mobile-toggle {
        display: flex;
    }
    
    .tooto-woo-account .ct-acount-nav {
        /* Reset any layout styles that might interfere */
        border-right: none;
        height: auto;
        padding-block: 0;
		margin-bottom: 0;
    }

    /* Hide the navigation by default on mobile - Right Drawer Style */
    .woocommerce-MyAccount-navigation.tooto-custom-navigation {
        display: block;
        position: fixed;
        top: 24%;
        right: 0;
        bottom: 0;
        left: auto;
        width: 80%;
        max-width: 300px;
        height: 50vh;
        background-color: white;
        z-index: 1001;
        border-radius: 4px;
        overflow-y: auto;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
    }

    .woocommerce-MyAccount-navigation.tooto-custom-navigation.active {
        transform: translateX(0);
    }

    .tooto-account-mobile-overlay.active {
        display: block;
        animation: tootoFadeIn 0.3s ease-out;
    }
    
    /* Adjust menu items for modal look */
    .tooto-woo-account .woocommerce-MyAccount-navigation ul {
        margin: 0;
        padding: 0;
    }
    
    .tooto-woo-account .woocommerce-MyAccount-navigation ul li a {
        padding: 15px 20px;
    }
    
    .tooto-woo-account .woocommerce-MyAccount-navigation ul li:last-child a {
        border-bottom: none;
    }

    /* Dashboard header style - remove rounded corners for drawer */
    .woocommerce-MyAccount-navigation-link--dashboard a {
        background-color: var(--theme-palette-color-1, #C1272D);
        color: white !important;
        border-radius: 0;
    }
    
    .woocommerce-MyAccount-navigation-link--dashboard a:hover {
        background-color: var(--theme-palette-color-1, #C1272D);
    }
    
    .woocommerce-MyAccount-navigation-link--dashboard a .tooto-menu-icon {
        color: white;
    }
}

@keyframes tootoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Order item card for view-order page */
.tooto-order-item-card {
    padding: 16px 0;
}
.tooto-order-item-card + .tooto-order-item-card {
    border-top: 1px solid #eee;
}
.tooto-order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}
.tooto-order-item-header .label {
    color: #8C8C8C;
    font-weight: 500;
}
.tooto-order-item-header .value {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tooto-order-item-header .product-name {
    font-weight: 600;
    color: #3E3333;
}
.tooto-order-item-header .thumb img {
    width: 90px;
    height: auto;
    object-fit: contain;
	background-color: #FAFAFA;
}
.tooto-order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #eee;
}
.tooto-order-item-row .label {
    color: #8C8C8C;
}
.tooto-dashboard-orders-wrapper > div.woocommerce-info {
    background-color: #fff;
}
.tooto-order-item-row .value {
    font-weight: 600;
}
@media (max-width: 768px) {
    .tooto-order-item-header .thumb img {
        width: 80px;
    }
}
/* Mobile Filter Icon & Modal Styles */
.tooto-mobile-filter-trigger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.tooto-mobile-filter-trigger svg {
    width: 16px;
    height: 16px;
}

.tooto-mobile-filter-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.tooto-mobile-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.tooto-mobile-filter-content {
    position: relative;
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    z-index: 10000;
}

.tooto-mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tooto-mobile-filter-header h4 {
    margin: 0;
    font-size: 18px;
}

.tooto-mobile-filter-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.tooto-mobile-filter-body .tooto-select-wrapper {
    margin-bottom: 15px;
}

.tooto-mobile-filter-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.tooto-address-hint {
    font-size: 13px;
    color: #999;
}
.tooto-mobile-filter-body select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}@media (max-width: 768px) {
    .tooto-desktop-filters {
        display: none !important;
    }
    
    .tooto-mobile-filter-trigger {
        display: block;
    }

    /* Mobile Only Elements */
    .mobile-only {
        display: inline-block;
    }

    /* Order Item Card Styles for Mobile */
    .tooto-order-item-card {
        background: #fff;
        margin-bottom: 20px;
		border-bottom: 1px solid #000000;
		padding-bottom: 0;
    }

    .tooto-order-item-header {
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .tooto-order-item-header .value {
        display: flex;
        align-items: center;
		flex-direction: column-reverse;
        gap: 8px;
    }

    .tooto-order-item-header .thumb img {
        width: 85px;
        height: 85px;
        object-fit: cover;
        border-radius: 4px;
    }

    .tooto-order-item-header .product-name {
        font-size: 14px;
        text-align: right;
    }

    .tooto-order-item-row {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
		padding: 16px 0;
    }

    .tooto-order-item-row .label {
        color: #666;
    }

    .tooto-order-item-row .value {
        font-weight: 500;
        color: #333;
    }
    
    .tooto-order-items-header {
        display: none; /* Hide Desktop Header on Mobile */
    }
	.tooto-order-item-card + .tooto-order-item-card {
		border-top: none;
	}
	.mobile-hidden {
		display: none;
	}
    .tooto-edit-address-wrapper .woocommerce-address-fields .woocommerce-address-fields__field-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0px;
    }
    .tooto-edit-address-wrapper #shipping_address_type_field .woocommerce-input-wrapper {
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    .tooto-edit-address-wrapper .woocommerce-input-wrapper .radio {
        width: 90%;
    }
    .tooto-edit-address-wrapper div input {
        min-height: auto;
        height: 35px;
    }
    .tooto-edit-address-wrapper .form-row-last {
        margin-bottom: 16px;
    }
    .tooto-edit-address-wrapper p{
        margin-bottom: 16px;
    }
    .tooto-edit-address-wrapper span.select2-container .select2-selection--single {
        height: 35px;
        font-size: 13px;
    }

    .tooto-endpoint-content.tooto-delivery-address .tooto-address-hint {
        margin-top: 12px;
        color: #999;
        font-size: 13px;
    }
}

@media (min-width: 769px) {
    /* Hide Mobile Trigger */
    .tooto-mobile-filter-trigger {
        display: none;
    }

    /* Hide Mobile Only Labels */
    .mobile-only {
        display: none !important;
    }

    /* Desktop Header Styles */
    .tooto-order-items-header {
        display: flex;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        font-weight: 600;
        color: #888;
        font-size: 14px;
    }

    .tooto-header-col {
        padding: 0 10px;
    }

    /* Column Widths */
    .product-col { flex: 3; }
    .cost-col { flex: 1; text-align: left; }
    .qty-col { flex: 1; text-align: left; }
    .total-col { flex: 1; text-align: left; }

    /* Order Item Row Styles for Desktop */
    .tooto-order-item-card {
        display: flex;
        align-items: center;
        padding: 20px 0;
    }

    /* Match item columns to header columns */
    .tooto-order-item-header {
        flex: 3;
        padding: 0 10px;
        display: flex;
        align-items: center;
    }

    .tooto-order-item-header .value {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .tooto-order-item-header .thumb {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        margin-right: 15px;
    }
    
    .tooto-order-item-header .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

    .tooto-order-item-row {
        flex: 1;
        padding: 0 10px;
		border-top: none;
    }
    
    .tooto-order-item-row.cost-row,
    .tooto-order-item-row.qty-row {
        text-align: left;
    }
    
    .tooto-order-item-row.total-row {
        text-align: right;
		border-top: none;
    }

    .tooto-order-item-row .value {
        font-size: 14px;
        color: #333;
    }
}

/* Logout Confirm Modal */
#tooto-logout-confirm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#tooto-logout-confirm-modal .tooto-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
#tooto-logout-confirm-modal .tooto-modal-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 20px;
}
#tooto-logout-confirm-modal .tooto-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}
#tooto-logout-confirm-modal .tooto-modal-message {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}
#tooto-logout-confirm-modal .tooto-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
#tooto-logout-confirm-modal .tooto-modal-actions .button {
    min-height: 32px;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #333;
}
#tooto-logout-confirm-modal .tooto-modal-actions .tooto-modal-confirm {
    border-color: var(--tooto-accent-color, currentColor);
    background: #C1272D;
    color: #fff;
}

@media (max-width: 768px) {
    #tooto-logout-confirm-modal .tooto-modal-content {
        width: 90%;
    }
    span.select2-container .select2-selection--single .select2-selection__arrow {
        height: 32px;
    }
}
