/*
 Theme Name: Aalborg Hundehotel
 Description: Dette child theme er bygget specifikt til Aalborg Hundehotel.
 Author: DBNWeb
 Author URI: https://dbnweb.dk
 Template: Divi
 Version: 1.0.0
*/

/* ==== General ==== */
img.svg-pote {
    width: 100px;
    height: auto;
}
img.svg-poter {
    position: absolute;
    bottom: -100px;
    width: 250px;
    right: 100px;
    z-index: 9;
}
.et_pb_button {
    cursor: pointer !important;
}

hr {
    border: 1px solid #D6DCE0;
}

@media screen and (max-width: 991px) {
    img.svg-poter {
        width: 150px;
        bottom: -80px;
    }
}

@media screen and (max-width: 767px) {
    img.svg-poter {
        width: 120px;
        bottom: -50px;
        right: unset;
        left: 50%;
        transform: translateX(-50%);
    }
}

span.navn-pote {
    display: inline-block;
}
span.navn-pote svg {
    width: 48px;
    height: auto;
}
.navn .et_pb_module_heading {
    display: flex;
    align-items: center;
}
.navn .navn-pote {
    margin-right: 22px;
    line-height: 0;
}

.menu-item-hover {
	position: absolute;
	bottom: 0;
	left: calc(50% - 11px);
	transform: translateX(-50%);
	width: 30px;
	height: auto;
}

/* Containeren til betalingsmetoder */
ul.payment_methods.methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Mellemrum mellem knapperne */
    padding: 0;
    list-style: none;
    margin: 20px 0;
}

/* De enkelte list-elementer (knapperne) */
ul.payment_methods.methods li.wc_payment_method {
    flex: 1; /* Sørger for at de deler pladsen ligeligt */
    min-width: 200px; /* Sikrer at de ikke bliver for små på mobil */
    position: relative;
}

/* Skjul selve radio-button cirklen (valgfrit, men ser mere moderne ud) */
ul.payment_methods.methods li.wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Styling af label (selve knappen) */
ul.payment_methods.methods li.wc_payment_method label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Tekst og logo over hinanden */
    padding: 15px;
    border: 2px solid #e2e4e7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    font-weight: bold;
}

/* Styling af logoet inde i label */
ul.payment_methods.methods li.wc_payment_method label img {
    max-height: 25px;
    margin-top: 8px;
    margin-left: 0; /* Centreret pga. column layout */
}

/* Når metoden er valgt */
ul.payment_methods.methods li.wc_payment_method input[type="radio"]:checked + label {
    border-color: #d4a368; /* Din orange farve fra pote-ikonet */
    background-color: #fef8f6;
    color: #d4a368;
}

/* Skjul betalingsbeskrivelsen som standard (vises kun hvis nødvendigt) */
.payment_box {
    display: none !important; /* Gemmer de lange tekster for et renere look */
}

/* Responsive optimering for små skærme */
@media (max-width: 600px) {
    ul.payment_methods.methods {
        flex-direction: column;
    }
} 

/* ==== Custom top header ==== */
#custom-top-header .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
	gap: 20px;
}
#custom-top-header .container p {
    margin-bottom: 0 !important;
}
.custom-top-header-text {
	flex: 1;
}
.custom-top-header-sign-in {
    display: flex;
    align-items: center;
    transition: opacity .3s;
}
.custom-top-header-sign-in:hover {
    opacity: .7;
}
.custom-top-header-sign-in svg {
    margin-right: 6px;
}

.booking-btn a {
    padding: 12px 25px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #3ea635;
}
.booking-icon svg {
    width: 28px;
    height: auto;
    margin-bottom: 8px;
}

.kurv-btn a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.kurv-icon svg {
    width: 42px;
    height: auto;
    margin-left: -8px;
    margin-bottom: 8px;
}


/* ==== Custom top header ==== */
.c-top-header {
    background-color: #000;
    padding: 5px 15px;
}
.c-top-header > .c-top-header__inner {
    width: 1208px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;

}

/* ==== Primary header ==== */
#mobile_menu {
	background-color: #FFF !important;
}
.et_mobile_menu li:not(.menu-item-509) a {
	color: #000 !important;
}
.et_mobile_menu li a.booking-btn:hover {
	background-color: #3ea635 !important;
}
ul#top-menu {
    padding-bottom: 33px;
}
ul#top-menu li {
    vertical-align: bottom;
}
ul#top-menu li a {
    font-weight: 600;
}
ul#top-menu li:not(.booking-btn) a {
    padding-bottom: 0 !important;
}
.et-cart-info {
    display: none !important;
}
@media only screen and (min-width: 981px) {
    ul#top-menu {
        padding-bottom: 54px;
    }
}
.menu-item-hover {
    position: absolute;
    bottom: -45px !important;
    left: 50%;
    transform: translateX(-50%);
}

/*==== Footer ====*/

#buttom-footer-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 38px;
    flex-wrap: wrap;
}
@media screen and (max-width: 991px) {
    #buttom-footer-actions {
        justify-content: flex-start;
    }
}

.footer-facebook-icon {
	line-height: 1;
	margin-bottom: 0;
    transition: all .3s;
}
.footer-facebook-icon:hover {
    opacity: .7;
}

.footer-ikoner {
	display: flex;
	align-items: center;
	gap: 25px;
}
.footer-ikoner div {
	text-align: right;
	color: #FFF;
	line-height: normal;
}

@media screen and (max-width: 767px) {
    .footer-ikoner div {
        text-align: left;
    }
}

#custom-footer-menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
}

#custom-footer-menu li a {
    position: relative;
    text-decoration: none;
    color: #000 !important;
	font-size: 16px;
}

#custom-footer-menu li:not(:last-child) a::after {
    content: "•";
    position: absolute;
    right: -1.2rem;
    top: 0;
    line-height: 18px;
}


/*==== Headers ====*/
.section-top-shadow::after {
    content: "";
    background: #0d0d0d;
    background: linear-gradient(180deg,rgba(13, 13, 13, 0.65) 0%, rgba(13, 13, 13, 0.3) 50%, rgba(13, 13, 13, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.section-top-shadow-sm::after {
    content: "";
    background: #0d0d0d;
    background: linear-gradient(180deg,rgba(13, 13, 13, 0.65) 0%, rgba(13, 13, 13, 0.2) 45%, rgba(13, 13, 13, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.header-content-container {
    align-self: flex-start !important;
    -webkit-align-self: flex-start !important;
}

/*==== Table styling ====*/
.pristabel table {
    border: none !important;
}
.pristabel table tr td {
    border: none;
    padding: 8px 0;
    vertical-align: top;
}
.pristabel table tr td:not(:first-child) {
    padding-left: 48px;
}
.pristabel table tr:not(:last-child) {
    border-bottom: 1px solid #BABABA;
}

/*==== Gray box ====*/
.gray-box {
    background-color: #F0F0F0;
    padding: 65px;
}
.gray-box h3 {
    font-size: 36px;
    margin-bottom: 3px;
    padding-bottom: 25px;
    position: relative;
}
.gray-box h3::after {
    content: "";
    position: absolute;
    width: 65%;
    height: 2px;
    bottom: 0;
    background-color: #D4A368;
    left: 0;
}

/*==== Buttons and forms ====*/
#c-woo-wrapper input {
    background-color: #FFF !important;
    border: 1px solid #DDDDDD;
}
#c-woo-wrapper .woocommerce-form {
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}


/*==== Booking ====*/
.calendar-table td.off.disabled {
    background-color: #ffaaaa !important;
}
.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: #44b448 !important;
}
.booking-step {
    display: none;
}
.booking-step.show {
    display: block !important;
}
.booking-btns {
    margin-top: 30px;
}
.booking-btns > .prev-step {
    border: 3px solid #d4a368 !important;
    background: transparent !important;
    color: #d4a368 !important;
}
.booking-btns > .prev-step:hover {
    color: #9f7441 !important;
}
#dbn-booking-form .form-field {
    margin-top: 25px;
}
#dbn-booking-form .form-field label {
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: bolder;
}
#dbn-booking-form h5 {
    font-weight: 900;
    color: #66DC71;
    font-size: 20px;
}
.form-row-1-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.form-col-1-2 {
    width: 100%;
}
@media screen and (max-width: 767px) {
    .form-row-1-2 {
        flex-direction: column;
    }
}
#dbn-booking-form textarea {
    max-width: 100%;
}

/*==== Timeline Grundindstillinger (Desktop) ====*/
.timeline {
    list-style: none !important;
    padding: 0 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.li {
    transition: all 200ms ease-in;
    flex: 1;
}

.timeline .timeline-pote {
    opacity: .1;
    transition: opacity 0.2s ease;
}

.timeline .li.active .timeline-pote {
    opacity: 1;
}

.status {
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid #D6DCE0;
    position: relative;
    transition: all 200ms ease-in;
}

.status span {
    font-weight: 600;
    text-align: center;
}

.status::before {
    content: '';
    width: 25px;
    height: 25px;
    background-color: white;
    border-radius: 25px;
    border: 1px solid #ddd;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 200ms ease-in;
    z-index: 2;
}

/* COMPLETE STATE */
.li.complete .status {
    border-top: 2px solid #66DC71;
}

.li.complete .status::before {
    background-color: #66DC71;
    border: none;
}

.li.complete .status span {
    color: #66DC71;
}

/*==== LAYOUT SYSTEM ====*/
.dbn-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.dbn-booking-box {
    background-color: #F0F0F0;
    padding: 35px;
}

.col-7, .col-5 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }

/*==== RESPONSIVE OPTIMERING (Mobil & Tablet) ====*/
@media (max-width: 768px) {
    /* Tidslinjen skifter til lodret */
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px !important;
    }

    .li {
        width: 100%;
    }

    .status {
        align-items: flex-start;
        border-top: none !important; /* Vigtigt: fjerner vandret linje */
        border-left: 2px solid #D6DCE0;
        padding: 0 0 30px 25px;
        margin-left: 10px;
        text-align: left;
    }

    .status span {
        text-align: left;
    }

    .status::before {
        left: -13px; /* Centrerer prikken på den lodrette linje */
        top: 0;
        transform: none;
    }

    /* Grøn linje på mobil ved gennemførte trin */
    .li.complete .status {
        border-left: 2px solid #66DC71;
    }

    /* Fjern den sidste streg så den ikke "hænger" i luften */
    .li:last-child .status {
        border-left: 2px solid transparent;
    }

    /* Gør kolonner 100% brede på mobil */
    .col-7, .col-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* FORM */
.form-control {
    background-color: #fff;
    border: 1px solid rgb(187, 187, 187) !important;
    border-radius: 4px;
    box-sizing: border-box;
    color: #2b2d2f;
    font-family: inherit;
    font-size: 1em;
    line-height: 1em;
    margin: 0 !important;
    min-height: 0;
    padding: 1em .5em !important;
    width: 100%;
}
button[name="update_cart"] {
    display: none !important;
}
table.shop_table td.actions {
    display: none !important;
}
body.woocommerce-checkout #order_review_heading {
    margin-top: 35px;
}


/* WooCommerce Checkout */
.woocommerce-checkout input,
.woocommerce-checkout textarea,
.edit-account input, 
.edit-account textarea,
.woocommerce-form input,
.woocommerce-form textarea {
	border: 1px solid rgb(187, 187, 187) !important;
    border-radius: 4px !important;
    box-sizing: border-box;
    color: #2b2d2f;
    font-family: inherit;
    font-size: 1em !important;
    line-height: 1em;
    margin: 0 !important;
    min-height: 0;
    padding: 1em .5em !important;
    width: 100%;
	background-color: #FFF !important;
}
.payment_method_epay_payment_solutions label img {
	width: 150px;
	height: auto;
	display: block;
}

/* Checkout */
.woocommerce-terms-and-conditions {
    max-height: 300px !important;
}
.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
}
.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox * {
    width: fit-content !important;
}
.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox #terms {
    margin-right: 10px !important;
}
.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 8px 15px;
	transition: background .3s;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
	background-color: #E5E5E5 !important;
}

@media screen and (max-width: 767px) {
	.woocommerce-MyAccount-navigation {
		margin-bottom: 50px;
	}
}


.menu-item-hover {
    position: absolute;
    bottom: 0;
    left: calc(50% - 11px);
    transform: translateX(-50%);
    width: 30px;
    height: auto;
}

/* Containeren til betalingsmetoder */
ul.payment_methods.methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Mellemrum mellem knapperne */
    padding: 0;
    list-style: none;
    margin: 20px 0;
}

/* De enkelte list-elementer (knapperne) */
ul.payment_methods.methods li.wc_payment_method {
    flex: 1; /* Sørger for at de deler pladsen ligeligt */
    min-width: 200px; /* Sikrer at de ikke bliver for små på mobil */
    position: relative;
}

/* Skjul selve radio-button cirklen (valgfrit, men ser mere moderne ud) */
ul.payment_methods.methods li.wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Styling af label (selve knappen) */
ul.payment_methods.methods li.wc_payment_method label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Tekst og logo over hinanden */
    padding: 15px;
    border: 2px solid #e2e4e7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    font-weight: bold;
}

/* Styling af logoet inde i label */
ul.payment_methods.methods li.wc_payment_method label img {
    max-height: 25px;
    margin-top: 8px;
    margin-left: 0; /* Centreret pga. column layout */
}

/* Når metoden er valgt */
ul.payment_methods.methods li.wc_payment_method input[type="radio"]:checked + label {
    border-color: #d4a368; /* Din orange farve fra pote-ikonet */
    background-color: #fef8f6;
    color: #d4a368;
}

/* Skjul betalingsbeskrivelsen som standard (vises kun hvis nødvendigt) */
.payment_box {
    display: none !important; /* Gemmer de lange tekster for et renere look */
}

/* Responsive optimering for små skærme */
@media (max-width: 600px) {
    ul.payment_methods.methods {
        flex-direction: column;
    }
}


/* Checkliste */
#tjekliste {
	position: relative;
}
.hund-kigger-ned {
	position: absolute;
	left: 50%;
	top: -160px;
	transform: translatex(-50%);
}
.hund-kigger-ned img {
	width: 380px;
	height: auto;
}
@media screen and (max-width: 980px) {
	.hund-kigger-ned {
		top: -100px;
		transform: translatex(-50%);
	}
	.hund-kigger-ned img {
		width: 235px;
	}
}
@media screen and (max-width: 460px) {
	.hund-kigger-ned {
		top: -76px;
		transform: translatex(-50%);
	}
	.hund-kigger-ned img {
		width: 180px;
	}
}
@media screen and (max-width: 350px) {
	.hund-kigger-ned {
		top: -50px;
		transform: translatex(-50%);
	}
	.hund-kigger-ned img {
		width: 120px;
	}
}