/* WM Subscription Cart Editor - RTL styles */

.wmse-wrap {
	margin: 32px 0;
	padding: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	background: #fff;
	text-align: right;
}

.wmse-title {
	margin: 0 0 12px;
	font-size: 1.35em;
}

.wmse-notice {
	background: #f0f7ff;
	border-inline-start: 4px solid #2271b1;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 0.95em;
}

.wmse-notice-warn {
	background: #fff8e5;
	border-inline-start-color: #dba617;
}

table.wmse-items {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

table.wmse-items th,
table.wmse-items td {
	padding: 10px 8px;
	border-bottom: 1px solid #eee;
	text-align: right;
	vertical-align: middle;
}

table.wmse-items th {
	font-size: 0.85em;
	color: #666;
	font-weight: 600;
}

tr.wmse-removed .wmse-name,
tr.wmse-removed .wmse-price {
	text-decoration: line-through;
	opacity: 0.5;
}

tr.wmse-removed .wmse-qty {
	opacity: 0.4;
	pointer-events: none;
}

.wmse-badge {
	display: inline-block;
	background: #e6f6ec;
	color: #1a7f37;
	font-size: 0.75em;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	margin-inline-end: 6px;
}

.wmse-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}

.wmse-qty button {
	border: none;
	background: #f6f6f6;
	width: 34px;
	height: 34px;
	font-size: 1.1em;
	cursor: pointer;
	line-height: 1;
}

.wmse-qty button:hover { background: #ececec; }

.wmse-qty-input {
	width: 52px;
	height: 34px;
	border: none;
	text-align: center;
	font-size: 1em;
	-moz-appearance: textfield;
}

.wmse-qty-input::-webkit-outer-spin-button,
.wmse-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wmse-remove {
	background: none;
	border: 1px solid #d63638;
	color: #d63638;
	border-radius: 6px;
	padding: 4px 12px;
	cursor: pointer;
	font-size: 0.85em;
}

.wmse-remove:hover {
	background: #d63638;
	color: #fff;
}

.wmse-add { margin: 8px 0 20px; }

.wmse-add-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.wmse-search-box {
	position: relative;
	max-width: 480px;
}

#wmse-search {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 1em;
}

.wmse-results {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	z-index: 50;
	max-height: 300px;
	overflow-y: auto;
}

.wmse-result {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #f2f2f2;
}

.wmse-result:last-child { border-bottom: none; }

.wmse-result-name { flex: 1; }

.wmse-result-price {
	color: #555;
	font-size: 0.9em;
	white-space: nowrap;
}

.wmse-result-add {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 5px 14px;
	cursor: pointer;
	font-size: 0.85em;
}

.wmse-result-add:hover { background: #185a8d; }

.wmse-result-note {
	padding: 12px 14px;
	color: #777;
	font-size: 0.9em;
}

.wmse-footer {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	border-top: 2px solid #eee;
	padding-top: 16px;
}

.wmse-summary {
	font-size: 1.1em;
}

.wmse-grand-total {
	font-weight: 800;
	font-size: 1.15em;
}

.wmse-per-period {
	color: #777;
	font-size: 0.85em;
}

.wmse-save {
	padding: 10px 26px;
	border-radius: 8px;
	cursor: pointer;
}

.wmse-save:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.wmse-msg { flex-basis: 100%; font-size: 0.95em; }
.wmse-msg-ok { color: #1a7f37; font-weight: 600; }
.wmse-msg-error { color: #d63638; font-weight: 600; }

@media (max-width: 600px) {
	.wmse-wrap { padding: 14px; }
	table.wmse-items th:nth-child(2),
	table.wmse-items td.wmse-price { display: none; }
}
