.woocommerce-account .page-header,
.woocommerce-account .entry-title,
.woocommerce-account .page-title {
	display: none;
}

.apicola-account-page {
	display: grid;
	grid-template-columns: 310px minmax(0, 1fr);
	gap: 24px;
	max-width: 1312px;
	margin: 0 auto;
	padding: 40px 20px 120px;
	color: #000;
	font-family: Montserrat, sans-serif;
}

.apicola-account-page *,
.apicola-account-page *::before,
.apicola-account-page *::after {
	box-sizing: border-box;
	font-family: inherit;
}

.apicola-account-nav {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 24px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
	align-self: start;
}

.apicola-account-nav ul {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apicola-account-nav li {
	margin: 0;
	padding: 0;
	border: 0;
}

.apicola-account-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 8px;
	color: #000;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-decoration: none;
}

.apicola-account-nav .is-active a,
.apicola-account-nav .woocommerce-MyAccount-navigation-link.is-active a {
	background: #cf8c28;
	color: #fff;
	font-weight: 700;
}

.apicola-account-nav__icon,
.apicola-account-nav__icon svg {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

.apicola-account-nav__icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.apicola-account-content {
	float: none !important;
	width: auto !important;
	min-width: 0;
}

.apicola-account-card,
.apicola-orders-card,
.apicola-order-detail {
	margin: 0 0 24px;
	padding: 24px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
}

.apicola-account-card__header,
.apicola-order-detail__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.apicola-account-card h2,
.apicola-orders-card h2,
.apicola-order-detail h2,
.apicola-order-detail h3,
.apicola-order-address h3,
.apicola-order-summary h3 {
	margin: 0;
	color: #000;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.apicola-account-edit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
	color: #000;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
}

.apicola-account-edit svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.apicola-account-form {
	display: block;
}

.apicola-account-form::after {
	content: "";
	display: block;
	clear: both;
}

.apicola-account-form .form-row {
	margin: 0 0 22px;
	padding: 0;
}

.apicola-account-form .form-row-first,
.apicola-account-form .form-row-last {
	width: calc(50% - 8px);
}

.apicola-account-form .form-row-first {
	float: left;
	clear: both;
}

.apicola-account-form .form-row-last {
	float: right;
}

.apicola-account-form .form-row-wide {
	clear: both;
	width: 100%;
}

.apicola-account-form label {
	display: block;
	margin-bottom: 7px;
	color: #000;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.apicola-account-form input.input-text,
.apicola-account-form select,
.apicola-account-form textarea {
	width: 100%;
	min-height: 56px;
	padding: 13px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
	color: #000;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	box-shadow: none;
}

.apicola-password-field {
	position: relative;
	display: block;
}

.apicola-password-field input {
	padding-right: 48px !important;
}

.apicola-password-toggle {
	position: absolute;
	top: 50%;
	right: 12px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	transform: translateY(-50%);
	cursor: pointer;
}

.apicola-password-toggle svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.apicola-account-save,
.apicola-account-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 14px 18px !important;
	border: 1px solid #cf8c28 !important;
	border-radius: 8px !important;
	background: #cf8c28 !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 24px !important;
	text-decoration: none !important;
	cursor: pointer;
}

.apicola-account-add-address {
	margin: 0;
	text-align: center;
}

.apicola-orders-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.apicola-order-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 24px;
	border: 1px solid #ccc;
	border-radius: 8px;
	color: #000;
	text-decoration: none;
}

.apicola-order-row__main {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.apicola-order-row__main strong {
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.apicola-order-row__main span,
.apicola-order-row__main em {
	color: #cf8c28;
	font-size: 14px;
	font-style: normal;
	line-height: 20px;
}

.apicola-order-row__total {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	white-space: nowrap;
	font-size: 16px;
	line-height: 24px;
}

.apicola-account-back {
	display: inline-flex;
	margin: 0 0 24px;
	color: #cf8c28;
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
}

.apicola-order-detail__header p {
	margin: 4px 0 0;
	color: #000;
	font-size: 14px;
	line-height: 20px;
}

.apicola-order-status {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 16px;
	border-radius: 20px;
	background: #e9faec;
	color: #159431;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
}

.apicola-delivery-status {
	margin: 18px 0;
	padding: 24px;
	border-radius: 8px;
	background: #fff8ef;
}

.apicola-delivery-status h3 {
	margin-bottom: 24px;
	color: #4b3728;
}

.apicola-status-track {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	margin: 0 24px 24px;
}

.apicola-status-track::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 5px;
	border-radius: 10px;
	background: #e2d4bd;
	transform: translateY(-50%);
}

.apicola-status-track::after {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 5px;
	border-radius: 10px;
	background: #cf8c28;
	transform: translateY(-50%);
}

.apicola-status-track[data-current-step="1"]::after { width: 0; }
.apicola-status-track[data-current-step="2"]::after { width: 33.333%; }
.apicola-status-track[data-current-step="3"]::after { width: 66.666%; }
.apicola-status-track[data-current-step="4"]::after { width: 100%; }

.apicola-status-track span {
	position: relative;
	z-index: 2;
	width: 24px;
	height: 24px;
	margin: 0 auto;
	border-radius: 50%;
	background: #e2d4bd;
}

.apicola-status-track span.is-active {
	background: #cf8c28;
}

.apicola-status-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	text-align: center;
}

.apicola-status-steps strong,
.apicola-status-steps small {
	display: block;
	font-size: 14px;
	line-height: 20px;
}

.apicola-status-steps small {
	color: #9a8d7d;
	font-weight: 700;
}

.apicola-status-steps .is-active small {
	color: #cf8c28;
}

.apicola-order-section-title {
	margin: 18px 0 14px !important;
}

.apicola-order-products {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.apicola-order-product {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px;
	border: 1px solid #ccc;
	border-radius: 8px;
}

.apicola-order-product__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	border-radius: 8px;
	background: #fff8e9;
}

.apicola-order-product__image img {
	width: auto;
	height: auto;
	max-width: 92px;
	max-height: 108px;
	object-fit: contain;
}

.apicola-order-product__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.apicola-order-product__content strong {
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	text-transform: uppercase;
}

.apicola-order-product__content span {
	color: #cf8c28;
	font-size: 14px;
	line-height: 20px;
}

.apicola-order-product__total {
	white-space: nowrap;
	font-size: 16px;
	line-height: 24px;
}

.apicola-order-bottom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 84px;
	margin-top: 16px;
}

.apicola-order-address,
.apicola-order-summary {
	padding: 24px;
	border: 1px solid #ccc;
	border-radius: 8px;
}

.apicola-order-address p {
	margin: 28px 0;
	font-size: 16px;
	line-height: 24px;
}

.apicola-order-address hr {
	margin: 0 0 32px;
	border: 0;
	border-top: 1px solid #d9d9d9;
}

.apicola-order-address .apicola-account-button {
	width: 100%;
}

.apicola-order-summary table {
	width: 100%;
	margin-top: 26px;
	border-collapse: collapse;
	border: 0 !important;
	background: #fff !important;
}

.apicola-order-summary th,
.apicola-order-summary td {
	padding: 5px 0 !important;
	border: 0 !important;
	background: #fff !important;
	color: #000;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	vertical-align: middle;
}

.apicola-order-summary th {
	text-align: left;
	white-space: nowrap;
}

.apicola-order-summary td {
	text-align: right;
}

.apicola-order-summary__divider td {
	height: 18px;
	padding: 9px 0 !important;
	border-top: 1px solid #d9d9d9 !important;
	background: #fff !important;
	line-height: 0 !important;
}

.apicola-order-summary__divider td::before {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	background: transparent;
}

.apicola-order-summary__divider + tr th,
.apicola-order-summary__divider + tr td {
	padding-top: 8px !important;
}

.apicola-order-summary .order-total th,
.apicola-order-summary .order-total td {
	padding-top: 9px !important;
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
}

@media (max-width: 900px) {
	.apicola-account-page,
	.apicola-order-bottom {
		grid-template-columns: 1fr;
	}

	.apicola-account-form .form-row-first,
	.apicola-account-form .form-row-last {
		float: none;
		width: 100%;
	}

	.apicola-order-product {
		grid-template-columns: 86px minmax(0, 1fr);
	}

	.apicola-order-product__total {
		grid-column: 2;
	}

	.apicola-status-steps {
		grid-template-columns: 1fr;
		text-align: left;
	}
}
