/*
 * Default look for the store widgets. Override the variables (or any .sw-* rule) in Duda's
 * site CSS to match the site design.
 */
.sw-root {
	--sw-primary: #111827;
	--sw-primary-text: #ffffff;
	--sw-text: inherit;
	--sw-muted: #6b7280;
	--sw-border: #e5e7eb;
	--sw-surface: #ffffff;
	--sw-error: #b91c1c;
	--sw-error-bg: #fef2f2;
	--sw-success: #166534;
	--sw-success-bg: #f0fdf4;
	--sw-info-bg: #f3f4f6;
	--sw-radius: 8px;
	--sw-gap: 16px;
	color: var(--sw-text);
	font: inherit;
	line-height: 1.5;
	box-sizing: border-box;
}
.sw-root *,
.sw-root *::before,
.sw-root *::after {
	box-sizing: inherit;
}
.sw-root [hidden] {
	display: none !important;
}

.sw-card {
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius);
	padding: 20px;
}
.sw-title {
	margin: 0 0 12px;
	font-size: 1.4em;
	font-weight: 600;
}
.sw-subtitle {
	margin: 0 0 12px;
	font-size: 1.1em;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}
.sw-muted {
	color: var(--sw-muted);
	font-size: 0.9em;
}
.sw-error-text {
	color: var(--sw-error);
	font-size: 0.9em;
}
.sw-back {
	display: inline-block;
	margin-top: 12px;
	font-size: 0.9em;
}

.sw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: var(--sw-radius);
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}
.sw-button--primary {
	background: var(--sw-primary);
	color: var(--sw-primary-text);
}
.sw-button--secondary {
	background: var(--sw-surface);
	color: var(--sw-primary);
	border-color: var(--sw-border);
}
.sw-button--link {
	background: none;
	border: none;
	padding: 0;
	min-height: 0;
	color: inherit;
	text-decoration: underline;
	font-weight: 500;
}
.sw-button:disabled,
.sw-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.sw-form {
	display: grid;
	gap: 14px;
}
.sw-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}
.sw-label {
	font-size: 0.9em;
	font-weight: 500;
}
.sw-optional {
	color: var(--sw-muted);
	font-weight: 400;
}
.sw-hint {
	margin: 0;
	color: var(--sw-muted);
	font-size: 0.85em;
}
.sw-control {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius);
	background: var(--sw-surface);
	color: inherit;
	font: inherit;
}
textarea.sw-control {
	min-height: 70px;
	resize: vertical;
}
.sw-control:focus {
	outline: 2px solid var(--sw-primary);
	outline-offset: 1px;
}
.sw-grid-2,
.sw-grid-3 {
	display: grid;
	gap: 14px;
}
@media (min-width: 640px) {
	.sw-grid-2 {
		grid-template-columns: 1fr 1fr;
	}
	.sw-grid-3 {
		grid-template-columns: 2fr 1.4fr 1fr;
	}
}
.sw-links,
.sw-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
}
.sw-radio,
.sw-checkbox {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 0;
	cursor: pointer;
}
.sw-radio input,
.sw-checkbox input {
	margin-top: 4px;
}
.sw-rate {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex: 1;
}
.sw-captcha:empty {
	display: none;
}

.sw-alert {
	padding: 10px 14px;
	border-radius: var(--sw-radius);
	font-size: 0.95em;
	background: var(--sw-info-bg);
}
.sw-alert--error {
	background: var(--sw-error-bg);
	color: var(--sw-error);
}
.sw-alert--success {
	background: var(--sw-success-bg);
	color: var(--sw-success);
}
.sw-loading {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--sw-muted);
	padding: 12px 0;
}
.sw-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: sw-spin 0.8s linear infinite;
	flex: none;
}
@keyframes sw-spin {
	to {
		transform: rotate(360deg);
	}
}
.sw-icon {
	width: 20px;
	height: 20px;
}

.sw-cart-count {
	position: relative;
	display: inline-flex;
	color: inherit;
	padding: 6px;
}
.sw-cart-count .sw-icon {
	width: 26px;
	height: 26px;
}
.sw-badge {
	position: absolute;
	top: -2px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--sw-primary);
	color: var(--sw-primary-text);
	font-size: 12px;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.sw-add-to-cart {
	display: grid;
	gap: 12px;
}
.sw-price {
	font-size: 1.5em;
	font-weight: 600;
}
.sw-option {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.sw-option-current {
	font-weight: 400;
}
.sw-option-values {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}
.sw-root .sw-option-value {
	min-width: 48px;
	min-height: 40px;
	padding: 0 14px;
	background: var(--sw-surface);
	color: var(--sw-text);
	border: 1px solid var(--sw-border);
}
.sw-root .sw-option-value--selected {
	border-color: var(--sw-primary);
	box-shadow: inset 0 0 0 1px var(--sw-primary);
	font-weight: 600;
}
/* Sold out: still selectable (shows "Sold out"), but struck through. */
.sw-root .sw-option-value--unavailable {
	color: var(--sw-muted);
	text-decoration: line-through;
	background: var(--sw-info-bg);
}
.sw-stock-note {
	margin: 0;
	color: var(--sw-muted);
	font-size: 0.9em;
}
.sw-add-row {
	display: flex;
	gap: 10px;
}
.sw-quantity {
	width: 90px;
	text-align: center;
}

.sw-lines {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sw-line {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--sw-border);
}
.sw-line-info {
	grid-column: 1 / -1;
	min-width: 0;
}
.sw-line-image {
	float: left;
	width: 56px;
	height: 56px;
	margin-right: 12px;
	object-fit: cover;
	border-radius: var(--sw-radius);
	border: 1px solid var(--sw-border);
}
.sw-line-name {
	font-weight: 600;
}
.sw-line-qty {
	display: flex;
	gap: 6px;
	align-items: center;
}
.sw-line-qty .sw-button {
	min-height: 36px;
	padding: 0 10px;
}
.sw-line-qty .sw-quantity {
	width: 70px;
	min-height: 36px;
}
.sw-line-total {
	font-weight: 600;
	text-align: right;
}
.sw-line--unavailable {
	opacity: 0.8;
}
.sw-remove {
	justify-self: end;
	color: var(--sw-muted);
}
@media (min-width: 640px) {
	.sw-line {
		grid-template-columns: 1fr auto 110px auto;
	}
	.sw-line-info {
		grid-column: auto;
	}
}
.sw-cart-footer {
	display: grid;
	gap: 10px;
	justify-items: end;
	margin-top: 16px;
	text-align: right;
}
.sw-total-row {
	display: flex;
	gap: 24px;
	font-size: 1.15em;
}
.sw-empty {
	display: grid;
	gap: 12px;
	justify-items: start;
}

.sw-checkout {
	display: grid;
	gap: 24px;
	align-items: start;
}
@media (min-width: 960px) {
	.sw-checkout {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
	.sw-summary {
		position: sticky;
		top: 16px;
	}
}
.sw-checkout-main {
	display: grid;
	gap: 20px;
}
.sw-step {
	display: grid;
	gap: 14px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--sw-border);
}
.sw-step:last-child {
	border-bottom: none;
}
.sw-step-number {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--sw-primary);
	color: var(--sw-primary-text);
	font-size: 0.85em;
}
.sw-address-form {
	display: grid;
	gap: 14px;
}
.sw-summary-lines {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 10px;
}
.sw-summary-lines li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.sw-totals {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 16px;
	margin: 12px 0 0;
}
.sw-totals dt,
.sw-totals dd {
	margin: 0;
}
.sw-totals dd {
	text-align: right;
}
.sw-grand {
	font-weight: 700;
	font-size: 1.1em;
	padding-top: 6px;
	border-top: 1px solid var(--sw-border);
}
.sw-payment-panel:not(:empty) {
	display: grid;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius);
}

.sw-account {
	max-width: 460px;
}
.sw-header-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}
.sw-order-list {
	list-style: none;
	margin: 12px 0;
	padding: 0;
}
.sw-order-list a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--sw-border);
	color: inherit;
	text-decoration: none;
}
@media (min-width: 640px) {
	.sw-order-list a {
		grid-template-columns: 1.2fr 1fr 1fr auto;
		align-items: center;
	}
}
.sw-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--sw-info-bg);
	font-size: 0.85em;
	justify-self: start;
}
.sw-status--paid,
.sw-status--shipped {
	background: var(--sw-success-bg);
	color: var(--sw-success);
}
.sw-status--cancelled,
.sw-status--refunded {
	background: var(--sw-error-bg);
	color: var(--sw-error);
}
.sw-order {
	display: grid;
	gap: 20px;
	margin-top: 12px;
}
.sw-address {
	font-style: normal;
	font-size: 0.95em;
}
.sw-order-status {
	display: grid;
	gap: 14px;
}
