/* Shared personal-account primitives. Component styles own only their layout differences. */
.bitshop-account-primary,
.bitshop-account-secondary {
	box-sizing: border-box;
	display: inline-flex;
	min-height: 46px;
	padding: 11px 20px;
	align-items: center;
	justify-content: center;
	border-radius: var(--bitshop-radius-control);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}

.bitshop-account-primary {
	border: 1px solid var(--bitshop-color-accent);
	background: var(--bitshop-color-accent);
	color: var(--bitshop-color-surface);
}

.bitshop-account-primary:hover,
.bitshop-account-primary:focus-visible {
	color: var(--bitshop-color-surface);
}

.bitshop-account-primary:disabled {
	cursor: not-allowed;
	opacity: .45;
}

.bitshop-account-secondary {
	border: 1px solid var(--bitshop-color-border);
	background: var(--bitshop-color-surface);
	color: var(--bitshop-color-text);
}

.bitshop-account-secondary:hover,
.bitshop-account-secondary:focus-visible {
	color: var(--bitshop-color-text);
}

.bitshop-account-icon-action {
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 9px;
	background: var(--bitshop-color-surface-interactive);
	color: var(--bitshop-interactive-ink);
	cursor: pointer;
	text-decoration: none;
}

.bitshop-account-icon-action:hover,
.bitshop-account-icon-action:focus-visible {
	background: var(--bitshop-color-surface-interactive-hover);
	color: var(--bitshop-interactive-ink);
}

.bitshop-account-icon-action svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.bitshop-account-page {
	width: 100%;
	max-width: 920px;
	color: var(--bitshop-color-text);
}

/* Editing forms intentionally use a compact reading width. */
.bitshop-account-page.bitshop-profile,
.bitshop-account-page.bitshop-addresses-form-view {
	max-width: 500px;
}

.bitshop-account-heading {
	display: flex;
	margin-bottom: var(--bitshop-space-6);
	align-items: center;
	justify-content: space-between;
	gap: var(--bitshop-space-6);
}

.bitshop-account-heading h1 {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.15;
}

.bitshop-account-surface {
	border-radius: var(--bitshop-radius-card);
	background: var(--bitshop-color-surface-muted);
}

.bitshop-account-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--bitshop-space-5);
}

.bitshop-account-field {
	display: grid;
	align-content: start;
	gap: var(--bitshop-space-2);
}

.bitshop-account-field-wide {
	grid-column: 1 / -1;
}

.bitshop-account-label {
	color: var(--bitshop-graphite-muted);
	font-size: 13px;
	font-weight: 800;
}

.bitshop-account-control {
	box-sizing: border-box;
	width: 100%;
	height: var(--bitshop-control-height);
	padding: 0 15px;
	border: 1px solid var(--bitshop-color-border);
	border-radius: var(--bitshop-radius-control);
	background: var(--bitshop-color-surface);
	color: var(--bitshop-color-text);
	font: inherit;
	font-size: 15px;
}

.bitshop-account-control:focus-visible {
	border-color: var(--bitshop-color-accent);
}

.bitshop-account-actions {
	display: flex;
	gap: var(--bitshop-space-3);
}

.bitshop-account-delete-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	padding: var(--bitshop-space-5);
	place-items: center;
}

.bitshop-account-delete-modal[hidden] { display: none; }
.bitshop-account-delete-backdrop { position: absolute; inset: 0; background: var(--bitshop-shadow-strong); }
.bitshop-account-delete-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 430px);
	padding: 30px;
	border-radius: var(--bitshop-radius-card);
	background: var(--bitshop-color-surface);
	box-shadow: none;
	text-align: center;
}

.bitshop-account-delete-dialog h2 { margin: 0 36px 8px; font-size: 25px; font-weight: 800; }
.bitshop-account-delete-dialog p { margin: 0 0 24px; color: var(--bitshop-graphite-muted); }
.bitshop-account-delete-close {
	position: absolute;
	top: 12px;
	right: 14px;
	padding: 4px 8px;
	border: 0;
	background: transparent;
	color: var(--bitshop-graphite-muted);
	font-size: 28px;
	cursor: pointer;
}

.bitshop-account-delete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bitshop-account-delete-confirm {
	min-height: 46px;
	padding: 11px 20px;
	border: 1px solid var(--bitshop-color-accent);
	border-radius: var(--bitshop-radius-control);
	background: var(--bitshop-color-accent);
	color: var(--bitshop-color-surface);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

body.bitshop-order-success-open {
	overflow: hidden;
}

.bitshop-order-success-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	padding: var(--bitshop-space-5);
	place-items: center;
}

.bitshop-order-success-modal[hidden] {
	display: none;
}

.bitshop-order-success-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 27, 35, .38);
}

.bitshop-order-success-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	padding: 32px;
	border-radius: var(--bitshop-radius-panel);
	background: var(--bitshop-color-surface);
	text-align: center;
}

.bitshop-order-success-dialog p {
	margin: 0 0 24px;
	color: var(--bitshop-color-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.bitshop-order-success-dialog button {
	min-width: 150px;
	min-height: 46px;
	padding: 11px 24px;
	border: 0;
	border-radius: var(--bitshop-radius-control);
	background: var(--bitshop-color-accent);
	color: var(--bitshop-color-surface);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

@media (max-width: 767px) {
	.bitshop-personal-mobile-popular {
		margin-top: 20px;
		padding: 18px 12px 14px;
		border: 0;
		border-radius: 18px;
		background: var(--bitshop-white);
	}

	.bitshop-personal-mobile-popular .bitshop-popular-heading {
		margin-bottom: 14px;
	}

	.bitshop-personal-mobile-popular .bitshop-popular-heading h2 {
		margin: 0;
		font-size: 20px;
		letter-spacing: -.02em;
	}

	.bitshop-personal-mobile-popular .catalog-section {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 10px;
		margin: 0;
		padding: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.bitshop-personal-mobile-popular .catalog-section [data-entity="items-row"] {
		display: contents;
		margin: 0;
	}

	.bitshop-personal-mobile-popular .catalog-section [data-entity="items-row"] > [class*="col-"],
	.bitshop-personal-mobile-popular .catalog-section .product-item-small-card,
	.bitshop-personal-mobile-popular .catalog-section .product-item-big-card {
		width: auto;
		max-width: none;
		padding: 0;
		flex: none;
	}

	.bitshop-personal-mobile-popular .product-item {
		height: 100%;
		padding: 9px 9px 0;
		border: 0;
		border-radius: 14px;
		background: var(--bitshop-white);
	}

	.bitshop-account-heading {
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
	}

	.bitshop-account-heading h1 { font-size: 26px; }
	.bitshop-account-fields { grid-template-columns: 1fr; gap: var(--bitshop-space-4); }
	.bitshop-account-field-wide { grid-column: auto; }
	.bitshop-account-actions { flex-direction: column; }
	.bitshop-order-success-dialog { padding: 26px 20px; }
	.bitshop-order-success-dialog p { font-size: 16px; }
}

/* Shared city dropdown arrow for checkout and saved addresses. */
.bitshop-city-select[name] {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 56px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23494a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 24px 24px;
}
@media (forced-colors: active) {
	.bitshop-city-select[name] { appearance: auto; background-image: none; }
}

.bitshop-iban-input {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	box-sizing: border-box;
	border: 1px solid var(--bitshop-border);
	width: 100%;
	height: var(--bitshop-control-height);
	border-radius: var(--bitshop-radius-control);
	background: var(--bitshop-white);
	overflow: hidden;
}
.bitshop-iban-prefix {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bitshop-interactive-soft);
	color: var(--bitshop-graphite);
	font-size: 14px;
	font-weight: 800;
}
.bitshop-iban-input > input[data-bitshop-iban-input] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0 15px;
	border: 0;
	border-radius: 0;
	background: var(--bitshop-white);
	color: var(--bitshop-graphite);
	font: 400 15px Arial, sans-serif;
	outline: none;
	box-shadow: none;
}
.bitshop-iban-input:focus-within { border-color: var(--bitshop-cyan-dark); box-shadow: none; }
.has-error .bitshop-iban-input,
.bitshop-iban-input:has(input[aria-invalid="true"]) { border-color: var(--bitshop-error); box-shadow: none; }

.bitshop-company-review strong { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border: 2px solid var(--bitshop-cyan-dark); border-radius: 999px; background: var(--bitshop-white); color: var(--bitshop-cyan-dark); font-size: 12px; font-weight: 850; }
.bitshop-company-review--approved strong { border-color: #168647; color: #0e6f38; background: #eaf8ef; }
.bitshop-company-review--rejected strong { border-color: var(--bitshop-error); color: var(--bitshop-error); background: var(--bitshop-error-background); }
.bitshop-company-review-reason { flex: 1 1 180px; min-width: 0; padding: 10px 14px; border: 1px solid var(--bitshop-error); border-radius: 8px; background: var(--bitshop-white); overflow-wrap: anywhere; max-height: 112px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--bitshop-cyan-dark) var(--bitshop-surface-soft); }
.bitshop-company-review-reason p { display: inline; margin: 0; }
.bitshop-company-review-reason > span { white-space: nowrap; color: var(--bitshop-error); font-size: 12px; font-weight: 700; }

.bitshop-company-review-reason p { white-space: pre-wrap; overflow-wrap: anywhere; }
