/**
 * By Birdie – kurv, kasse og Min konto.
 * Knapper og formularfelter (højde, kant, hjørner) sættes i Blocksys Customizer.
 * Her ligger kun det, der er specielt for WooCommerces kurv-/kasseblokke.
 */

/* ---------- Fælles ---------- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	--bb-panel: #EFEAE2;
	font-family: var(--bb-font-sans);
	color: #1A1A18;
}

/* Små labels i versaler */
.wc-block-cart-items__header,
.wc-block-cart__totals-title,
.wc-block-components-checkout-order-summary__title-text {
	font-family: var(--bb-font-sans) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: #5E5A54 !important;
}

/* Produktnavn og priser: stille */
.wc-block-components-product-name {
	font-family: var(--bb-font-sans);
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4;
	color: #1A1A18 !important;
	text-decoration: none !important;
}

a.wc-block-components-product-name:hover {
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.wc-block-cart-item__prices,
.wc-block-components-order-summary-item__individual-prices {
	font-size: 14px;
	font-weight: 300;
	color: #5E5A54;
}

/* Produktbeskrivelsen fylder for meget i kurven */
.wc-block-components-product-metadata__description {
	display: none;
}

/* Hvide billedfelter som i shoppen */
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
	box-sizing: border-box;
	aspect-ratio: 4 / 5;
	width: 100%;
	height: auto;
	padding: 6%;
	object-fit: contain;
	background: #FFFFFF;
}

/* Linjer */
.wc-block-cart-items,
.wc-block-cart-items td,
.wc-block-cart-items th,
.wc-block-components-totals-wrapper,
.wc-block-components-totals-footer-item {
	border-color: #E2DCD2 !important;
}

/* Totaler */
.wc-block-components-totals-item__label {
	font-weight: 300;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--bb-font-sans);
	font-size: 15px;
	font-weight: 400;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value *,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--bb-font-sans);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

.wc-block-components-totals-footer-item-tax,
.wc-block-components-totals-footer-item-tax strong,
.wc-block-components-totals-footer-item-tax * {
	font-size: 13px;
	font-weight: 300 !important;
	color: #5E5A54;
}

/* Antal-vælger: 44px touch-mål */
.wc-block-components-quantity-selector {
	min-height: 44px;
	border-radius: 0 !important;
	border-color: #CFC6B8 !important;
	background: #FFFFFF;
}

.wc-block-components-quantity-selector::after {
	border-radius: 0 !important;
	border-color: #CFC6B8 !important;
}

.wc-block-components-quantity-selector__button {
	min-width: 44px;
	color: #1A1A18 !important;
}

.wc-block-cart-item__remove-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: #5E5A54 !important;
}

/* Primærknapper: mørke, versaler */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 56px;
	border-radius: 0 !important;
	background: #1A1A18 !important;
	color: #F7F4EF !important;
	font-family: var(--bb-font-sans) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: #3A3631 !important;
}

/* ---------- Kurv ---------- */
.wc-block-cart .wc-block-cart__sidebar {
	align-self: flex-start;
	padding: 32px;
	background: var(--bb-panel);
}

.wc-block-cart .wc-block-cart__totals-title {
	padding: 0 0 12px !important;
}

.wc-block-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	padding-inline: 0;
}

.wc-block-cart .wc-block-cart__submit {
	margin-bottom: 0;
}

.wc-block-cart-item__total {
	font-size: 15px;
	font-weight: 400;
}

/* ---------- Servicelinje + logoer ---------- */
.bb-trust {
	margin-top: 24px;
	font-family: var(--bb-font-sans);
}

.bb-trust__list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.bb-trust__list li {
	position: relative;
	padding: 4px 0 4px 18px;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.5;
	color: #4E4A44;
}

.bb-trust__list li::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 2px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bb-gold-deco);
}

.bb-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-logos li {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	padding: 0 6px;
	background: #FFFFFF;
	border: 1px solid #E2DCD2;
}

.bb-logos img {
	display: block;
	max-width: none;
}

/* ---------- Kasse ---------- */
.wc-block-checkout .wc-block-components-checkout-step__title {
	font-family: var(--bb-font-serif) !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	line-height: 1.2;
	color: #1A1A18;
}

.wc-block-checkout .wc-block-components-checkout-step {
	margin-bottom: 40px;
}

/* Felter følger Blocksys formularfarver */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-textarea {
	border-radius: 0 !important;
	border-color: var(--theme-form-field-border-initial-color, #CFC6B8) !important;
	background-color: #FFFFFF !important;
	font-family: var(--bb-font-sans);
	font-weight: 400;
	color: #1A1A18 !important;
}

.wc-block-checkout .wc-blocks-components-select__container {
	border-radius: 0 !important;
	background: #FFFFFF !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-blocks-components-select__select:focus,
.wc-block-checkout .wc-block-components-textarea:focus {
	border-color: #1A1A18 !important;
	box-shadow: 0 0 0 1px #1A1A18 !important;
}

.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-blocks-components-select__label {
	color: #5E5A54 !important;
	font-weight: 300;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border-radius: 0 !important;
	border-color: #CFC6B8 !important;
	background: #FFFFFF !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: #1A1A18 !important;
	border-color: #1A1A18 !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: #F7F4EF !important;
}

/* Fragt- og betalingsvalg som hvide felter */
.wc-block-checkout .wc-block-components-radio-control--highlight-checked,
.wc-block-checkout .wc-block-components-radio-control-accordion-option,
.wc-block-checkout .wc-block-components-radio-control__option {
	border-radius: 0 !important;
}

.wc-block-checkout .wc-block-components-radio-control--highlight-checked {
	background: #FFFFFF;
}

.wc-block-checkout .wc-block-components-radio-control--highlight-checked::after,
.wc-block-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked::after,
.wc-block-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted::after,
.wc-block-checkout .wc-block-components-radio-control__option--checked-option-highlighted::after {
	border-radius: 0 !important;
	border-color: #1A1A18 !important;
}

.wc-block-checkout .wc-block-components-radio-control__input {
	border-color: #CFC6B8 !important;
}

.wc-block-checkout .wc-block-components-radio-control__input:checked {
	border-color: #1A1A18 !important;
}

.wc-block-checkout .wc-block-components-radio-control__input:checked::before {
	background: #1A1A18 !important;
}

.wc-block-checkout .wc-block-components-radio-control__label,
.wc-block-checkout .wc-block-components-payment-method-label {
	font-weight: 400;
}

.wc-block-checkout .wc-block-components-radio-control__secondary-label {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5E5A54;
}

/* Ordreoversigt som panel */
.wc-block-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--bb-panel);
	padding: 8px 8px 16px;
}

.wc-block-checkout .wc-block-components-checkout-order-summary__title {
	padding-inline: 16px;
}

.wc-block-components-order-summary-item__quantity {
	border-color: #CFC6B8 !important;
	background: #FFFFFF !important;
	color: #1A1A18 !important;
	box-shadow: none !important;
	font-size: 11px;
}

.wc-block-components-order-summary-item__total-price {
	font-weight: 400;
}

.wc-block-checkout .bb-trust {
	padding-inline: 4px;
}

.wc-block-checkout__terms {
	font-size: 13px;
	font-weight: 300;
	color: #4E4A44;
}

.wc-block-checkout__terms a,
.wc-block-checkout__guest-checkout-notice a,
.wc-block-components-checkout-return-to-cart-button {
	color: #1A1A18 !important;
	text-underline-offset: 4px;
}

.wc-block-components-address-card {
	border-radius: 0 !important;
	border-color: #CFC6B8 !important;
	background: #FFFFFF;
}

.wc-block-components-address-card__edit {
	color: #1A1A18 !important;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- Mobil ---------- */
@media (max-width: 699px) {
	.wc-block-cart .wc-block-cart__sidebar {
		padding: 24px 20px;
		margin-inline: -4px;
	}

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

	.wc-block-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
		padding: 0 16px;
	}

	.wc-block-checkout .wc-block-components-checkout-order-summary__title {
		padding-inline: 0;
		border: 0 !important;
	}
}

/* ---------- Min konto ---------- */
.woocommerce-account .woocommerce form .form-row label,
.woocommerce-account .woocommerce-form-login label {
	font-size: 13px;
	font-weight: 400;
	color: #4E4A44;
}

.woocommerce-account .required {
	color: #7A5E34 !important;
	text-decoration: none;
}

.woocommerce-account .woocommerce .button,
.woocommerce-account .woocommerce button[type="submit"] {
	min-height: 52px;
	border-radius: 0;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.woocommerce-account .lost_password a,
.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
	color: #1A1A18;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Navigation i kontoen */
.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #E2DCD2;
}

.woocommerce-MyAccount-navigation li {
	margin: 0 !important;
	border-bottom: 1px solid #E2DCD2;
}

.woocommerce-MyAccount-navigation li a {
	display: flex !important;
	align-items: center;
	min-height: 48px;
	padding: 0 0 0 14px !important;
	border: 0 !important;
	border-left: 2px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #4E4A44 !important;
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
	border-left-color: var(--bb-gold-deco) !important;
	color: #1A1A18 !important;
}

/* Ordretabel */
.woocommerce-account table.shop_table {
	border-color: #E2DCD2;
	border-radius: 0;
	font-size: 14px;
	font-weight: 300;
}

.woocommerce-account table.shop_table th {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #5E5A54;
}

.woocommerce-account table.shop_table td,
.woocommerce-account table.shop_table th {
	border-color: #E2DCD2 !important;
}

.woocommerce-account .woocommerce-Address,
.woocommerce-account address {
	font-style: normal;
	font-weight: 300;
	line-height: 1.7;
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-column__title {
	font-family: var(--bb-font-serif);
	font-size: 26px;
	font-weight: 400;
}

/* Der sælges kun til Danmark: landefeltet giver intet valg, så det skjules (værdien DK sendes stadig). */
.wc-block-components-address-form__country {
	display: none;
}
