/*
 * Personal area and favourites.
 */

/* ---------- Favourites ---------- */
.pk-favs { padding-top: 18px; padding-bottom: 40px; }
.pk-favs__title { margin: 0; font-family: var(--pk-font-display); font-size: 32px; font-weight: 600; line-height: 1.1; }
.pk-favs__count { margin: 6px 0 0; color: var(--pk-muted); font-size: 14.5px; }
.pk-favs__save { margin-top: 16px; }
.pk-favs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; padding-top: 20px; }
.pk-favs__grid .pk-card__img { width: 70%; }
.pk-favs__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	padding: 28px 22px;
	border-radius: var(--pk-r-lg);
	background: var(--pk-white);
	text-align: center;
}
.pk-favs__empty[hidden] { display: none; }
.pk-favs__empty > span { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 32px; background: var(--pk-pink-soft); color: var(--pk-cherry); }
.pk-favs__empty h2 { margin: 4px 0 0; font-family: var(--pk-font-display); font-size: 21px; font-weight: 600; }
.pk-favs__empty p { margin: 0 0 6px; color: var(--pk-ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- Account ---------- */
.pk-account { max-width: 720px; margin-inline: auto; padding-bottom: 40px; }
.pk-account__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 12px; font-size: 14px; font-weight: 500; }
.pk-account__content { max-width: none; }

.pk-dash__head { padding-top: 22px; }
.pk-dash__title { margin: 0; font-family: var(--pk-font-display); font-size: 30px; font-weight: 600; line-height: 1.15; }
.pk-dash__sub { margin: 4px 0 0; color: #5B5B66; font-size: 14px; }

.pk-status { display: inline-flex; flex: 0 0 auto; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--pk-white); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pk-status--open { background: var(--pk-sky-soft); color: #2A3F75; }
.pk-status--done { background: var(--pk-success-bg); color: var(--pk-success-ink); }
.pk-status--off { background: var(--pk-chip); color: var(--pk-ink-2); }

.pk-openorder { margin-top: 20px; padding: 18px; border: 1px solid var(--pk-line); border-radius: 24px; background: var(--pk-white); }
.pk-openorder__top { display: flex; align-items: center; justify-content: space-between; color: var(--pk-muted); font-size: 13px; }
.pk-openorder__title { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.pk-track { display: flex; align-items: flex-start; margin: 16px 0 0; padding: 0; list-style: none; }
.pk-track li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; color: #6A6E7E; font-size: 12.5px; }
.pk-track li + li::before { content: ""; position: absolute; top: 11px; inset-inline-end: 50%; width: 100%; height: 2px; background: #DAD8D1; }
.pk-track li.is-done + li::before { background: var(--pk-navy); }
.pk-track__dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid #DAD8D1; border-radius: 12px; background: var(--pk-white); }
.pk-track li.is-done .pk-track__dot { border: 0; background: var(--pk-navy); color: var(--pk-white); }
.pk-track li.is-done { color: var(--pk-ink-2); }
.pk-track li.is-now { color: var(--pk-ink); font-weight: 600; }
.pk-track li.is-now .pk-track__dot { border-color: var(--pk-blue); }
.pk-track li.is-now .pk-track__dot::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--pk-blue); }

.pk-segtabs { display: flex; height: 50px; margin-top: 22px; padding: 4px; border-radius: 25px; background: var(--pk-white); }
.pk-segtabs button { flex: 1; border: 0; border-radius: 21px; background: transparent; color: #45454F; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.pk-segtabs button[aria-selected="true"] { background: var(--pk-navy); color: var(--pk-white); font-weight: 600; }
.pk-segtabs button:focus-visible { outline: 2.5px solid var(--pk-navy); outline-offset: 2px; }
.pk-tabpanel { padding-top: 10px; }
.pk-tabpanel[hidden] { display: none; }
.pk-dash__hint { margin: 6px 0 4px; color: #5B5B66; font-size: var(--pk-fs-sm); }

.pk-pastorder { border-bottom: 1px solid #EEECE6; }
.pk-pastorder summary { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 0; list-style: none; cursor: pointer; }
.pk-pastorder summary::-webkit-details-marker { display: none; }
.pk-pastorder summary .pk-icon { transition: transform .2s var(--pk-ease); }
.pk-pastorder[open] summary .pk-icon { transform: rotate(180deg); }
.pk-pastorder summary:focus-visible { outline: 2.5px solid var(--pk-navy); outline-offset: 2px; border-radius: 8px; }
.pk-pastorder__main { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.pk-pastorder__date { font-size: 15.5px; font-weight: 600; }
.pk-pastorder__sum { color: #5B5B66; font-size: var(--pk-fs-sm); }
.pk-pastorder__items { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 0 16px; list-style: none; }
.pk-reitem { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: var(--pk-white); }
.pk-reitem__img { display: flex; flex: 0 0 60px; align-items: center; justify-content: center; height: 60px; border: 1px solid var(--pk-line); border-radius: 16px; }
.pk-reitem__img img { width: 46px; height: 46px; object-fit: contain; }
.pk-reitem__body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.pk-reitem__name { font-size: var(--pk-fs-sm); line-height: 1.3; }
.pk-reitem__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pk-reitem__qty { display: flex; align-items: center; height: 40px; border: 1px solid var(--pk-line-2); border-radius: 20px; }
.pk-reitem__qty button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: inherit; }
.pk-reitem__qty span { min-width: 20px; font-size: 14px; font-weight: 600; text-align: center; }
.pk-reitem__add, .pk-reitem__added { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: var(--pk-navy); color: var(--pk-white); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.pk-reitem__added { background: var(--pk-success); color: var(--pk-navy); font-weight: 600; cursor: default; }
.pk-reitem__added[hidden], .pk-reitem__add[hidden] { display: none; }
.pk-reitem__out { color: var(--pk-muted); font-size: 13px; }
.pk-reorderbar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 54px; margin-top: 16px; padding: 0 18px; border-radius: 18px; background: var(--pk-navy); color: var(--pk-white); font-size: 15.5px; font-weight: 500; }
.pk-reorderbar[hidden] { display: none; }

.pk-addrcard { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 16px; border: 1.5px solid var(--pk-navy); border-radius: 20px; }
.pk-addrcard p { margin: 4px 0 0; color: #45454F; font-size: 14px; line-height: 1.5; }
.pk-addrcard .pk-addrcard__name { margin: 0; color: var(--pk-ink); font-size: var(--pk-fs-base); font-weight: 600; }
.pk-addrbtn { display: flex; align-items: center; justify-content: center; height: 54px; margin-top: 10px; border: 1.5px dashed #BDBAB2; border-radius: 18px; background: var(--pk-white); font-size: var(--pk-fs-base); font-weight: 500; }

.pk-dash__links { display: flex; flex-direction: column; margin-top: 28px; border-top: 1px solid #EEECE6; }
.pk-dash__links a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid #EEECE6; font-size: var(--pk-fs-base); }
.pk-dash__links a.pk-dash__logout { border-bottom: 0; color: var(--pk-danger); }

/* WooCommerce screens inside the personal area (order details, address, details form) */
.pk-account__content table { width: 100%; border-collapse: collapse; background: var(--pk-white); border-radius: var(--pk-r-sm); overflow: hidden; font-size: 14px; }
.pk-account__content th, .pk-account__content td { padding: 10px 12px; border-bottom: 1px solid var(--pk-line); text-align: start; }
.pk-account__content input:not([type="checkbox"]):not([type="radio"]), .pk-account__content select {
	width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--pk-line-2); border-radius: 14px; background: var(--pk-white); font: inherit;
}
.pk-account__content .button, .pk-account__content button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 25px; background: var(--pk-navy); color: var(--pk-white); font: inherit; font-weight: 500; cursor: pointer;
}
.pk-account__content .form-row { margin: 0 0 14px; }
.pk-account__content label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }

@media (min-width: 960px) {
	.pk-favs { padding-top: 32px; }
	.pk-favs__title { font-size: 40px; }
	.pk-favs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
	.pk-dash__title { font-size: 38px; }
}
