.amdc-shop {
	direction: rtl;
	text-align: right;
	max-width: 960px;
	margin: 1.5rem auto;
}

.amdc-shop h2,
.amdc-shop h3 {
	text-align: right;
}

.amdc-balances {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 1rem 0 1.5rem;
}

.amdc-balance {
	flex: 1 1 220px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 1rem;
}

.amdc-balance span {
	display: block;
	font-size: 0.9em;
	color: #50575e;
	margin-bottom: 0.35rem;
}

.amdc-balance strong {
	font-size: 1.35em;
	unicode-bidi: isolate;
}

.amdc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.75rem 0 1.5rem;
}

.amdc-table th,
.amdc-table td {
	border: 1px solid #dcdcde;
	padding: 0.5rem;
	text-align: right;
}

.amdc-table th {
	background: #f6f7f7;
}

.amdc-form {
	background: #fff;
	border: 1px solid #dcdcde;
	padding: 1rem 1.25rem;
	margin: 1rem 0 1.5rem;
	max-width: 620px;
}

.amdc-form label {
	display: block;
	line-height: 2;
}

.amdc-form input[type="text"],
.amdc-form input[type="number"],
.amdc-form input[type="file"] {
	width: 100%;
	max-width: 520px;
}

.amdc-ok {
	color: #007117;
	font-weight: 600;
}

.amdc-error {
	color: #b32d2e;
	font-weight: 600;
}

.amdc-product {
	background: #fff;
	border: 1px solid #dcdcde;
	border-right: 4px solid #2271b1;
	padding: 1rem 1.25rem;
	margin: 1rem 0;
}

.amdc-product h4 {
	margin: 0 0 0.35rem;
}

.amdc-product img {
	max-width: 160px;
	max-height: 160px;
	height: auto;
	display: block;
	margin-bottom: 0.75rem;
}

.amdc-product-meta {
	color: #50575e;
	font-size: 0.9em;
	margin-top: 0;
}

.amdc-product-description {
	white-space: pre-wrap;
}

.amdc-price {
	background: #f6f7f7;
	padding: 0.6rem 0.8rem;
}

.amdc-options {
	margin-top: 0.75rem;
}

/* French / LTR shortcode output must not break the default Arabic UI. */
.amdc-shop[dir="ltr"] {
	direction: ltr;
	text-align: left;
}

.amdc-shop[dir="ltr"] h2,
.amdc-shop[dir="ltr"] h3,
.amdc-shop[dir="ltr"] .amdc-table th,
.amdc-shop[dir="ltr"] .amdc-table td {
	text-align: left;
}

.amdc-shop[dir="ltr"] .amdc-product {
	border-right: 1px solid #dcdcde;
	border-left: 4px solid #2271b1;
}

.amdc-register-form {
	max-width: 720px;
}

.amdc-register-form input[type="email"],
.amdc-register-form input[type="tel"],
.amdc-register-form input[type="password"] {
	width: 100%;
	max-width: 520px;
}

.amdc-account th {
	width: 35%;
}

.amdc-total-preview {
	background: #f0f6fc;
	border: 1px solid #72aee6;
	padding: 0.6rem 0.8rem;
	font-size: 1.05em;
}

.amdc-notice {
	border-right: 4px solid #2271b1;
	background: #f6f7f7;
	padding: 0.75rem 1rem;
	margin: 1rem 0;
}

.amdc-notice.amdc-success {
	border-right-color: #007117;
}

.amdc-notice.amdc-error {
	border-right-color: #b32d2e;
}

.amdc-shop[dir="ltr"] .amdc-notice {
	border-right: 1px solid #dcdcde;
	border-left: 4px solid #2271b1;
}

@media (max-width: 640px) {
	.amdc-shop {
		margin: 1rem 0;
	}

	.amdc-form,
	.amdc-register-form {
		padding: 0.85rem;
	}

	.amdc-table th,
	.amdc-table td {
		padding: 0.35rem;
		font-size: 0.9em;
	}

	.amdc-balance {
		flex: 1 1 100%;
	}
}

.amdc-delivery-export {
	margin: 0.75rem 0 1rem;
}

.amdc-delivery-export .amdc-key-text {
	display: block;
	width: 100%;
	max-width: 520px;
	margin-bottom: 0.5rem;
	font-family: monospace;
	direction: ltr;
	text-align: left;
}

.amdc-delivery-export button {
	margin-inline-end: 0.35rem;
}

/* SaaS Merchant Registration Redesign (strictly scoped to .amdc-register) */
.amdc-shop.amdc-register {
	max-width: 860px;
	margin: 2rem auto;
	padding: 0 12px;
	color: #0B1F3A;
	box-sizing: border-box;
}
.amdc-register *,
.amdc-register *::before,
.amdc-register *::after {
	box-sizing: border-box;
}
.amdc-reg-shell {
	background: #FFFFFF;
	border: 1px solid #DCE5F2;
	border-radius: 20px;
	box-shadow: 0 18px 46px rgba(11, 31, 58, 0.08);
	overflow: hidden;
}
.amdc-reg-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 28px 30px 22px;
	background: linear-gradient(135deg, #0B1F3A 0%, #1877F2 100%);
	color: #FFFFFF;
}
.amdc-reg-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #DCEBFF;
	margin-bottom: 10px;
}
.amdc-shop.amdc-register .amdc-reg-header h2 {
	margin: 0 0 6px;
	color: #FFFFFF;
	font-size: 24px;
	font-weight: 800;
	text-align: start;
}
.amdc-reg-intro {
	margin: 0;
	color: #E2EEFF;
	font-size: 14px;
	line-height: 1.6;
}
.amdc-reg-langs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.amdc-reg-lang-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	text-decoration: none;
	font-size: 12.5px;
	font-weight: 700;
	border: 1px solid rgba(255, 255, 255, 0.22);
	transition: background 0.15s ease;
}
.amdc-reg-lang-pill:hover,
.amdc-reg-lang-pill.is-active {
	background: #FFFFFF;
	color: #0B1F3A;
}
.amdc-reg-alert {
	margin: 20px 30px 0;
	padding: 14px 18px;
	border-radius: 14px;
	border: 1px solid #C6D5EB;
	background: #F4F7FB;
	font-size: 14px;
}
.amdc-reg-alert strong {
	display: block;
	margin-bottom: 4px;
}
.amdc-reg-alert p,
.amdc-reg-alert ul {
	margin: 4px 0 0;
}
.amdc-reg-alert ul {
	padding-inline-start: 20px;
}
.amdc-reg-alert.is-success {
	background: #ECFDF5;
	border-color: #A7F3D0;
	color: #047857;
}
.amdc-reg-alert.is-error {
	background: #FEF2F2;
	border-color: #FECACA;
	color: #B91C1C;
}
.amdc-reg-alert.is-info {
	background: #EAF2FF;
	border-color: #BFDBFE;
	color: #1D4ED8;
}
.amdc-register .amdc-register-form {
	border: none;
	margin: 0;
	padding: 24px 30px 30px;
	max-width: 100%;
	background: #FFFFFF;
}
.amdc-reg-required-note {
	font-size: 12.5px;
	color: #526277;
	margin-bottom: 16px;
}
.amdc-reg-req {
	color: #DC2626;
	font-weight: 800;
}
.amdc-reg-group {
	border: 1px solid #DCE5F2;
	border-radius: 16px;
	padding: 18px 20px 20px;
	margin: 0 0 18px;
	background: #F9FBFF;
}
.amdc-reg-group legend {
	padding: 0 10px;
	font-size: 14px;
	font-weight: 800;
	color: #1877F2;
}
.amdc-reg-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}
.amdc-reg-field-full {
	grid-column: 1 / -1;
}
.amdc-register .amdc-reg-label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	color: #0B1F3A;
	line-height: 1.4;
	margin-bottom: 6px;
}
.amdc-reg-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.amdc-register .amdc-reg-input {
	width: 100%;
	max-width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #C6D5EB;
	border-radius: 11px;
	background: #FFFFFF;
	color: #0B1F3A;
	font-size: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.amdc-register .amdc-reg-input:focus {
	outline: none;
	border-color: #1877F2;
	box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.16);
}
.amdc-reg-pw-btn {
	position: absolute;
	inset-inline-end: 8px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 15px;
	padding: 4px 6px;
	color: #526277;
}
.amdc-reg-hint {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #526277;
}
.amdc-reg-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 6px;
}
.amdc-register .amdc-reg-submit {
	width: 100%;
	padding: 13px 20px;
	border: none;
	border-radius: 12px;
	background: #1877F2;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(24, 119, 242, 0.24);
	transition: background 0.15s ease, opacity 0.15s ease;
}
.amdc-register .amdc-reg-submit:hover {
	background: #0866FF;
}
.amdc-register .amdc-reg-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}
.amdc-reg-help {
	margin: 0;
	text-align: center;
	font-size: 12.5px;
	color: #526277;
}
@media (max-width: 640px) {
	.amdc-reg-header {
		padding: 20px 18px;
	}
	.amdc-reg-alert {
		margin: 14px 16px 0;
	}
	.amdc-register .amdc-register-form {
		padding: 18px 16px 22px;
	}
	.amdc-reg-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
