.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; }
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 .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; }
@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-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-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 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;
	}
}
