/* ---------------------------------------------------------------------------------------------

	Theme Name: WorkDigital Foundation Child
	Version: 0.1
	Description: Child theme for WorkDigital Foundation theme
	Author: WorkDigital
	Author URI: https://workdigital.dk
    Template: wd-foundation

/* --------------------------------------------------------------------------------------------- */


body.logged-in .login-menulink {
    display: none;
}

body:not(.logged-in) :is(.memberposts, .logout-menulink) {
    display: none;
}




body *:not(.post-inner) > .entry-content > *:first-child {
    margin-top: 0;
}

body *:not(.post-inner) > .entry-content > *:first-child:not(.wp-block-cover) {
    margin-top: 3.5rem;
}

body .entry-content > *:last-child {
    margin-bottom: 0;
}

@media screen and (min-width: 700px) {
    body .entry-content > *:last-child {
        margin-bottom: 0;
    }
}

.wdf-width {
    max-width: 90%;
}

.wp-block-cover, .wp-block-cover-image {
    padding: 0;
}



.wp-block-button .wp-block-button__link, .btn, .wpcf7 input.wpcf7-submit, .wd-contact-form .wd-form-actions .wd-submit-btn, .button {
    font-family: var(--big-headline-font-family);
    font-weight: normal;
    text-transform: initial;
    letter-spacing: 0;
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    border-radius: 26px;
    display: flex;
    gap: 6px;
    align-items: center;
    text-align: center;
    justify-content: center;
    transition: all var(--standard-transition);
    text-decoration: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: var(--body-font-size);
    line-height: normal;
}

.color-accent, .color-accent-hover:hover, .color-accent-hover:focus, :root .has-accent-color, .has-drop-cap:not(:focus)::first-letter, .wp-block-button.is-style-outline, a {
    color: currentColor;
}




.main-header-logo-link img {
    padding: 7px 0;
}




/* LOGINFORM */

.wp-block-loginout form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form#loginform input.input {
    padding: 5px 20px;
    min-height: 44px;
    width: 100%;
    letter-spacing: normal;
    background: var(--kontaktformular-inner-bg);
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    outline: none;
    color: var(--text-color);
}

p.login-remember label {
    display: flex;
    gap: 10px;
    flex-direction: row;
}






body:not(.logged-in) .bottom-nav {
    display: none;
}

.bottom-nav {
    background: none;
}

.bottom-nav-list {
    justify-content: flex-end;
    margin-right: 12px;
}

.bottom-nav-item a {
    background: var(--accent-color);
    padding: 10px 15px;
    flex-direction: row;
    gap: 10px;
    border-radius: 50px;
    box-shadow: var(--shadowlevel-2);
}

span.bottom-nav-label {
    color: inherit;
    text-wrap: balance;
    font-weight: bold;
}

.bottom-nav-item .wd-icon {
    width: auto;
    background: none !important;
}

.bottom-nav-item:first-of-type .wd-icon {
    animation: horizontal-shaking 1.5s infinite;
}

@keyframes horizontal-shaking {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
    100% {
        transform: translateX(0);
    }
}







footer.site-footer .footer-inner {
    padding: 40px 0 150px;
}

.footer-headline-wrapper {
	--footer-logo-height: 90px;
	
}

img.footer-logo {
    height: var(--footer-logo-height);
    width: auto;
}

.footer-columns {
    gap: var(--footer-gap);
}

















/* RADIOBUTTON STYLING OVERFØRES TIL PLUGIN */



















.wd-contact-form :is(.kontaktform-form-row, .kontaktform-rows) {
    gap: 20px 15px;
}




.wd-contact-form label * {
    line-height: normal;
}




.wd-contact-form label span.label-text {
    position: absolute;
    z-index: 1;
    left: 10px;
    right: auto;
    top: 12px;
    bottom: auto;
    padding: 2px 5px;
    transition: all .2s ease;
    color: var(--text-color, #1a1a1a);
    font-size: var(--body-font-size), 16px;
}






.wd-contact-form label:has(.form-group.wd-field-conditionally-hidden) {
    display: none;
}

body.dark-mode .wd-contact-form input[type="radio"]:checked::after {
    background-color: var(--text-color, #0073e6);
}

.wd-contact-form :is(input[type="checkbox"], input[type="radio"]) {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--separator, #e1e5e9);
    position: relative;
    cursor: pointer;
    transition: var(--wd-form-transition);
    aspect-ratio: 1 / 1;
    top: 3px;
    align-self: flex-start;
}






.wd-contact-form option:not(.select-placeholder-option) {
    color: var(--text-color, #333);
    font-style: normal;
}

.wd-contact-form .form-group.has-error select {
    background-position: center right 40px;
}





.wd-contact-form .file-upload-wrapper label {
    cursor: pointer;
}

.wd-contact-form .form-group.has-error .file-upload-wrapper {
    border-color: var(--wd-error-color, #dc3545);
}

.wd-contact-form .file-upload-wrapper .wd-file-input-info {
    font-size: 14px;
    font-style: italic;
    color: var(--text-color-light, #6b7280);
    margin-top: 0;
}

.wd-contact-form .file-upload-wrapper .wd-file-input-info p {
    font-size: inherit;
}





.wd-submit-text {
    display: inline-block;
    font-family: inherit;
}









.wd-contact-form .gdpr-text {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
}


.wd-cards-wrapper--slider {
    max-width: calc(100% - 20px);
    margin: 0 auto;
}




/*


.wd-contact-form .radio-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wd-contact-form input[type="radio"] {
    border-radius: 50%;
    padding: 0;
}

.wd-contact-form .radio-option {
    display: flex;
    gap: 10px;
	align-items: center;
}

.wd-contact-form .radio-option.radio-placeholder {
    display: none;
}

.wd-contact-form :is(input[type="checkbox"], input[type="radio"]) {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--separator, #e1e5e9);
    position: relative;
    cursor: pointer;
    transition: var(--wd-form-transition);
    aspect-ratio: 1 / 1;
}

.wd-contact-form .radio-option label {
    line-height: normal;
	width: 100%;
	cursor: pointer;
	text-wrap: balance;
}

.wd-contact-form label:has(.form-group .radio-group) {
    background-color: var(--surface-color-faded, #efefef);
    padding: 12px;
	border-radius: var(--wd-form-radius);
}

.wd-contact-form label:has(.form-group .radio-group) span.label-text {
    position: relative;
    top: 0;
    background-color: transparent;
    padding: 0;
    left: 0;
	margin-bottom: 10px;
    display: block;
}








.wd-contact-form .form-group:has(.checkbox-wrapper) {
    align-self: stretch;
}

.wd-contact-form .checkbox-wrapper {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
}




.wd-contact-form {
    max-width: unset;
    margin: 0 auto;
    padding: 0;
    font-size: var(--body-font-size), 16px;
}




.wd-contact-form .kontaktform-form-row {
    container-name: kontakt-form-grid;
	container-type: inline-size;
	padding: 0;
}

@container kontakt-form-grid (width < 435px) {
	.wd-contact-form .kontaktform-rows {
		grid-template-columns: 1fr;
	}
} 







.wd-contact-form .file-upload-info p {
    font-size: 14px;
    color: var(--text-color-light, #6b7280);
    line-height: normal;
}

*/