/*
Theme Name: Studietøj
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* Hide ACF dummy fields */
input#acf-field_654df6e6e91a9-field_654df6e6e91aa,
input#acf-field_654df90bbeb0a-field_654df90cbeb0b {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.logo-placement__wrapper {
    position: relative;
    max-width: 40%;
}

.logo-placement__wrapper .logo-placement__product {
    width: 100%;
}

.logo-placement__wrapper .logo-placement__placeholder {
    position: absolute;
    z-index: 99;
    width: 10%; 
}

/*
Theme Name: Miti Child
Theme URI: https://demo.theme-sky.com/miti/
Author: Theme Sky Team
Author URI: http://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: miti
Version: 1.0.0
License: GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: miti-child
*/

.smuac_multiaccounts_container_top_button,
.smuac_multiaccounts_account_button {
    display: none !important;
}

/* Fjerner oprettelses oplysninger fra "opret ny elev" */
.smuac_multiaccounts_new_account_container_content_large_title:nth-child(5), .smuac_multiaccounts_new_account_container_content_large_title:nth-child(9), .smuac_multiaccounts_new_account_container_content_element:nth-child(6), .smuac_multiaccounts_new_account_container_content_element:nth-child(7), .smuac_multiaccounts_new_account_container_content_element:nth-child(8), .smuac_multiaccounts_new_account_container_content_element_checkbox{
    display:none !important;
}

.woocommerce-MyAccount-navigation {
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
	width: 100%;
}

.menu-button {    
	background: #00ffff;
    padding: 5px 10px 5px 10px !important;
	border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #000000;
}

/* ADT */
.adt-class-logo {
    position: absolute;
	z-index: 99;
    aspect-ratio: 1/1;
}

.products .product a img.adt-class-logo--front {	
	width: 15% !important;
	right: 30%;
	top: 25%;
}

.woocommerce-product-gallery__image .adt-class-logo--front {
    width: 15% !important;
    right: 30%;
    top: 25%;
}

.woocommerce-product-gallery__image .adt-class-logo--back {
    width: 30% !important;
    right: 35%;
    top: 25%;
}

.woocommerce-MyAccount-content {
	border-style: none !important;
}

#dashboard-copy-link-button {
	background-color: var(--fs-color-primary);
	border: 1px solid white;
	color: white;
	padding: 5px 15px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
	border-radius: 5px;
}

#dashboard-copy-link-button:hover {
	background-color: #FFFFFF;
	color: var(--fs-color-primary);
	border: 1px solid var(--fs-color-primary);
}

/* hide customer details on checkout */
#customer_details {
	display: none !important;
}

/* upload form + godkend form on class rep dashboard */
.wpforms-field-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

/* upload form on class rep dashboard */
#wpforms-form-6858 > .wpforms-field-container {
	justify-content: center;
}

/* delivery notice on frontpage */
.delivery-date-info {
	color: white;
}

/* override hover on wpforms upload */
#wpforms-6858.button:hover,
#wpforms-6858:hover {
    box-shadow: none !important;
    color: inherit !important;
    cursor: default !important;
}

/* hide all list items in the dropdown that are NOT the logout item */
.nav-dropdown-default .woocommerce-MyAccount-navigation-link:not(.woocommerce-MyAccount-navigation-link--customer-logout) {
    display: none;
}

/* product + logo on dashboard page (studietøj) */
.no-logo-overlay {
    position: relative;
    display: inline-block;
}

.low-alpha-image {
    opacity: 0.6;
}

.preview-product-image-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
}

.preview-product-image-item {
    position: relative;
    flex: 1;
}

.preview-product-image-item img {
    width: 100%;
}

.preview-class-logo {
    position: absolute;
    border: 1px dashed black;
    aspect-ratio: 1 / 1;
}

.overlay-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6em;
    color: black;
    font-size: 25px;
    line-height: 30px;
    text-align: center;
    pointer-events: none;
}

.adt-mass-order-form {

    /* Image radio buttons */
    .adt-option-select {
        input {
            display: none; /* Hide the original input */
        }

        input:checked + label {
            background-color: #f0f7ff;
            border-color: #3182ce;
            border-width: 1px;
            box-shadow: 0 0 0 1px rgba(49, 130, 206, 0.5);
        }

        .adt-option-image {

            position: relative;

            img {
                width: 100%;
                height: 85px;
                max-width: 100px;
                max-height: 100px;
                margin: 0 auto; 
            }

            .adt-img-with-text {
                margin: 0px auto 25px auto; 
            }

            .adt-option-image-text {
                position: absolute;
                bottom: -5px;
                left: 0px;
                text-align: center;
                display: block;
                width: 100%;
                margin-top: 5px;
            }
        } 

        /* Alter the labels so we get our desired look */
        .gfield_radio {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }

        .gchoice {
            display: flex;
            flex: 1;
            box-sizing: border-box;
            padding: 0 5px;
            margin: 0 5px;
            min-width: 100px;
        }

        label {
            flex: 1;
            padding: 10px;
            background-color: #FFFFFF;
            border: 1px solid #86868b;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin: 0;
            cursor: pointer;
            transition: all 0.2s linear;
        }

        label:hover {
            background-color: #f0f0f0;
        }
    }

    /* Color radio buttons */
    .adt-option-color-select {     

        margin-bottom: 20px;
        
        input {
            display: none; /* Hide the original input */
        }

        input:checked + label {
            background-color: #f0f7ff;
            border-color: #3182ce;
            border-width: 1px;
            box-shadow: 0 0 0 5px rgba(49, 130, 206, 0.5);
        }


        .gfield_radio {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }

        .gchoice {
            display: flex;
            flex: 1;
            height: 100px;
            max-width: 100px;
        }

        label {
            position: relative;
            flex: 1;
            background-color: #FFFFFF;
            border: 1px solid #86868b;
            border-radius: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin: 0;
            cursor: pointer;
            transition: all 0.2s linear;
        }

        label:hover {
            background-color: #f0f0f0;
        }

        .adt-option-color {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50px;
        }

        .adt-option-color-text {
            position: absolute;
            left: 0;
            bottom: -30px;
            width: 100%;
        }

    }

    /* Repeater fields for names and sizes */
    .adt-sizes-repeater-container {

        margin-bottom: 50px;

        .gfield_repeater_wrapper {
            border: none;
            margin: 0;
            padding: 0 10px;

            .adt-error {
                border: 2px solid #fc4e4e !important;
            }

            /* First cell - size selection */
            .gfield_repeater_item .gfield_repeater_cell:nth-child(1) {
                background-color: #f0f0f0;
                border-radius: 15px 15px 0 0;
                border-bottom: #cfcfcf 1px dotted;
                padding: 10px;
                
                .adt-size-dropdown {
                    width: 200px;

                    select option:disabled {
                        color: #d6d6d6;
                    }
                }
            }

            /* Second cell - names repeater */
            .gfield_repeater_item .gfield_repeater_cell:nth-child(2) {
                background-color: #f0f0f0;
                padding: 10px;
                margin: 0px;
                
                /* Nested names repeater */
                .gfield_repeater_wrapper {
                    padding: 0px;
                    margin: 0px;
                    
                    .gfield_repeater_item {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: wrap;
                        justify-content: left;
                        margin: 0 0 5px 0;
                        
                        .gfield_repeater_cell {
                            width: fit-content;
                            padding: 0px;

                            .validation_message {
                                color: #c02b0a;
                                border: 1px solid #fc4e4e;
                                background-color: #fcebeb;
                                padding: 2px 0 2px 0px;
                            }
                        }

                        .gfield_repeater_buttons {
                            width: fit-content;
                            margin: 0;

                            button {
                                height: 35px;
                                margin-left: 2px;
                                margin-right: 0;
                                color: #FFFFFF;
                                font-size: 1.25em;
                                font-weight: 800;
                                background-color: #3182ce;
                                border: none;
                            }

                            button:last-child {
                                background-color: #ffa1a1;
                            }
                        }
                    }
                }

                .adt-repeater-field-name {
                    height: fit-content;
                    width: 300px;

                    .ginput_container {
                        height: fit-content;

                        input {
                            text-align: left;
                            height: 35px;
                            border: none;
                        }

                        input::placeholder{
                            color: #d6d6d6;
                        }
                    }
                }
            }

            /* Third cell - extra pieces number field */
            .gfield_repeater_item .gfield_repeater_cell:nth-child(3) {
                background-color: #f0f0f0;
                border-radius: 0 0 15px 15px;
                padding: 10px 10px 20px 10px;
                margin: 0;
                display: flex;
                align-items: center;

                .adt-extra-pieces-field {
                    width: 200px;

                    .ginput_container_number {

                        width: 100%;
                        input[type="number"] {

                            width: 100%;
                            height: 35px;
                            border: none;
                            background-color: #FFFFFF;
                            padding: 0 10px;
                            font-size: 1em;
                            color: #333;
                        }
                        input[type="number"]::placeholder {
                            color: #bdbdbd;
                        }
                    }
                }

                .adt-clothing-counter {
                    margin-left: 30px;
                    padding: 10px;
                    color: #154cc2;
                    background-color: #d1e1ff;
                    font-size: 1.0em;
                    border: 1px solid #3182ce;
                    border-radius: 5px;
                }
            }

            

            .gfield_repeater_items .gfield_repeater_item .gfield_repeater_buttons {
                width: fit-content;
                margin: 10px 0 10px 0;
    
                button {
                    height: 35px;
                    margin-left: 2px;
                    margin-right: 0;
                    color: #FFFFFF;
                    font-size: 1.0em;
                    font-weight: 600;
                    background-color: #3182ce;
                    border: none;
                }
    
                button:last-child {
                    background-color: #fc4e4e;
                }
            }

            .gfield_repeater_item::before {
                block-size: 0;
            }
        }
    }
}



