/*Theme Name: MTop - Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Et Childtheme til Elementor
Author: Morten Tranekær
Author URI: https://skarpere.dk
Template: hello-elementor
Version: 1.0.0
Text Domain: skarpere-hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/*********************************************************/
/*********************************************************/
/*********************************************************/
/******************CSS SKRIVES NEDENFOR*******************/
/*********************************************************/
/*********************************************************/
/*********************************************************/

.custom-product-gallery .gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.custom-product-gallery .gallery .gallery-item {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.custom-product-gallery .gallery .gallery-icon {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
}

.custom-product-gallery .gallery .gallery-icon a {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-product-gallery .gallery .gallery-icon img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.custom-product-gallery .gallery .gallery-icon a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(220, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.custom-product-gallery .gallery .gallery-icon a:hover::after {
    opacity: 1;
}
.custom-product-gallery .gallery .gallery-icon a::before {
    content: "";
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);

    width: 30px;
    height: 30px;

    background: url("data:image/svg+xml;utf8,<svg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 2a8 8 0 105.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/></svg>") no-repeat center;
    background-size: contain;

    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}
.custom-product-gallery .gallery .gallery-icon a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.woocommerce-form-coupon-toggle{
	display: none;
}

.step-error {
  border-color: #c94b4b !important;
  box-shadow: 0 0 0 1px #c94b4b inset !important;
}

.field-error-message {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #c94b4b;
}

/* =========================
   CHECKOUT
========================= */

.woocommerce-checkout .custom-checkout-layout {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0;
}

.woocommerce-checkout .custom-checkout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 480px;
	gap: 64px;
	align-items: start;
}

.custom-checkout-left {
	padding-top: 8px;
}

.checkout-step {
	border-top: 1px solid #d9d9d9;
	padding: 26px 0 30px;
}

.checkout-step:first-child {
	border-top: 0;
	padding-top: 0;
}

.checkout-step__header {
	display: grid;
	grid-template-columns: 180px 1fr auto;
	gap: 16px;
	align-items: start;
}

.checkout-step__header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #2f2f33;
}

.checkout-step__summary {
	font-size: 15px;
	line-height: 1.6;
	color: #3f3f46;
	max-width: 360px;
}

.checkout-step__summary-divider {
	display: block;
	width: 100%;
	max-width: 260px;
	border-top: 1px solid #d9d9d9;
	margin: 10px 0 10px;
}

.checkout-step__edit {
	background: none;
	border: 0;
	padding: 0;
	font-size: 15px;
	color: #3f3f46;
	cursor: pointer;
	display: none;
}

.checkout-step.is-complete .checkout-step__edit {
	display: inline-block;
}

.checkout-step__body {
	margin-top: 22px;
	max-width: 660px;
}

.checkout-step.is-collapsed .checkout-step__body,
.checkout-step.is-locked .checkout-step__body {
	display: none;
}

.checkout-section-subtitle {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: #2f2f33;
}

.checkout-card {
	background: transparent;
	border: 0;
	padding: 0;
	margin-bottom: 20px;
}

.woocommerce-checkout form .form-row {
	margin-bottom: 14px;
}

.woocommerce-checkout form .form-row label {
	display: none !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container .select2-selection--single {
	min-height: 56px;
	padding: 14px 16px;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	font-size: 16px;
	color: #2f2f33;
	position: static !important;
}

.woocommerce-checkout textarea {
	min-height: 120px;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout .select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
	border-color: #8c8c8c;
	outline: none;
	box-shadow: none;
}

.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder {
	color: #8c8c8c;
	opacity: 1;
	font-size: 15px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 56px;
	padding-left: 16px;
	color: #2f2f33;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 56px;
	right: 10px;
}

.checkout-step__continue,
.woocommerce-checkout #place_order {
	margin-top: 18px;
	min-height: 46px;
	padding: 0 28px;
	background: #2f2f33;
	color: #fff;
	border: 0;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 4px;
}

.checkout-step__continue:hover,
.woocommerce-checkout #place_order:hover {
	opacity: 0.94;
}

.custom-billing-same-wrap {
	margin: 0 0 18px;
}

.custom-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.5;
	cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
	margin-top: 3px;
}

#billing-fields-wrap.is-hidden {
	display: none;
}

.custom-checkout-right {
	padding-top: 6px;
}

.checkout-card--order {
	background: #fff;
	border: 1px solid #dedede;
	padding: 0;
	position: sticky;
	top: 28px;
}

.checkout-card--order #order_review_heading {
	margin: 0;
	padding: 22px 24px;
	font-size: 18px;
	font-weight: 700;
	color: #2f2f33;
	border-bottom: 1px solid #e8e8e8;
}

.custom-checkout-right .shop_table {
	margin: 0;
	border: 0;
}

.custom-checkout-right .shop_table th,
.custom-checkout-right .shop_table td {
	padding: 18px 24px;
	border-top: 1px solid #ececec;
	vertical-align: top;
	font-size: 15px;
}

.custom-checkout-right .shop_table thead th {
	padding-top: 20px;
	padding-bottom: 14px;
	border-top: 0;
	font-size: 14px;
	font-weight: 600;
	color: #555;
}

.custom-checkout-right .shop_table .product-total,
.custom-checkout-right .shop_table .order-total td,
.custom-checkout-right .shop_table .order-total th {
	font-weight: 700;
}

.custom-checkout-right .woocommerce-shipping-totals {
	display: none !important;
}

.custom-shipping-methods ul.woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-shipping-methods ul.woocommerce-shipping-methods li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
}

.custom-shipping-methods ul.woocommerce-shipping-methods label {
	margin: 0;
	display: inline-block !important;
	font-weight: 500;
	cursor: pointer;
}

.checkout-shipping-placeholder {
	margin: 0;
	color: #666;
}

.step-error {
	border-color: #c94b4b !important;
	box-shadow: 0 0 0 1px #c94b4b inset !important;
}

#ship-to-different-address,
#ship-to-different-address-checkbox {
	display: none !important;
}

.woocommerce-checkout .form-row input:focus + label,
.woocommerce-checkout .form-row input:not(:placeholder-shown) + label {
	transform: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 1024px) {
	.woocommerce-checkout .custom-checkout-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.checkout-card--order {
		position: static;
	}

	.checkout-step__header {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

.checkout-card.checkout-card--shipping-methods {
    display: block;
}

.woocommerce form .form-row .input-text, .woocommerce form .form-row select{
	border: 1px solid #e7e7e7 !important;
}

/* =========================
   CHECKOUT SIDEBAR / ORDER SUMMARY
========================= */

.custom-order-sidebar {
	display: flex;
	flex-direction: column;
	background: #f8f8f8;
	padding: 10px;
}

.custom-order-sidebar__section {
	padding: 22px 24px;
	border-top: 1px solid #e7e7e7;
}

.custom-order-sidebar__section:first-child {
	border-top: 0;
}

.custom-order-sidebar__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.custom-order-sidebar__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #2f2f33;
}

.custom-order-sidebar__edit-cart {
	font-size: 14px;
	text-decoration: none;
}

.custom-order-sidebar__count {
	font-size: 15px;
	color: #2f2f33;
	margin-bottom: 18px;
}

.custom-order-sidebar__items {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.custom-order-sidebar__item {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 16px;
	align-items: start;
}

.custom-order-sidebar__item-image img {
	display: block;
	width: 60px;
	height: auto;
}

.custom-order-sidebar__item-name,
.custom-order-sidebar__item-name a {
	font-size: 15px;
	line-height: 1.35;
	color: #2f2f33;
	text-decoration: none;
}

.custom-order-sidebar__item-total {
	font-size: 15px;
	line-height: 1.35;
	color: #2f2f33;
	white-space: nowrap;
}

.custom-order-sidebar__coupon-title {
	font-size: 14px;
	margin-bottom: 14px;
	color: #315efb;
}

.custom-order-sidebar__coupon-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	margin: 0;
}

.custom-order-sidebar__coupon-form .form-row {
	margin: 0;
	float: none;
	width: auto;
}

.custom-order-sidebar__coupon-form .input-text {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	background: #fff;
}

.custom-order-sidebar__coupon-form button {
	min-height: 46px;
	padding: 0 24px;
	border: 1px solid #2f2f33;
	border-radius: 4px;
	background: #fff;
	color: #2f2f33;
	font-weight: 500;
	cursor: pointer;
}

.custom-order-sidebar__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #2f2f33;
	margin-bottom: 10px;
}

.custom-order-sidebar__row:last-child {
	margin-bottom: 0;
}

.custom-order-sidebar__grand-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.custom-order-sidebar__grand-row span:first-child {
	font-size: 17px;
	line-height: 1.4;
	color: #2f2f33;
}

.custom-order-sidebar__grand-row .woocommerce-Price-amount,
.custom-order-sidebar__grand-row strong,
.custom-order-sidebar__grand-row span:last-child {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	color: #2f2f33;
}

.custom-order-sidebar__tax-title {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	margin-bottom: 12px;
}

/* slå det gamle tabel-look fra i sidebar */
.custom-checkout-right .shop_table,
.custom-checkout-right table.shop_table,
.custom-checkout-right .woocommerce-checkout-review-order-table {
	border: 0 !important;
	margin: 0 !important;
}

.custom-checkout-right .shop_table th,
.custom-checkout-right .shop_table td {
	border: 0 !important;
	padding: 0 !important;
}

/* sørg for kortet stadig holder formen */
.checkout-card--order {
	background: #fff;
	border: 1px solid #dedede;
	padding: 0;
	position: sticky;
	top: 28px;
	overflow: hidden;
}

.checkout-card--order #order_review_heading {
	display: none;
}

.checkout-trust-icons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 24px;
	text-align: center;
}

.checkout-trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.checkout-trust-item img {
	max-width: 48px;
	height: auto;
}

.checkout-trust-item div {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: #2f2f33;
	text-transform: uppercase;
}

.checkout-trust-item span {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #6b6b6b;
	text-transform: none;
	margin-top: 2px;
}
.checkout-trust-icons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 20px;
}

.checkout-trust-item {
	text-align: center;
}

.trust-icon {
	margin-bottom: 10px;
	color: #2f2f33;
}

.checkout-trust-item strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 4px;
}

.checkout-trust-item span {
	font-size: 13px;
	color: #6b6b6b;
}

.checkout-trust-payment {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
}

.payment-icons {
	margin-top: 8px;
	font-size: 14px;
	color: #444;
}

.checkout-trust-note {
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.5;
	color: #2f2f33;
	text-align: center;
}

@media (max-width: 768px) {
	.checkout-trust-icons {
		grid-template-columns: 1fr;
		text-align: left;
	}
}

.custom-terms-wrap {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 20px 0 !important;
}

.custom-terms-wrap #terms {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	flex: 0 0 16px !important;
}

.custom-terms-text {
	display: block !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: #222 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.custom-terms-prefix {
	display: inline !important;
	color: #222 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.custom-terms-text a {
	display: inline !important;
	color: #3b82f6 !important;
	text-decoration: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.custom-terms-text a:hover {
	text-decoration: underline !important;
}