/* ================= ACCOUNT: login / register / profile / reviews ================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.88rem; }
.link-btn { background: none; border: 0; padding: 0.4rem 0; color: #111; text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.9rem; min-height: 44px; }
.link-btn:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }

.site-main--account { max-width: 1100px; }

/* ---------- guest card ---------- */
.auth { max-width: 480px; margin: 0 auto; }
.auth__card { background: #fff; border: 1px solid #eee; border-radius: 24px; padding: 1.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; background: #f4f1ec; padding: 0.3rem; border-radius: 30px; margin-bottom: 1.25rem; }
.auth__tabs[hidden] { display: none; }
.auth__tab { min-height: 44px; border: 0; border-radius: 26px; background: transparent; font: inherit; font-weight: 500; cursor: pointer; color: #444; }
.auth__tab.is-active, .auth__tab[aria-selected="true"] { background: #111; color: #fff; }
.auth__tab:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
.auth__panel[hidden] { display: none; }
.auth__panel h2 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.auth__form { display: grid; gap: 0.9rem; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.auth__fine { color: #6b6b6b; font-size: 0.85rem; margin: 0.25rem 0 0; line-height: 1.5; }
.auth__divider { display: flex; align-items: center; gap: 0.75rem; color: #888; font-size: 0.85rem; margin: 1.1rem 0; }
.auth__divider::before, .auth__divider::after { content: ''; flex: 1; border-top: 1px solid #ddd; }
.auth__google { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; justify-content: center; min-height: 44px; }
.auth__google .auth__google-msg { margin: 0; width: 100%; max-width: 360px; text-align: start; }
.auth__notice { border-radius: 14px; padding: 0.85rem 1.1rem; margin: 0 0 1rem; background: #f4f1ec; font-size: 0.92rem; line-height: 1.5; border-inline-start: 4px solid #111; }
.auth__notice[hidden] { display: none; }
.auth__notice--success { background: #eef8f1; border-color: #2e7d4f; }
.auth__notice--error { background: #fff0f0; border-color: #c8102e; }
.auth__notice--info { background: #eef4ff; border-color: #0b57d0; }
.auth__pending-icon { width: 64px; height: 64px; border-radius: 50%; background: #f4f1ec; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 0.75rem; }
#panel-pending { text-align: center; }
#panel-pending .btn, #panel-pending .link-btn { margin-top: 0.5rem; }

/* ---------- fields ---------- */
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field .req { color: #c8102e; }
.field .opt-note { color: #888; font-weight: 400; font-size: 0.82rem; }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea {
	width: 100%; min-height: 50px; border: 1px solid #bbb; border-radius: 14px; padding: 0.7rem 1rem; font: inherit; font-size: 1rem; background: #fff; box-sizing: border-box; color: #111;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid #111; outline-offset: 1px; border-color: #111; }
.field.has-error input, .field.has-error textarea { border-color: #c8102e; background: #fff7f7; }
.field__hint { margin: 0; color: #6b6b6b; font-size: 0.82rem; }
.field__error { margin: 0; color: #c8102e; font-size: 0.86rem; }
.field__error:empty { display: none; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { text-align: right; }

/* ---------- account (logged in) ---------- */
.account__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.account__name { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.7rem; }
html[lang^="ar"] .account__name { font-family: 'Cairo', sans-serif; }
.account__email { margin: 0.15rem 0 0; color: #6b6b6b; word-break: break-all; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #111; color: #fff; overflow: hidden; flex: 0 0 auto; }
.avatar--lg { width: 96px; height: 96px; font-size: 2.2rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.account__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.account__nav a { display: flex; align-items: center; min-height: 46px; padding: 0 1rem; border-radius: 14px; text-decoration: none; color: #111; }
.account__nav li.is-active a, .account__nav a[aria-current="page"] { background: #111; color: #fff; }
.account__nav a:hover { background: #f4f1ec; }
.account__nav li.is-active a:hover { background: #111; }
.card-box { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.card-box h2 { margin: 0 0 0.9rem; font-size: 1.15rem; }
.photo-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.photo-row form { display: grid; gap: 0.6rem; justify-items: start; align-content: center; min-width: 0; flex: 1 1 220px; }
.photo-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.photo-btn { min-width: 138px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.photo-row .field__hint, .photo-row .field__error { margin: 0; }
.photo-row .field__error:empty { display: none; }
@media (max-width: 480px) { .photo-row { flex-direction: column; text-align: center; } .photo-row form { justify-items: center; flex: none; width: 100%; } .photo-actions { justify-content: center; } .photo-actions .photo-btn { flex: 1 1 140px; } }
.photo-row label.btn { cursor: pointer; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; background: #eee; }
.badge--ok { background: #eef8f1; color: #1f6b3f; }

/* orders */
.account__content table.shop_table { width: 100%; border: 0; border-collapse: collapse; }
.account__content table.shop_table th, .account__content table.shop_table td { padding: 0.85rem 0.5rem; border: 0; border-bottom: 1px solid #eee; text-align: start; }
.account__content .woocommerce-button, .account__content a.button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: 30px; border: 1px solid #111; background: #fff; color: #111; text-decoration: none; }
.account__content mark { background: #f4f1ec; padding: 2px 8px; border-radius: 8px; }

@media (max-width: 800px) {
	.account__layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.account__nav ul { grid-auto-flow: column; overflow-x: auto; gap: 0.5rem; }
	.account__nav a { white-space: nowrap; border: 1px solid #ddd; }
	.account__content table.shop_table_responsive tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid #eee; }
	.account__content table.shop_table_responsive thead { display: none; }
	.account__content table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: 0.3rem 0; }
	.account__content table.shop_table_responsive td::before { content: attr(data-title); color: #6b6b6b; }
	.auth__card { padding: 1.1rem; border-radius: 20px; }
}

/* ---------- product reviews ---------- */
#reviews { margin-top: 2rem; max-width: 760px; }
#reviews .woocommerce-Reviews-title { font-size: 1.2rem; margin: 0 0 1rem; }
#reviews .woocommerce-noreviews { margin: 0 0 1.25rem; color: #6b6b6b; }
#reviews ol.commentlist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
/* WooCommerce's own stylesheet is loaded on product pages and uses `.woocommerce #reviews #comments ol.commentlist li ...` (margin-left:50px, a border, a floated icon-font
   star-rating). The selectors below repeat that prefix so these rules win; the first line of each comment is: name - date, then the stars beside it, then the text. */
.woocommerce #reviews #comments ol.commentlist li { margin: 0; padding: 0; position: static; background: #fff; border: 1px solid #e7e2da; border-radius: 14px; }
.woocommerce #reviews #comments ol.commentlist li .comment_container { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.1rem; }
/* the avatar is an initial circle printed as markup (inc/accounts/review-privacy.php), never an <img>, so it cannot show a broken-image icon */
#reviews .shynx-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 1rem; line-height: 1; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text { margin: 0; flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text::before, .woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text::after { content: none; display: none; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .meta { order: 1; margin: 0; font-size: 0.85rem; color: #6b6b6b; }
/* Stars: ONE five-star mask (5 equal cells) is the shape; the box is painted grey and the inner span (its width = the rating %) paints gold from the start edge.
   Both colours go through the same mask, so they cannot misalign, in LTR or RTL, and no star glyph/font is involved. */
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .star-rating { order: 2; float: none; display: block; position: relative; overflow: hidden; width: 5.5em; height: 1.1em; margin: 0; padding: 0; font-family: inherit; font-size: 1rem; line-height: 1; letter-spacing: 0; color: transparent; background: #d9d4ca; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.9L12 17.8 5.8 21.1 7 14.2 2 9.3l6.9-1z'/%3E%3C/svg%3E") 0 0 / 1.1em 1.1em repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.9L12 17.8 5.8 21.1 7 14.2 2 9.3l6.9-1z'/%3E%3C/svg%3E") 0 0 / 1.1em 1.1em repeat-x; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .star-rating::before { content: none; display: none; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .star-rating span { position: absolute; float: none; top: 0; left: auto; inset-inline-start: 0; height: 100%; padding: 0; overflow: hidden; font-size: 0; background: #e0a100; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .star-rating span::before { content: none; display: none; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .description { order: 3; flex: 0 0 100%; margin: 0.3rem 0 0; overflow-wrap: anywhere; line-height: 1.6; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .description p { margin: 0; }
.woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .description p:empty, .woocommerce #reviews #comments ol.commentlist li .comment_container .comment-text .description:empty { display: none; }
#reviews .woocommerce-review__author { color: #111; font-weight: 600; }
#reviews .woocommerce-review__awaiting-approval { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #fdf1d6; color: #8a5a00; font-style: normal; font-size: 0.72rem; font-weight: 600; }
#reviews .woocommerce-review__verified { color: #1f6b3f; }
#review_form_wrapper { background: #faf8f4; border: 1px solid #e7e2da; border-radius: 14px; padding: 1.25rem; }
#review_form .comment-reply-title { font-weight: 600; font-size: 1.05rem; display: block; margin-bottom: 0.75rem; }
#review_form .comment-form-rating select, #review_form input[type="text"], #review_form input[type="email"] { max-width: 100%; box-sizing: border-box; }
#review_form textarea#comment { width: 100%; min-height: 110px; border: 1px solid #d6d2cb; border-radius: 12px; padding: 0.75rem 1rem; font: inherit; box-sizing: border-box; }
#review_form .form-submit { margin: 0.75rem 0 0; }
#review_form .form-submit input[type="submit"] { min-height: 46px; padding: 0 1.6rem; border-radius: 30px; border: 0; background: #111; color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
#review_form p.stars a { color: #111; }
@media (max-width: 600px) {
	#reviews { margin-top: 1.5rem; }
	.woocommerce #reviews #comments ol.commentlist li .comment_container { gap: 0.7rem; padding: 0.85rem; }
	#reviews .shynx-avatar { flex-basis: 34px; width: 34px; height: 34px; font-size: 0.9rem; }
	#review_form_wrapper { padding: 1rem; }
	#review_form .form-submit input[type="submit"] { width: 100%; }
}
.must-log-in { background: #f4f1ec; border-radius: 14px; padding: 1rem 1.25rem; margin: 0; }
.must-log-in a { color: #111; font-weight: 600; }
.star-rating { color: #111; }

.btn[hidden], .link-btn[hidden], .field__hint[hidden] { display: none !important; }

/* review gate messages + guest-order linking */
.shynx-review-flash { padding: 0.7rem 1rem; border-radius: 12px; margin: 0 0 1rem; font-size: 0.92rem; }
.shynx-review-flash--ok { background: #e6f4ea; color: #1e6b3c; }
.shynx-review-flash--bad { background: #fde8e8; color: #a32020; }
#reviews .woocommerce-verification-required { background: #f4f1ec; border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.shynx-link-order { margin: 1rem 0; }
.shynx-link-order summary { cursor: pointer; font-weight: 500; }
.shynx-link-order form { display: grid; gap: 0.7rem; max-width: 420px; margin-top: 0.8rem; }
.shynx-link-order label { display: grid; gap: 0.25rem; font-size: 0.85rem; }
.shynx-link-order input { padding: 0.65rem 0.8rem; border: 1px solid #ccc; border-radius: 10px; font: inherit; }

/* password recovery steps */
.auth__step[hidden] { display: none; }
.auth__step h2 { margin: 0 0 0.4rem; }
#shynx-recode { margin-top: 0.6rem; }
#rc-code { text-align: center; letter-spacing: 0.5em; font-size: 1.4rem; font-weight: 600; padding-inline-start: 0.5em; }
#rc-code::placeholder { letter-spacing: 0.3em; opacity: 0.35; }
.auth__google { overflow: hidden; }

/* Google button (fallback shown when Google's own button is not available) */
.auth__google .btn-google { width: 100%; max-width: 360px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border-radius: 30px; border: 1px solid #dadce0; background: #fff; color: #3c4043; font: 500 0.95rem/1 'Inter', 'Inter Fallback', Arial, sans-serif; cursor: pointer; transition: background .15s, box-shadow .15s; }
.auth__google .btn-google:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.auth__google .btn-google:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
.auth__google .btn-google svg { flex: none; }

/* Google customers: complete profile, connect Google, set password */
.auth__lead{margin:0 0 16px;line-height:1.6;color:var(--c-muted,#555)}
.field input[readonly]{background:rgba(0,0,0,.04);color:inherit;cursor:not-allowed}
#complete-wrap .auth__card{max-width:480px;margin-inline:auto}
#shynx-pwset .btn{margin-block-end:8px}

/* ================= MY ORDERS: current / previous order cards ================= */
.orders__title { font-size: 1.5rem; margin: 0 0 1.25rem; }
.orders__group { margin-bottom: 2rem; }
.orders__heading { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; margin: 0 0 0.9rem; }
.orders__count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #111; color: #fff; font-size: 0.78rem; font-weight: 600; }
.orders__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.orders__empty { margin: 0; padding: 1.1rem 1.25rem; border: 1px dashed #d9d2c7; border-radius: 16px; color: #6b6b6b; font-size: 0.92rem; }
.orders__shop { margin: 0.5rem 0 0; }
.orders__group--closed .order-card { opacity: 0.8; }

.order-card { border: 1px solid #ddd6cc; border-radius: 18px; padding: 1.1rem 1.25rem; background: #fff; }
.order-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.order-card__number { font-weight: 600; font-size: 1.05rem; color: #111; text-decoration: none; }
.order-card__number:hover { text-decoration: underline; }
.order-card__date { margin: 0.2rem 0 0.8rem; color: #6b6b6b; font-size: 0.85rem; }
.order-card__items { list-style: none; margin: 0; padding: 0.8rem 0; border-block: 1px solid #eee; display: grid; gap: 0.6rem; }
.order-card__items li { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.order-card__items img, .order-card__noimg { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #f4f1ec; flex: 0 0 44px; }
.order-card__name { flex: 1 1 auto; min-width: 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.order-card__qty { flex: none; color: #6b6b6b; font-size: 0.88rem; }
.order-card__items .order-card__more { color: #6b6b6b; font-size: 0.85rem; padding-inline-start: 56px; }
.order-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.9rem; }
.order-card__total { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; }
.order-card__total span { color: #6b6b6b; font-size: 0.85rem; }

/* status pill: neutral while the order is live, green once delivered, muted when closed */
.order-status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 0.75rem; border-radius: 13px; background: #f4f1ec; color: #111; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.order-status--processing, .order-status--completed { background: #e4ecf8; color: #1d4f91; }
.order-status--on-hold, .order-status--pending { background: #fbf0d9; color: #7a5200; }
.order-status--delivered { background: #d6ecdf; color: #1e6b3c; }
.order-status--cancelled, .order-status--refunded, .order-status--failed { background: #eee; color: #666; }

.order-back { margin: 0 0 1rem; }
.order-track { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.25rem; padding: 1rem 1.25rem; border-radius: 16px; background: #f4f1ec; }
.order-track p { margin: 0; }
@media (max-width: 600px) {
	.order-card { padding: 1rem; }
	.order-card__foot .btn { flex: 1 1 100%; text-align: center; justify-content: center; }
}

/* ================= ORDER UPDATE COUNTER + HIGHLIGHT ================= */
/* (the order-update counter .nav-badge is defined in main.css: the navbar shows it on every page) */
.account__nav .nav-badge { margin-inline-start: auto; }
.account__nav a { display: flex; align-items: center; }

/* the order that changed: a soft tint (and an "Updated" tag) that fades back to normal once the customer has seen it */
.order-card { transition: background-color 0.9s ease, box-shadow 0.9s ease, border-color 0.9s ease; scroll-margin-top: calc(var(--header-h, 76px) + var(--promo-h, 0px) + 1.5rem); }
.order-card.is-updated { background: #fffbea; border-color: #e8d48a; box-shadow: 0 0 0 3px rgba(232, 212, 138, 0.45); }
.order-card__state { display: inline-flex; align-items: center; gap: 0.5rem; }
.order-card__new { display: inline-flex; align-items: center; min-height: 22px; padding: 0 0.6rem; border-radius: 11px; background: #111; color: #fff; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.order-status { text-transform: uppercase; letter-spacing: 0.05em; }
@media (prefers-reduced-motion: reduce) { .order-card { transition: none; } }

/* ================= REVIEW YOUR PRODUCTS (delivered order page) ================= */
.order-reviews { margin: 1.5rem 0 2rem; }
.order-reviews h2 { font-size: 1.2rem; margin: 0 0 0.9rem; }
.order-reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.order-reviews__item { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border: 1px solid #ddd6cc; border-radius: 16px; background: #fff; flex-wrap: wrap; }
.order-reviews__item img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #f4f1ec; flex: 0 0 56px; }
.order-reviews__main { flex: 1 1 220px; min-width: 0; display: grid; gap: 0.25rem; }
.order-reviews__state { justify-self: start; display: inline-flex; align-items: center; min-height: 22px; padding: 0 0.65rem; border-radius: 11px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.order-reviews__state.is-pending { background: #fbf0d9; color: #7a5200; }
.order-reviews__state.is-published { background: #d6ecdf; color: #1e6b3c; }
.order-reviews__stars { color: #e0a800; letter-spacing: 0.1em; }
.order-reviews__text { color: #444; font-size: 0.9rem; overflow-wrap: anywhere; }
.order-reviews__hint { color: #6b6b6b; font-size: 0.82rem; }

/* Desktop: the account menu stays beside the customer while the page scrolls (below the fixed header). Mobile keeps its horizontal strip. */
@media (min-width: 801px) {
	.account__nav { position: sticky; top: var(--sticky-top, 6rem); align-self: start; }
}

.order-card__product { display: contents; color: inherit; text-decoration: none; }
.order-card__product:hover .order-card__name { text-decoration: underline; }

/* ---------- profile photo cropper (move + zoom inside a circle) ---------- */
body.crop-open { overflow: hidden; }
.crop { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 1rem; }
.crop[hidden] { display: none; }
.crop__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.crop__panel { position: relative; width: min(100%, 360px); max-height: 100%; overflow-y: auto; background: #fff; border-radius: 20px; padding: 1.25rem; display: grid; gap: 0.9rem; justify-items: center; }
.crop__panel h3 { margin: 0; font-size: 1.15rem; }
.crop__stage { position: relative; width: min(100%, 280px); aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #111; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop__stage:active { cursor: grabbing; }
.crop__stage img { position: absolute; max-width: none; pointer-events: none; }
/* the circle: everything outside it is dimmed, so the customer sees exactly what the round picture will show */
.crop__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.9); pointer-events: none; }
.crop__zoom { display: flex; align-items: center; gap: 0.75rem; width: min(100%, 280px); font-size: 0.85rem; }
.crop__zoom input { flex: 1; min-width: 0; accent-color: #111; }
.crop__panel .field__hint { margin: 0; text-align: center; }
.crop__actions { display: flex; gap: 0.6rem; justify-content: center; }


/* ---------- my account on phones: centred profile header, and three even tiles (icon + label) instead of a sideways-scrolling strip ---------- */
@media (max-width: 800px) {
	.account__head { flex-direction: column; align-items: center; text-align: center; gap: 0.85rem; margin-bottom: 1.35rem; padding: 1.4rem 1rem 1.2rem; background: #f4f1ec; border-radius: 26px; }
	.account__head .avatar--lg { width: 108px; height: 108px; font-size: 2.4rem; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14); }
	.account__name { font-size: 1.55rem; line-height: 1.2; overflow-wrap: anywhere; }
	.account__email { margin: 0.3rem 0 0; font-size: 0.92rem; word-break: normal; overflow-wrap: anywhere; }

	.account__nav ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.6rem; overflow: visible; }
	.account__nav li { min-width: 0; }
	.account__nav a { position: relative; flex-direction: column; justify-content: center; gap: 0.4rem; min-height: 78px; padding: 0.7rem 0.25rem; border: 1.5px solid #e6e0d5; border-radius: 18px; background: #fff; font-size: 0.86rem; font-weight: 500; text-align: center; white-space: nowrap; line-height: 1.2; transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
	.account__nav a::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
	.account__nav .woocommerce-MyAccount-navigation-link--dashboard a { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E"); }
	.account__nav .woocommerce-MyAccount-navigation-link--orders a { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l1 13H5z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
	.account__nav .woocommerce-MyAccount-navigation-link--customer-logout a { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M16 8l4 4-4 4'/%3E%3Cpath d='M20 12H9'/%3E%3C/svg%3E"); color: #b3261e; border-color: #efd4d1; background: #fff8f7; }
	.account__nav a:active { transform: scale(0.97); }
	html[lang^="ar"] .account__nav a { white-space: normal; font-size: 0.82rem; overflow-wrap: anywhere; }
	.account__nav li.is-active a, .account__nav a[aria-current="page"] { border-color: #111; }
	.account__nav .nav-badge { position: absolute; top: 0.45rem; inset-inline-end: 0.5rem; margin: 0; }
	.account__layout { gap: 1.1rem; }
}


/* ---------- order page header, updates and details: easy to read on a phone ---------- */
.order-head { background: #f4f1ec; border-radius: 22px; padding: 1.15rem 1.2rem; margin: 0 0 1.4rem; }
.order-head__top { display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; }
.order-head__id { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.order-head__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b6b6b; }
.order-head__no { font-size: 1.75rem; line-height: 1.1; font-weight: 700; color: #111; text-align: start; }
.order-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: #fff; color: #444; border: 1.5px solid #ddd; white-space: nowrap; }
.order-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.order-pill--on-hold, .order-pill--pending { color: #8a5a00; background: #fff6e0; border-color: #f0d9a0; }
.order-pill--processing { color: #1b4f9c; background: #e8f0fc; border-color: #c4d7f2; }
.order-pill--completed, .order-pill--delivered { color: #17623a; background: #e4f3ea; border-color: #bfdfcb; }
.order-pill--cancelled, .order-pill--failed, .order-pill--refunded { color: #a4231c; background: #fdeceb; border-color: #f2c7c4; }
.order-head__date { display: flex; align-items: center; gap: 0.55rem; margin: 0.9rem 0 0; padding-top: 0.85rem; border-top: 1px solid rgba(0, 0, 0, 0.09); color: #555; font-size: 0.95rem; }
.order-head__date svg { flex: 0 0 auto; color: #777; }
.order-head__date strong { color: #111; font-weight: 600; }
.order-section-title, .account__content .woocommerce-order-details__title, .account__content .woocommerce-column__title { font-size: 1.15rem; margin: 1.6rem 0 0.8rem; }
.order-updates { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.6rem; }
.order-updates li { background: #fff; border: 1px solid #ece6db; border-radius: 16px; padding: 0.85rem 1rem; margin: 0; list-style: none; }
.order-updates .woocommerce-OrderUpdate-meta { margin: 0 0 0.35rem; font-size: 0.8rem; color: #777; }
.order-updates .woocommerce-OrderUpdate-description p { margin: 0; line-height: 1.5; }
.account__content .order-back { margin: 1rem 0 0; }

/* the items and totals */
.account__content table.order_details { border: 1px solid #ece6db; border-radius: 20px; background: #fff; overflow: hidden; border-collapse: separate; border-spacing: 0; width: 100%; }
.account__content table.order_details th, .account__content table.order_details td { border: 0; padding: 0.85rem 1rem; text-align: start; vertical-align: top; }
.account__content table.order_details thead th { background: #faf8f4; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b6b6b; }
.account__content table.order_details td.product-total, .account__content table.order_details tfoot td { text-align: end; white-space: nowrap; }
.account__content table.order_details tbody td { border-top: 1px solid #f0ebe1; }
.account__content table.order_details tbody tr:first-child td { border-top: 0; }
.account__content table.order_details .product-name a { color: #111; text-decoration: none; font-weight: 600; }
.account__content table.order_details .product-quantity { display: inline-block; margin-inline-start: 0.4rem; padding: 0.05rem 0.55rem; border-radius: 999px; background: #f4f1ec; font-size: 0.82rem; font-weight: 600; }
.account__content table.order_details tfoot th { font-weight: 500; color: #555; }
.account__content table.order_details tfoot tr:first-child th, .account__content table.order_details tfoot tr:first-child td { border-top: 1px solid #ece6db; }
.account__content table.order_details tfoot tr:has(.order-total-value) th, .account__content table.order_details tfoot tr:has(.order-total-value) td { font-size: 1.1rem; font-weight: 700; color: #111; }
.account__content table.order_details tfoot tr:has(.order-total-value) { background: #faf8f4; }

@media (max-width: 800px) {
	.order-head__no { font-size: 1.6rem; }
	.account__content table.order_details, .account__content table.order_details tbody, .account__content table.order_details tfoot { display: block; }
	.account__content table.order_details thead { display: none; }
	.account__content table.order_details tr { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; }
	.account__content table.order_details th, .account__content table.order_details td { padding: 0 !important; border: 0 !important; background: transparent; }
	.account__content table.order_details tbody tr { border-top: 1px solid #f0ebe1; }
	.account__content table.order_details tbody tr:first-child { border-top: 0; }
	.account__content table.order_details tr td.product-name { flex: 1 1 auto; min-width: 0; text-align: start; }
	.account__content table.order_details tr td.product-total { flex: 0 0 auto; font-weight: 600; }
	.account__content table.order_details tfoot tr { padding: 0.6rem 1rem; }
	.account__content table.order_details tfoot tr:first-child { border-top: 1px solid #ece6db; padding-top: 0.85rem; }
	.account__content table.order_details tfoot th { flex: 0 0 auto; text-align: start; }
	.account__content table.order_details tfoot td { flex: 1 1 auto; min-width: 0; text-align: end; white-space: normal; overflow-wrap: anywhere; }
	.account__content table.order_details tfoot tr:last-child { padding-bottom: 1rem; }
}
