.ketabbin-library-toggle[disabled] { opacity: .65; cursor: wait; }
.ketabbin-library-toggle.is-saved { border-color: #5b38f4; background: #f1edff; color: #4b2bd6; }
.ketabbin-library-page h2 { margin-top: 0; }
.ketabbin-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.ketabbin-library-grid article { display: grid; gap: 10px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 18px; background: #fff; }
.ketabbin-library-grid article a { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.ketabbin-library-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.ketabbin-library-grid button { min-height: 40px; border: 1px solid #ead7b4; border-radius: 12px; background: #fffaf1; font: inherit; cursor: pointer; }
.ketabbin-wishlist-toggle[disabled] { opacity: .65; cursor: wait; }
.ketabbin-wishlist-toggle.is-saved { border-color: rgba(239,64,86,.28); background: #fff5f6; color: #ef4056; }
.ketabbin-library-empty { padding: 20px; border-radius: 16px; background: #fff8eb; }
body.ketabbin-otp-account #customer_login, body.ketabbin-otp-account .woocommerce > h2 { display: none !important; }
.ketabbin-otp-auth { width:min(100% - 24px,520px); margin:36px auto 120px; padding:28px 22px; border:1px solid #ecd7ae; border-radius:28px; background:linear-gradient(160deg,#fff 0%,#fffaf0 100%); box-shadow:0 18px 50px rgba(12,35,64,.09); color:#0c2340; text-align:center; direction:rtl; }
.ketabbin-otp-auth__mark { width:58px; height:58px; display:grid; place-items:center; margin:0 auto 12px; border-radius:20px; background:#fff3d9; color:#f59f00; font-size:28px; }
.ketabbin-otp-auth__eyebrow { margin:0 0 8px; color:#b77500; font-weight:800; }
.ketabbin-otp-auth h1 { margin:0 0 12px; font-size:clamp(24px,6vw,34px); line-height:1.45; }
.ketabbin-otp-auth > p:not(.ketabbin-otp-auth__eyebrow) { color:#667085; line-height:1.9; }
.ketabbin-otp-auth form { display:grid; gap:10px; margin-top:22px; text-align:right; }
.ketabbin-otp-auth form[hidden] { display:none; }
.ketabbin-otp-auth label { font-weight:800; }
.ketabbin-otp-auth input { width:100%; min-height:54px; box-sizing:border-box; padding:10px 14px; border:1px solid #d8dce3; border-radius:15px; background:#fff; font:700 18px/1.4 inherit; text-align:center; outline:none; }
.ketabbin-otp-auth input:focus { border-color:#f3a000; box-shadow:0 0 0 4px rgba(243,160,0,.13); }
.ketabbin-otp-auth button { min-height:52px; border:0; border-radius:15px; background:#0c2340; color:#fff; font:800 15px/1.4 inherit; cursor:pointer; }
.ketabbin-otp-auth button[disabled] { opacity:.6; cursor:wait; }
.ketabbin-otp-auth .ketabbin-otp-auth__back { background:transparent; color:#6a7280; text-decoration:underline; }
.ketabbin-otp-auth__message { min-height:25px; margin-top:12px; color:#16794b; font-weight:750; }
.ketabbin-otp-auth__message.is-error { color:#b42318; }
.ketabbin-otp-auth small { display:block; margin-top:10px; color:#7a818d; }
.ketabbin-checkout-account { margin:18px 0; padding:18px; border:1px solid #ecd7ae; border-radius:20px; background:#fffaf0; color:#0c2340; direction:rtl; }
.ketabbin-checkout-account__consent { display:flex; align-items:flex-start; gap:10px; font-weight:800; line-height:1.8; cursor:pointer; }
.ketabbin-checkout-account__consent input { width:22px; height:22px; margin-top:3px; accent-color:#f2a000; flex:0 0 auto; }
.ketabbin-checkout-account p { margin:8px 0 14px; color:#667085; line-height:1.8; }
.ketabbin-checkout-account [data-otp-phone-form], .ketabbin-checkout-account [data-otp-code-form] { display:grid; gap:9px; }
.ketabbin-checkout-account [hidden] { display:none !important; }
.ketabbin-checkout-account input[type="text"] { min-height:48px; padding:8px 12px; border:1px solid #d8dce3; border-radius:13px; text-align:center; font:700 18px/1.4 inherit; }
.ketabbin-checkout-account button { min-height:46px; border:0; border-radius:13px; background:#0c2340; color:#fff; font:800 14px/1.4 inherit; cursor:pointer; }
.ketabbin-checkout-account button[disabled] { opacity:.5; cursor:not-allowed; }
.ketabbin-checkout-account.is-verified { border-color:#8dd3ad; background:#f2fff7; }
.ketabbin-checkout-notices { display:grid; gap:12px; margin:16px 0; direction:rtl; }
.ketabbin-checkout-notice-card { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid #ecd7ae; border-radius:18px; background:#fff; color:#0c2340; box-shadow:0 10px 28px rgba(12,35,64,.05); }
.ketabbin-checkout-notice-card__icon { width:54px; height:54px; flex:0 0 54px; display:grid; place-items:center; border:1px solid #f0d9aa; border-radius:18px; background:#fffaf0; color:#c47a00; }
.ketabbin-checkout-notice-card__icon { font:700 24px/1 Tahoma,Arial,sans-serif; }
.ketabbin-checkout-notice-card__icon--invoice svg { width:31px; height:31px; fill:none; stroke:currentColor; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; }
.ketabbin-post-logo { width:86px; height:64px; flex:0 0 86px; padding:4px; object-fit:contain; border:1px solid #f0d9aa; border-radius:16px; background:#fff; box-shadow:0 8px 18px rgba(12,35,64,.06); }
.ketabbin-checkout-notice-card strong { display:block; margin:0 0 4px; font-weight:700; }
.ketabbin-checkout-notice-card p { margin:0; color:#667085; line-height:1.8; font-size:14px; }
.ketabbin-checkout-notice-card small { display:block; margin-top:6px; color:#0c2340; }
.ketabbin-checkout-notice-card__button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; margin-top:10px; padding:8px 14px; border-radius:12px; background:#0c2340; color:#fff; text-decoration:none; font-weight:700; }
body.woocommerce-checkout form.checkout.woocommerce-checkout { width:min(100% - 24px,1080px); margin:24px auto 120px; }
body.woocommerce-checkout .woocommerce-billing-fields, body.woocommerce-checkout .woocommerce-shipping-fields, body.woocommerce-checkout #order_review { padding:20px; border:1px solid #e4e7ec; border-radius:22px; background:#fff; }
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #ship-to-different-address { display:none !important; }
body.woocommerce-checkout .form-row input.input-text, body.woocommerce-checkout .form-row select, body.woocommerce-checkout .select2-container .select2-selection { min-height:52px; border:1px solid #d8dce3; border-radius:14px; padding:9px 12px; }
body.woocommerce-checkout #place_order { width:100%; min-height:54px; border-radius:15px; background:#0c2340; font-weight:800; }
body.woocommerce-checkout #payment ul.payment_methods li.payment_method_ketabbin_torobpay_cpg label { display:flex; align-items:center; gap:10px; justify-content:flex-start; direction:rtl; font-weight:900; color:#0c2340; }
body.woocommerce-checkout #payment ul.payment_methods li.payment_method_ketabbin_torobpay_cpg label img.ketabbin-torobpay-gateway-logo { width:104px; height:58px; max-height:58px; object-fit:contain; border:1px solid #f3c3ca; border-radius:14px; background:#fff; padding:0; box-shadow:0 8px 18px rgba(180,30,50,.08); }
body.woocommerce-checkout #payment div.payment_box.payment_method_ketabbin_torobpay_cpg { direction:rtl; font-weight:800; color:#163d22; background:#f4ffef; border:1px solid #d8e8cc; border-radius:16px; line-height:1.9; }
@media (max-width:760px) { body.woocommerce-checkout form.checkout.woocommerce-checkout { width:calc(100% - 20px); } body.woocommerce-checkout .col2-set .col-1, body.woocommerce-checkout .col2-set .col-2 { width:100%; float:none; } }

/* Ketabbin core v1.2.51: account, checkout steps and admin sales monitoring. */
.ketabbin-checkout-steps {
	width: min(100% - 24px, 1080px);
	margin: 18px auto 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	direction: rtl;
}

.ketabbin-checkout-steps span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	background: #fff;
	color: #526171;
	font-weight: 900;
}

.ketabbin-checkout-steps b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #eef3f7;
	color: #0c2340;
}

.ketabbin-checkout-steps .is-active {
	border-color: #e0b451;
	background: #fff8e8;
	color: #0c2340;
}

body.woocommerce-account .ketabbin-account-home {
	display: grid;
	gap: 16px;
}

body.woocommerce-account .ketabbin-account-hero,
body.woocommerce-account .ketabbin-account-latest {
	padding: 18px;
	border: 1px solid #e4e7ec;
	border-radius: 20px;
	background: linear-gradient(180deg, #fff, #fbfcfe);
	box-shadow: 0 16px 34px rgba(7, 24, 45, .06);
}

body.woocommerce-account .ketabbin-account-hero {
	display: flex;
	align-items: center;
	gap: 14px;
}

body.woocommerce-account .ketabbin-account-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 22px;
	background: #0c2340;
	color: #fff;
	font-weight: 950;
}

body.woocommerce-account .ketabbin-account-hero p,
body.woocommerce-account .ketabbin-account-hero h2 {
	margin: 0;
}

body.woocommerce-account .ketabbin-account-hero span {
	color: #667085;
	font-weight: 800;
}

body.woocommerce-account .ketabbin-account-stats,
body.woocommerce-account .ketabbin-account-quick {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

body.woocommerce-account .ketabbin-account-stats a,
body.woocommerce-account .ketabbin-account-quick a,
body.woocommerce-account .ketabbin-account-latest a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px;
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	background: #fff;
	color: #0c2340;
	text-decoration: none;
	font-weight: 900;
}

body.woocommerce-account .ketabbin-account-stats a {
	display: grid;
	justify-items: center;
	text-align: center;
}

body.woocommerce-account .ketabbin-account-stats b {
	font-size: 24px;
}

body.woocommerce-account .ketabbin-account-quick {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.woocommerce-account .ketabbin-account-quick .is-current {
	background: #fff8e8;
	border-color: #e0b451;
}

body.woocommerce-account .ketabbin-account-quick .is-danger {
	color: #d93463;
}

body.woocommerce-account .ketabbin-account-latest h3 {
	margin: 0 0 12px;
}

body.woocommerce-account .ketabbin-account-latest {
	display: grid;
	gap: 10px;
}

.ketabbin-diagnostics-sales {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0;
}

.ketabbin-diagnostics-sales article {
	padding: 16px;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

.ketabbin-diagnostics-sales span {
	display: block;
	color: #667085;
	font-weight: 800;
}

.ketabbin-diagnostics-sales strong {
	display: block;
	margin-top: 8px;
	color: #001b36;
	font-size: 24px;
}

@media (max-width: 760px) {
	.ketabbin-checkout-steps,
	body.woocommerce-account .ketabbin-account-stats,
	body.woocommerce-account .ketabbin-account-quick,
	.ketabbin-diagnostics-sales {
		grid-template-columns: 1fr;
	}
}
.ketabbin-invoice-center { display:grid; gap:22px; }
.ketabbin-invoice-tabs { display:flex; gap:8px; overflow:auto; padding-bottom:4px; }
.ketabbin-invoice-tabs a { white-space:nowrap; padding:9px 13px; border:1px solid #ecd7ae; border-radius:999px; background:#fffaf0; text-decoration:none; }
.ketabbin-invoice-list { display:grid; gap:10px; scroll-margin-top:100px; }
.ketabbin-invoice-card { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:15px; border:1px solid #e4e7ec; border-right:5px solid #f2a000; border-radius:17px; background:#fff; }
.ketabbin-invoice-card div { display:grid; gap:2px; }
.ketabbin-invoice-card span, .ketabbin-invoice-card small { color:#667085; }
.ketabbin-invoice-card a { padding:8px 12px; border-radius:11px; background:#0c2340; color:#fff; text-decoration:none; text-align:center; }
.ketabbin-invoice-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; margin:0; }
.ketabbin-invoice-card .ketabbin-invoice-actions a { min-width:128px; padding:8px 12px; }
.ketabbin-invoice-card.is-valid { border-right-color:#19a464; }.ketabbin-invoice-card.is-invalid { border-right-color:#d92d20; }.ketabbin-invoice-card.is-pending { border-right-color:#f2a000; }
.ketabbin-thankyou-invoice { margin:18px 0; text-align:center; }
@media(max-width:620px){.ketabbin-invoice-card{grid-template-columns:1fr auto}.ketabbin-invoice-card a{grid-column:1/-1}.ketabbin-invoice-actions{grid-column:1/-1;justify-content:stretch}.ketabbin-invoice-card .ketabbin-invoice-actions a{flex:1 1 140px}}

/* Ketabbin Core v1.2.41 — account, trust and data polish */
.ketabbin-library-page header {
	display: grid;
	gap: 6px;
	margin-bottom: 16px;
	padding: 18px;
	border: 1px solid #ecd7ae;
	border-radius: 22px;
	background: linear-gradient(160deg, #fff 0%, #fff8eb 100%);
}

/* Ketabbin Core v1.2.41 — SEO hubs and data polish */
.ketabbin-content-hub {
	max-width: 1180px;
	margin: 0 auto 72px;
	padding: 24px clamp(16px, 4vw, 32px);
	color: #061a33;
}

.ketabbin-content-hub__hero {
	border: 1px solid rgba(198, 154, 65, .28);
	border-radius: 28px;
	padding: clamp(22px, 4vw, 40px);
	background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
	box-shadow: 0 22px 60px rgba(11, 37, 67, .07);
}

.ketabbin-content-hub__hero span {
	color: #b47a00;
	font-weight: 900;
}

.ketabbin-content-hub__hero h1 {
	margin: 10px 0;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.5;
}

.ketabbin-content-hub__hero p {
	max-width: 760px;
	margin: 0;
	color: #5f6c7a;
	font-size: clamp(15px, 2vw, 18px);
	line-height: 2.1;
}

.ketabbin-content-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.ketabbin-content-hub__grid article,
.ketabbin-content-hub__terms a,
.ketabbin-content-hub__products {
	border: 1px solid rgba(198, 154, 65, .22);
	border-radius: 22px;
	background: #fff;
	padding: 18px;
	box-shadow: 0 14px 34px rgba(11, 37, 67, .045);
}

.ketabbin-content-hub__grid h2,
.ketabbin-content-hub__products h2 {
	margin: 0 0 10px;
	font-size: 22px;
}

.ketabbin-content-hub__grid p {
	margin: 0;
	color: #5f6c7a;
	line-height: 2;
}

.ketabbin-content-hub__terms {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.ketabbin-content-hub__terms a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #061a33;
}

.ketabbin-content-hub__terms span {
	color: #b47a00;
	font-weight: 800;
}

.ketabbin-content-hub__products {
	margin-top: 20px;
}

.ketabbin-content-hub__faq {
	margin-top: 20px;
	border: 1px solid rgba(198, 154, 65, .22);
	border-radius: 22px;
	background: #fff;
	padding: 18px;
	box-shadow: 0 14px 34px rgba(11, 37, 67, .045);
}

.ketabbin-content-hub__faq h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.ketabbin-content-hub__faq details {
	border-top: 1px solid rgba(12, 35, 64, .08);
	padding: 12px 0;
}

.ketabbin-content-hub__faq details:first-of-type {
	border-top: 0;
}

.ketabbin-content-hub__faq summary {
	cursor: pointer;
	font-weight: 900;
}

.ketabbin-content-hub__faq p {
	margin: 8px 0 0;
	color: #5f6c7a;
	line-height: 2;
}

.ketabbin-content-hub__products > div {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.ketabbin-content-hub__products a {
	display: grid;
	gap: 10px;
	text-align: center;
	text-decoration: none;
	color: #061a33;
	font-weight: 900;
}

.ketabbin-content-hub__products img {
	width: 100%;
	aspect-ratio: 1 / 1.2;
	object-fit: contain;
	background: #fffaf4;
	border-radius: 16px;
}

@media (max-width: 860px) {
	.ketabbin-content-hub__grid,
	.ketabbin-content-hub__terms,
	.ketabbin-content-hub__products > div {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.ketabbin-content-hub__grid,
	.ketabbin-content-hub__terms,
	.ketabbin-content-hub__products > div {
		grid-template-columns: 1fr;
	}
}

.ketabbin-library-page header span {
	color: #b87400;
	font-weight: 900;
}

.ketabbin-library-page header h2 {
	margin: 0;
	color: #071527;
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.45;
}

.ketabbin-library-page header p {
	margin: 0;
	color: #667085;
	line-height: 1.9;
}

.ketabbin-library-grid {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.ketabbin-library-grid article {
	border-color: #ecd7ae;
	border-radius: 22px;
	box-shadow: 0 16px 34px rgba(12, 35, 64, .06);
}

.ketabbin-library-grid article strong {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	min-height: 3.6em;
	overflow: hidden;
	color: #071527;
	font-weight: 950;
	line-height: 1.8;
}

.ketabbin-library-grid article span {
	color: #b87400;
	font-weight: 950;
}

.ketabbin-library-grid button {
	font-weight: 900;
}

.ketabbin-account-avatar {
	font-size: 15px;
	font-weight: 950;
	letter-spacing: 0;
}

.ketabbin-account-quick {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ketabbin-account-quick a:nth-last-child(1):nth-child(odd) {
	grid-column: 1 / -1;
}

.ketabbin-checkout-notices {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ketabbin-checkout-notice-card {
	align-items: stretch;
}

.ketabbin-checkout-notice-card strong {
	font-size: 17px;
	font-weight: 950;
}

.ketabbin-rules-card {
	min-height: 250px;
}

.ketabbin-rules-card--wide {
	min-height: 0;
}

@media (max-width: 760px) {
	.ketabbin-account-quick,
	.ketabbin-checkout-notices {
		grid-template-columns: 1fr;
	}
}

.ketabbin-rules-page {
	width: min(100% - 24px, 1080px);
	margin: 24px auto 120px;
	color: #0c2340;
	direction: rtl;
}

.ketabbin-rules-hero,
.ketabbin-rules-card,
.ketabbin-rules-faq {
	border: 1px solid #ecd7ae;
	border-radius: 24px;
	background: linear-gradient(160deg, #fff 0%, #fffaf2 100%);
	box-shadow: 0 16px 42px rgba(12, 35, 64, .06);
}

.ketabbin-rules-hero {
	padding: 24px;
	text-align: right;
}

.ketabbin-rules-hero span {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 6px 12px;
	border: 1px solid #ecd7ae;
	border-radius: 999px;
	background: #fffaf0;
	color: #b87400;
	font-weight: 800;
}

.ketabbin-rules-hero h1 {
	margin: 0 0 10px;
	font-size: clamp(28px, 6vw, 42px);
	line-height: 1.45;
}

.ketabbin-rules-hero p,
.ketabbin-rules-card p,
.ketabbin-rules-card li,
.ketabbin-rules-faq p {
	color: #667085;
	font-size: 15px;
	line-height: 2;
}

.ketabbin-rules-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.ketabbin-rules-card {
	position: relative;
	padding: 20px;
	overflow: hidden;
}

.ketabbin-rules-card--wide {
	grid-column: 1 / -1;
}

.ketabbin-rules-card__icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	margin-bottom: 10px;
	border: 1px solid #ecd7ae;
	border-radius: 16px;
	background: #fffaf0;
	color: #b87400;
	font: 800 20px/1 Tahoma, Arial, sans-serif;
}

.ketabbin-rules-card h2,
.ketabbin-rules-faq h2 {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.5;
}

.ketabbin-rules-card p {
	margin: 0 0 10px;
}

.ketabbin-rules-card ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0 18px 0 0;
}

.ketabbin-rules-faq {
	display: grid;
	gap: 10px;
	margin-top: 16px;
	padding: 20px;
}

.ketabbin-rules-faq details {
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}

.ketabbin-rules-faq summary {
	padding: 14px 16px;
	cursor: pointer;
	font-weight: 800;
	line-height: 1.8;
}

.ketabbin-rules-faq p {
	margin: 0;
	padding: 0 16px 14px;
}

@media (max-width: 760px) {
	.ketabbin-rules-page {
		width: calc(100% - 20px);
		margin-top: 16px;
	}

	.ketabbin-rules-hero,
	.ketabbin-rules-card,
	.ketabbin-rules-faq {
		border-radius: 20px;
	}

	.ketabbin-rules-hero,
	.ketabbin-rules-card,
	.ketabbin-rules-faq {
		padding: 16px;
	}

	.ketabbin-rules-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ketabbin-rules-card h2,
	.ketabbin-rules-faq h2 {
		font-size: 21px;
	}
}

/* Ketabbin Core v1.2.2 — phone-first account dashboard */
body.woocommerce-account .woocommerce {
	width: min(1120px, calc(100% - 24px));
	margin: 24px auto 120px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	display: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	width: 100% !important;
	float: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding: 9px 12px;
	border-radius: 14px;
	color: #0c2340;
	text-decoration: none;
	font-weight: 800;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: #fff7e8;
	color: #b87400;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	padding: 20px;
	border: 1px solid #e4e7ec;
	border-radius: 26px;
	background: linear-gradient(160deg, #fff 0%, #fffaf2 100%);
	box-shadow: 0 16px 42px rgba(12, 35, 64, .06);
	color: #0c2340;
}

body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type,
body.woocommerce-account .woocommerce-MyAccount-content > p:nth-of-type(2),
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EmailVerification,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-verify-email,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
	display: none !important;
}

.ketabbin-account-home {
	display: grid;
	gap: 18px;
}

.ketabbin-account-hero {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 18px;
	border: 1px solid #ecd7ae;
	border-radius: 24px;
	background: #fff;
}

.ketabbin-account-avatar {
	width: 76px;
	height: 76px;
	display: grid;
	place-items: center;
	border-radius: 25px;
	background: linear-gradient(145deg, #0c2340, #152f52);
	color: #fff;
	font-size: 34px;
	box-shadow: 0 12px 24px rgba(12, 35, 64, .18);
}

.ketabbin-account-hero p {
	margin: 0;
	color: #b87400;
	font-weight: 900;
}

.ketabbin-account-hero h2 {
	margin: 4px 0;
	color: #0c2340;
	font-size: clamp(24px, 6vw, 34px);
	line-height: 1.35;
}

.ketabbin-account-hero span {
	color: #667085;
	line-height: 1.9;
}

.ketabbin-account-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ketabbin-account-stats a {
	min-height: 112px;
	display: grid;
	place-items: center;
	gap: 4px;
	padding: 14px;
	border: 1px solid #ecd7ae;
	border-radius: 22px;
	background: #fff;
	color: #0c2340;
	text-align: center;
	text-decoration: none;
}

.ketabbin-account-stats b {
	color: #b87400;
	font-size: 26px;
	line-height: 1;
}

.ketabbin-account-stats span {
	color: #667085;
	font-weight: 800;
}

.ketabbin-account-quick {
	display: grid;
	border: 1px solid #ecd7ae;
	border-radius: 24px;
	background: #fff;
	overflow: hidden;
}

.ketabbin-account-quick .is-current {
	background: #fff7e8;
	color: #b87400;
}

.ketabbin-account-quick a {
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid #f0dfc1;
	color: #0c2340;
	text-decoration: none;
	font-weight: 850;
}

.ketabbin-account-quick a:last-child {
	border-bottom: 0;
}

.ketabbin-account-quick a span {
	color: #b87400;
}

.ketabbin-account-quick .is-danger {
	color: #d92d20;
}

@media(max-width:760px) {
	body.woocommerce-account .woocommerce {
		width: calc(100% - 20px);
		margin-top: 16px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation,
	body.woocommerce-account .woocommerce-MyAccount-content {
		width: 100%;
		float: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 14px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
		padding: 14px;
	}

	.ketabbin-account-hero {
		grid-template-columns: 70px minmax(0, 1fr);
		padding: 14px;
	}

	.ketabbin-account-avatar {
		width: 62px;
		height: 62px;
		border-radius: 20px;
		font-size: 28px;
	}

	.ketabbin-account-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.ketabbin-account-stats a {
		min-height: 92px;
		padding: 10px 6px;
		border-radius: 18px;
	}
}

.ketabbin-contact-page {
	direction: rtl;
	display: grid;
	gap: 16px;
	width: min(100% - 22px, 960px);
	margin: 18px auto 110px;
	color: #0c2340;
}

.ketabbin-contact-hero,
.ketabbin-contact-grid > a,
.ketabbin-contact-grid > span,
.ketabbin-social-card {
	border: 1px solid #ecd7ae;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(12,35,64,.06);
}

.ketabbin-contact-hero {
	padding: 22px 18px;
	background: linear-gradient(160deg,#fff 0%,#fffaf0 100%);
}

.ketabbin-contact-hero > span {
	color: #b87400;
	font-weight: 800;
}

.ketabbin-contact-hero h1 {
	margin: 8px 0 10px;
	font-size: clamp(28px,7vw,42px);
	line-height: 1.45;
}

.ketabbin-contact-hero p {
	margin: 0;
	color: #667085;
	line-height: 1.9;
}

.ketabbin-contact-grid,
.ketabbin-social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
	gap: 12px;
}

.ketabbin-contact-grid > a,
.ketabbin-contact-grid > span {
	display: grid;
	gap: 7px;
	padding: 15px;
	color: #0c2340;
	text-decoration: none;
}

.ketabbin-contact-grid b,
.ketabbin-social-card strong {
	font-size: 16px;
}

.ketabbin-contact-grid span span,
.ketabbin-contact-grid a span {
	color: #667085;
	line-height: 1.8;
}

.ketabbin-social-card {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 16px;
	text-align: center;
}

.ketabbin-social-card i {
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	border-radius: 20px;
	background: #fff;
	color: #0c2340;
	border: 1px solid #ecd7ae;
	font-style: normal;
	font-weight: 900;
	overflow: hidden;
}

.ketabbin-social-card i img {
	width: 46px;
	height: 46px;
	object-fit: contain;
	display: block;
}

.ketabbin-social-card i svg {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ketabbin-social-card div {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.ketabbin-social-card a,
.ketabbin-social-card div > span {
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border: 1px solid rgba(12,35,64,.12);
	border-radius: 13px;
	background: #fff8eb;
	color: #0c2340;
	text-decoration: none;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.6;
}

.ketabbin-social-card div > span {
	opacity: .5;
}

.ketabbin-social-card--rubika i img,
.ketabbin-social-card--bale i img,
.ketabbin-social-card--soroush i img {
	width: 52px;
	height: 52px;
}

@media(max-width:560px) {
	.ketabbin-contact-page {
		width: calc(100% - 20px);
		gap: 12px;
	}

	.ketabbin-social-grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

	.ketabbin-social-card {
		padding: 12px 10px;
	}

	.ketabbin-social-card div {
		grid-template-columns: 1fr;
	}
}

.ketabbin-compat-panel {
	width: min(100% - 28px, 980px);
	margin: 24px auto;
	padding: 22px;
	border: 1px solid rgba(12,35,64,.12);
	border-radius: 22px;
	background: linear-gradient(135deg,#fff 0%,#fff8eb 100%);
	box-shadow: 0 18px 45px rgba(12,35,64,.08);
	color: #0c2340;
}

.ketabbin-compat-panel header {
	display: grid;
	gap: 8px;
}

.ketabbin-compat-panel header span {
	color: #b98223;
	font-weight: 900;
}

.ketabbin-compat-panel h1 {
	margin: 0;
	font-size: clamp(24px,4vw,38px);
}

.ketabbin-compat-panel p {
	margin: 0;
	color: #475569;
	line-height: 2;
}

.ketabbin-compat-panel > div {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.ketabbin-compat-panel a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 14px;
	background: #07182d;
	color: #fff;
	text-decoration: none;
	font-weight: 900;
}

.ketabbin-compat-panel a span {
	color: #f7c75f;
}

/* Ketabbin Core v1.2.56: checkout overflow and mobile safety. */
body.woocommerce-checkout select.select2-hidden-accessible,
body.woocommerce-checkout .select2-hidden-accessible {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-width: 1px !important;
	min-height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

body.woocommerce-checkout .select2-container,
body.woocommerce-checkout .select2-container .selection,
body.woocommerce-checkout .select2-container .select2-selection {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

@media (max-width: 760px) {
	body.woocommerce-checkout form.checkout.woocommerce-checkout,
	body.woocommerce-checkout .woocommerce-billing-fields,
	body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
	body.woocommerce-checkout #order_review,
	body.woocommerce-checkout #payment {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	body.woocommerce-checkout .form-row-first,
	body.woocommerce-checkout .form-row-last {
		float: none !important;
		width: 100% !important;
	}

	.ketabbin-checkout-notice-card {
		align-items: flex-start;
	}
}
