/*
 * Kurv, betaling, kvittering og My winejourney – efter Kurv og checkout-mockup'en.
 * Styler WooCommerces egne blokke og kontosiden; ingen ændringer i deres markup.
 */

.wj-shop {
	background: var(--wj-sand);
	min-height: calc(100vh - 74px);
	padding-bottom: clamp(48px, 8vh, 96px);
	font-family: var(--wj-sans);
	color: var(--wj-text);
}

.wj-shop-inner {
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(20px, 3vh, 36px) var(--wj-gutter) 0;
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 3vh, 32px);
}

.wj-shop-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wj-shop .wj-shop-title {
	margin: 0;
	font-family: var(--wj-serif);
	font-weight: 600;
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--wj-bordeaux);
}

.wj-shop-help {
	margin: 0;
	font-size: 14px;
	color: var(--wj-text-2);
}

.wj-shop-help a {
	color: var(--wj-bordeaux);
	text-decoration: none;
	border-bottom: 1px solid var(--wj-gold);
}

/* ---------- Trin ---------- */

.wj-shop-steps {
	list-style: none;
	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(18px, 3vh, 28px) var(--wj-gutter) 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	position: relative;
}

.wj-shop-steps::before {
	content: "";
	position: absolute;
	left: calc(var(--wj-gutter) + 12.5%);
	right: calc(var(--wj-gutter) + 12.5%);
	top: calc(clamp(18px, 3vh, 28px) + 13px);
	border-top: 1px dashed var(--wj-line);
}

.wj-shop-steps li {
	position: relative;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.wj-shop-step-n {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--wj-line);
	background: var(--wj-sand);
	color: var(--wj-text-2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wj-serif);
	font-style: italic;
	font-size: 13px;
}

.wj-shop-step-t {
	font-size: 10.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wj-text-2);
}

.wj-shop-steps .is-current .wj-shop-step-n {
	background: var(--wj-gold);
	border-color: var(--wj-gold);
	color: var(--wj-paper);
	box-shadow: 0 0 0 4px rgba(192, 138, 62, .2);
}

.wj-shop-steps .is-done .wj-shop-step-n {
	background: var(--wj-bordeaux);
	border-color: var(--wj-bordeaux);
	color: var(--wj-creme);
	font-style: normal;
}

.wj-shop-steps .is-current .wj-shop-step-t,
.wj-shop-steps .is-done .wj-shop-step-t {
	color: var(--wj-bordeaux);
}

/* ---------- Fælles: skrift, felter, knapper ---------- */

.wj-shop .wc-block-cart,
.wj-shop .wc-block-checkout,
.wj-shop .woocommerce {
	font-family: var(--wj-sans);
	color: var(--wj-text);
}

.wj-shop h2,
.wj-shop h3,
.wj-shop .wc-block-components-title,
.wj-shop .wc-block-components-checkout-step__title,
.wj-shop .wc-block-cart__totals-title {
	font-family: var(--wj-serif) !important;
	font-weight: 600 !important;
	color: var(--wj-bordeaux);
	letter-spacing: -.01em;
	text-transform: none !important;
}

.wj-shop .wc-block-components-checkout-step__title {
	font-size: 24px !important;
}

.wj-shop .wc-block-components-product-name,
.wj-shop a.wc-block-components-product-name {
	font-family: var(--wj-serif);
	font-size: 20px;
	font-weight: 600;
	color: var(--wj-bordeaux);
	text-decoration: none;
}

.wj-shop .wc-block-components-product-metadata,
.wj-shop .wc-block-components-product-details {
	font-size: 13.5px;
	color: var(--wj-text-2);
}

.wj-shop .wc-block-components-product-details__name {
	font-weight: 600;
}

.wj-shop .wc-block-components-formatted-money-amount,
.wj-shop .wc-block-components-product-price {
	font-family: var(--wj-serif);
	font-weight: 600;
	color: var(--wj-bordeaux);
}

.wj-shop .wc-block-components-text-input input,
.wj-shop .wc-block-components-textarea,
.wj-shop .wc-block-components-combobox .wc-block-components-combobox-control input,
.wj-shop .wc-blocks-components-select__select,
.wj-shop .woocommerce form .input-text,
.wj-shop .woocommerce form select {
	background: var(--wj-paper) !important;
	border: 1px solid var(--wj-line) !important;
	border-radius: var(--wj-r-s) !important;
	color: #2E1A1F !important;
	font-family: var(--wj-serif) !important;
	font-size: 17px !important;
	box-shadow: none !important;
}

.wj-shop .wc-block-components-text-input input:focus,
.wj-shop .wc-block-components-textarea:focus,
.wj-shop .woocommerce form .input-text:focus {
	border-color: var(--wj-gold) !important;
	outline: 2px solid rgba(192, 138, 62, .35) !important;
	outline-offset: 0;
}

.wj-shop .wc-block-components-text-input label,
.wj-shop .wc-block-components-combobox label {
	font-family: var(--wj-sans);
	color: var(--wj-text-2);
}

.wj-shop .wc-block-components-button:not(.is-link),
.wj-shop .wc-block-cart__submit-button,
.wj-shop .wc-block-components-checkout-place-order-button,
.wj-shop .woocommerce .button,
.wj-shop .woocommerce button.button,
.wj-shop .woocommerce a.button {
	background: var(--wj-bordeaux) !important;
	color: var(--wj-creme) !important;
	border: 0 !important;
	border-radius: var(--wj-r-pill) !important;
	padding: 16px 28px !important;
	min-height: 0 !important;
	font-family: var(--wj-sans) !important;
	font-size: 12.5px !important;
	letter-spacing: .16em !important;
	text-transform: uppercase !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background-color .2s;
}

.wj-shop .wc-block-components-button:not(.is-link):hover,
.wj-shop .wc-block-cart__submit-button:hover,
.wj-shop .woocommerce .button:hover {
	background: var(--wj-hover) !important;
}

.wj-shop .wc-block-components-button.is-link,
.wj-shop .wc-block-cart-item__remove-link {
	color: var(--wj-bordeaux) !important;
	font-size: 12px !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 600;
	text-decoration: none !important;
	border-bottom: 1.5px solid var(--wj-gold) !important;
}

.wj-shop .wc-block-components-radio-control__option,
.wj-shop .wc-block-components-radio-control-accordion-option {
	border-radius: var(--wj-r-m) !important;
	background: var(--wj-paper);
	box-shadow: inset 0 0 0 1px var(--wj-line) !important;
}

.wj-shop .wc-block-components-radio-control__option-checked,
.wj-shop .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1.5px var(--wj-bordeaux) !important;
}

.wj-shop .wc-block-components-radio-control__input:checked {
	border-color: var(--wj-gold) !important;
}

.wj-shop .wc-block-components-radio-control__input:checked::before {
	background: var(--wj-gold) !important;
}

.wj-shop .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--wj-bordeaux) !important;
	border-color: var(--wj-bordeaux) !important;
}

.wj-shop .wc-block-components-checkbox__mark {
	fill: var(--wj-creme) !important;
}

/* ---------- Opsummeringen som papirkort (kurv og betaling) ---------- */

.wj-shop .wp-block-woocommerce-cart-totals-block,
.wj-shop .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--wj-paper);
	border: 1px solid var(--wj-line-light) !important;
	border-radius: var(--wj-r-l);
	box-shadow: 0 18px 40px -22px rgba(74, 21, 36, .35);
	padding: clamp(18px, 2.4vw, 28px) !important;
}

.wj-shop .wc-block-components-totals-item__label {
	font-family: var(--wj-sans);
	color: var(--wj-text-2);
}

.wj-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wj-gold-dark);
}

.wj-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 30px;
}

.wj-shop .wc-block-cart-items,
.wj-shop .wc-block-cart-items__header {
	border-color: var(--wj-line) !important;
}

.wj-shop .wc-block-cart-items__header {
	font-size: 10.5px;
	letter-spacing: .24em;
	color: var(--wj-gold-dark);
}

.wj-shop table.wc-block-cart-items {
	background: var(--wj-paper);
	border-radius: var(--wj-r-l);
	border: 1px solid var(--wj-line-light) !important;
	border-collapse: separate;
	padding: 8px 20px;
}

.wj-shop .wc-block-cart-item__image img {
	border-radius: var(--wj-r-s);
}

.wj-shop .wc-block-components-quantity-selector {
	border-radius: var(--wj-r-pill) !important;
	border-color: var(--wj-line) !important;
	background: var(--wj-paper);
}

.wj-shop .wc-block-components-quantity-selector button {
	background: none !important;
	color: var(--wj-bordeaux) !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.wj-shop .wc-block-components-notice-banner {
	border-radius: var(--wj-r-m);
	font-family: var(--wj-sans);
}

.wj-shop .wc-block-cart__empty-cart__title,
.wj-shop .wp-block-woocommerce-empty-cart-block h2 {
	font-size: clamp(26px, 2.6vw, 36px);
}

/* ---------- My winejourney ---------- */

.wj-shop--account .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
}

@media (min-width: 900px) {
	.wj-shop--account .woocommerce {
		grid-template-columns: 260px minmax(0, 1fr);
		align-items: start;
	}
}

.wj-shop .woocommerce-MyAccount-navigation,
.wj-shop .woocommerce-MyAccount-content,
.wj-shop .woocommerce-form-login,
.wj-shop .woocommerce-form-register,
.wj-shop .woocommerce-ResetPassword {
	float: none !important;
	width: auto !important;
	background: var(--wj-paper);
	border: 1px solid var(--wj-line-light);
	border-radius: var(--wj-r-l);
	padding: clamp(20px, 2.6vw, 32px) !important;
	margin: 0 !important;
}

.wj-shop .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.wj-shop .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--wj-line-light);
}

.wj-shop .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0;
}

.wj-shop .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 12px 4px;
	font-family: var(--wj-serif);
	font-size: 17px;
	color: var(--wj-bordeaux);
	text-decoration: none;
}

.wj-shop .woocommerce-MyAccount-navigation .is-active a,
.wj-shop .woocommerce-MyAccount-navigation a:hover {
	color: var(--wj-gold-text);
}

.wj-shop .woocommerce-MyAccount-navigation .is-active a::before {
	content: "✦ ";
	color: var(--wj-gold);
}

.wj-shop .woocommerce-MyAccount-content p {
	font-family: var(--wj-serif);
	font-size: 17px;
	line-height: 1.6;
}

.wj-shop .woocommerce-MyAccount-content a:not(.button) {
	color: var(--wj-bordeaux);
	text-decoration: none;
	border-bottom: 1px solid var(--wj-gold);
}

.wj-shop table.shop_table,
.wj-shop table.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	font-size: 15px;
}

.wj-shop table.shop_table th {
	font-family: var(--wj-sans);
	font-size: 10.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wj-gold-dark);
	text-align: left;
	border-bottom: 1px solid var(--wj-line);
	padding: 10px 8px;
	background: none;
}

.wj-shop table.shop_table td {
	border-bottom: 1px solid var(--wj-line-light);
	padding: 14px 8px;
	vertical-align: middle;
	background: none;
}

.wj-shop table.shop_table tr:last-child td {
	border-bottom: 0;
}

.wj-shop .woocommerce-orders-table__cell-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wj-shop .woocommerce-orders-table__cell-order-actions .button {
	padding: 10px 16px !important;
	font-size: 10.5px !important;
	margin: 0 !important;
}

.wj-shop .woocommerce-orders-table__cell-order-actions .button.view {
	background: transparent !important;
	color: var(--wj-bordeaux) !important;
	box-shadow: inset 0 0 0 1px var(--wj-bordeaux) !important;
}

.wj-shop mark {
	background: none;
	color: var(--wj-bordeaux);
	font-weight: 600;
}

.wj-shop--account:not(:has(.woocommerce-MyAccount-navigation)) .woocommerce {
	grid-template-columns: minmax(0, 1fr);
	max-width: 760px;
}

.wj-shop .woocommerce form .form-row label {
	font-family: var(--wj-sans);
	font-size: 13px;
	color: var(--wj-text-2);
}

.wj-shop .woocommerce-info,
.wj-shop .woocommerce-message,
.wj-shop .woocommerce-error {
	border-radius: var(--wj-r-m);
	border-top: 0;
	background: var(--wj-paper);
	box-shadow: inset 0 0 0 1px var(--wj-line);
	color: var(--wj-text);
	font-family: var(--wj-sans);
}

.wj-shop .woocommerce-info::before,
.wj-shop .woocommerce-message::before {
	color: var(--wj-gold);
}

.wj-shop .wc-block-components-totals-coupon .wc-block-components-panel__button {
	font-family: var(--wj-sans);
	color: var(--wj-bordeaux);
}

/* Kadence pakker menuen ind i .account-navigation-wrap (med avatar). */
.wj-shop--account .account-navigation-wrap,
.wj-shop--account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}

@media (min-width: 900px) {
	.wj-shop--account .account-navigation-wrap {
		grid-column: 1;
		grid-row: 1;
	}
	.wj-shop--account .woocommerce-MyAccount-content {
		grid-column: 2;
		grid-row: 1;
	}
}

.wj-shop--account .account-navigation-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wj-shop--account .kadence-customer-image,
.wj-shop--account .account-navigation-wrap > .kadence-account-avatar {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wj-serif);
	font-size: 17px;
	color: var(--wj-bordeaux);
}

.wj-shop--account .account-navigation-wrap img {
	border-radius: 50%;
}

.wj-shop .woocommerce-MyAccount-content > * + * {
	margin-top: 20px;
}

.wj-shop .woocommerce-MyAccount-content h2,
.wj-shop .woocommerce-MyAccount-content h3,
.wj-shop .woocommerce-order-details__title,
.wj-shop .woocommerce-column__title {
	font-size: clamp(22px, 2vw, 28px);
	margin: 0 0 12px;
}

/* Log ind / opret profil side om side */
.wj-shop--account:not(:has(.woocommerce-MyAccount-navigation)) .woocommerce {
	max-width: none;
}

.wj-shop .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	gap: 28px;
	width: auto;
	float: none;
}

.wj-shop .u-columns .u-column1,
.wj-shop .u-columns .u-column2 {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wj-shop .u-columns h2 {
	margin: 0;
	font-size: clamp(24px, 2.2vw, 30px);
}

.wj-shop .woocommerce-form-login,
.wj-shop .woocommerce-form-register {
	flex: 1;
}

.wj-shop .woocommerce form .input-text {
	padding: 12px 14px !important;
	width: 100%;
	box-sizing: border-box;
}

.wj-shop .woocommerce-privacy-policy-text p {
	font-family: var(--wj-sans) !important;
	font-size: 13.5px !important;
	color: var(--wj-text-2);
}

/* Clearfix-pseudoelementer må ikke blive gitterceller. */
.wj-shop .woocommerce::before,
.wj-shop .woocommerce::after,
.wj-shop .u-columns::before,
.wj-shop .u-columns::after {
	display: none !important;
}

/* Abonnement (Subscriptions For WooCommerce) */
.wj-shop .wps_sfw_details_wrap {
	gap: 20px;
}

.wj-shop .wps_sfw_details_wrap table,
.wj-shop .wps_sfw_details_wrap .shop_table {
	background: var(--wj-paper) !important;
	border: 1px solid var(--wj-line-light) !important;
	border-radius: var(--wj-r-m) !important;
	box-shadow: none !important;
	overflow: hidden;
}

.wj-shop .wps_sfw_details_wrap th,
.wj-shop .wps_sfw_details_wrap thead th,
.wj-shop .wps_sfw_details_wrap tbody th {
	background: var(--wj-creme) !important;
	color: var(--wj-bordeaux) !important;
	font-family: var(--wj-serif) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.wj-shop .wps_sfw_details_wrap td,
.wj-shop .wps_sfw_details_wrap td * {
	text-transform: none !important;
}

.wj-shop .wps_sfw_details_wrap td {
	background: transparent !important;
	font-size: 15px;
}

.wj-shop .wps_sfw_active,
.wj-shop .woocommerce-orders-table__cell-order-status span {
	border-radius: var(--wj-r-pill);
}

.wj-shop .wps_sfw_sub_detail_back {
	color: var(--wj-bordeaux) !important;
	font-family: var(--wj-sans);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
}

.wj-shop .wps_sfw_cancel_subscription.button {
	background: transparent !important;
	color: var(--wj-bordeaux) !important;
	box-shadow: inset 0 0 0 1px var(--wj-bordeaux) !important;
}

.wj-shop .wps_sfw_cancel_subscription.button:hover {
	background: var(--wj-bordeaux) !important;
	color: var(--wj-creme) !important;
}
