/*
Theme Name: Soutalerambcom
Version: 1.0.6
Text Domain: soutalerambcom
Domain Path: /languages
Description: The soutaleramb.com Laravel design converted to WordPress, on the CRM/Webshop theme conventions.
*/

/* --- from layouts/styles.blade.php --- */

    .form-action-wrapper {
        text-align: center;
        margin-top: 25px;
        display: flex;
        flex-direction: row;
        justify-content: stretch;
    }

    .form-actions .button {
        flex: auto;
        display: inline-block;
        margin-left: 5px;
        margin-right: 5px;
        background-color: var(--color-primary);
        --animate-duration: 1s;
        --animate-repeat: 1;
        --animate-delay: 0.5s;
        transition: all .2s ease-in-out;
        padding: 14px 20px;
        font-size: 16px;
        line-height: 1.5rem;
        letter-spacing: normal;
        font-weight: inherit;
        }

        :root {
            --color-brand: 40 99 235;
            --color-brand-light: 110 150 242;
            --color-brand-dark: 17 67 182;
        }

   .lang-select {
        position: relative;
        display: inline-block;
    }

    .language-tgl {
        background: transparent;
        border: none;
        font-size: 18px;
        cursor: pointer;
        padding: 10px 15px;
    }

    .dropdown-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-bottom: 20px;
        border-bottom: 1px solid #A8A8A8;
    }

    .title {
        font-size: 28px;
        font-style: normal;
        font-weight: 600;
        line-height: 28px;
        color: #111;
    }

    .language-down {
        position: absolute;
        top: 100%;
        right: 0;
        width: 400px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 40px 20px;
        z-index: 10000000000000;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .language-down.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .language-down::before {
        content: '';
        position: absolute;
        top: -10px;
        right: 20px;
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent white transparent;
    }

    .cls-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        border-radius: 4px;
        border: 0.5px solid #A8A8A8;
        background: #FFF;
        cursor: pointer;
        font-size: 14px;
        margin-bottom: 10px;
        margin-top: 20px;
    }

    .slt-language-txt {
        color: #111;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .language-list {
        max-height: 200px;
        overflow-y: auto;
        list-style: none;
        margin: 0 !important;
        padding: 0 !important;
        display: none;
    }

    .language-list.show {
        display: block;
    }

    .language-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 10px;
        font-size: 16px;
        cursor: pointer;
        text-decoration: none;
        color: #000;
        transition: background 0.2s ease-in-out;
    }

    .language-btn:hover,
    .language-btn.language-active {
        border-radius: 6px;
        background: #F1F1F1;
    }

    .language-active::after {
        content: '✔';
        color: green;
        font-size: 14px;
        margin-left: auto;
        padding-left: 8px;
    }

    .language-cls {
        background: transparent;
        border: none;
        font-size: 18px;
        color: #000;
        cursor: pointer;
    }

    .lang-confirm {
        width: 100%;
        color: white;
        padding: 10px 20px;
        margin-top: 12px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        border-radius: 10px;
        border: 0.5px solid #897FFF;
        background: linear-gradient(180deg, #897FFF 0%, #4A3AFF 100%);
        box-shadow: 0 2px 3px 0 rgba(55, 52, 209, 0.21), 0 -2px 2px 0 rgba(80, 70, 189, 0.60) inset, 0 1px 1px 0 rgba(255, 255, 255, 0.35) inset, 0 3px 4px 0 rgba(223, 229, 255, 0.30) inset;
        transition: all 0.4s ease;
    }

    .lang-confirm:active {
        transform: scale(0.97);
    }

    @media screen and (max-width: 564px) {
        .language-down {
            padding: 20px 16px;
            width: 300px;
        }
        .title {
            font-size: 20px;
        }
        .dropdown-top {
            padding-bottom: 16px;
        }
    }



/* --- from layouts/cookie.blade.php (style title="Cookie Modal") --- */

        #cookie-modal {
            max-width: 640px;
            width: 100%;
            border-radius: 10px;
            background: #F2F1EE;
            padding: 30px;
            z-index: 10000000000;
            position: fixed;
            top: 50%;
            left: 50%;
            height: fit-content;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 1s ease, opacity 0.6s ease;
            opacity: 0;
            backface-visibility: hidden;
            transform-style: preserve-3d;
            overflow: hidden;
        }

        #cookie-modal::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-radius: inherit;
            /* soft gradient that mimics the fold/edge */
            background: linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .12) 6%, rgba(255, 255, 255, .06) 10%, rgba(0, 0, 0, 0) 22%);
            opacity: 0;
            transform: translateZ(1px);
            /* sits slightly above content for a crisp edge */
        }

        /* Trigger: page turn IN (open from left like a book) */

        #cookie-modal.show-cookie {
            animation: pageTurnIn 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        #cookie-modal.show-cookie::before {
            animation: pageShadeIn 2s ease forwards;
        }

        /* Trigger: page turn OUT (close to right like flipping over) */

        #cookie-modal.hide-cookie {
            animation: pageTurnOut 2s cubic-bezier(0.55, 0.05, 0.55, 0.95) forwards;
        }

        #cookie-modal.hide-cookie::before {
            animation: pageShadeOut 2s ease forwards;
        }

        /* === Keyframes (keep your translate(-50%,-50%) centering) === */

        @keyframes pageTurnIn {
            0% {
                transform-origin: 0 50%;
                /* left spine */
                transform: translate(-50%, -50%) perspective(1400px) rotateY(-92deg);
                opacity: 0;
                filter: blur(6px);
            }
            55% {
                transform-origin: 0 50%;
                transform: translate(-50%, -50%) perspective(1400px) rotateY(12deg);
                opacity: 1;
                filter: blur(0.5px);
            }
            100% {
                transform-origin: 0 50%;
                transform: translate(-50%, -50%) perspective(1400px) rotateY(0deg);
                opacity: 1;
                filter: blur(0);
            }
        }

        @keyframes pageTurnOut {
            0% {
                transform-origin: 100% 50%;
                /* right spine */
                transform: translate(-50%, -50%) perspective(1400px) rotateY(0deg);
                opacity: 1;
                filter: blur(0);
            }
            35% {
                transform-origin: 100% 50%;
                transform: translate(-50%, -50%) perspective(1400px) rotateY(-10deg);
                opacity: .92;
            }
            100% {
                transform-origin: 100% 50%;
                transform: translate(-50%, -50%) perspective(1400px) rotateY(92deg);
                opacity: 0;
                filter: blur(6px);
            }
        }

        /* Page-edge shadow animations */

        @keyframes pageShadeIn {
            0% {
                opacity: .35;
                background-position: left;
            }
            60% {
                opacity: .18;
            }
            100% {
                opacity: 0;
            }
        }

        @keyframes pageShadeOut {
            0% {
                opacity: 0;
            }
            30% {
                opacity: .18;
            }
            100% {
                opacity: .35;
            }
        }

        #cookie-modal .modal-close {
            display: flex;
            width: 34px;
            height: 34px;
            padding: 7px;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
            border: none;
            background: none;
            position: absolute;
            top: 12px;
            right: 12px;
            cursor: pointer;
            display: none;
        }

        #cookie-modal .modal-close svg path {
            stroke: white;
        }

        /* Content section */

        #cookie-modal .content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        #cookie-modal .icon-text-wrapper {
            width: 100%;
            display: flex;
            align-items: flex-start;
            gap: 16px;
        }

        #cookie-modal .content .icon {
            display: flex;
            max-width: 46px;
            width: 100%;
            height: auto;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        #cookie-modal .content .icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        #cookie-modal .content .cookie-title {
            font-size: 24px;
            font-weight: 600;
            line-height: 30px;
            color: #000;
        }

        #cookie-modal .content .cookie-desc {
            width: 100%;
            color: #414141;
            font-size: 14px;
            font-weight: 400;
            line-height: 150%;
        }

        #cookie-modal .content .cookie-desc a {
            color: #414141;
            text-decoration: underline;
            font-weight: 700;
        }

        .terms-text-wrapper {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 6px;
            display: none;
        }

        .terms-text-wrapper .check-icon {
            width: 18px;
            height: 18px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .terms-text-wrapper .terms-text {
            color: #414141;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: 115%;
        }

        #cookie-modal .action-wrapper {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
        }

        #cookie-modal .action-wrapper .cookie-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 5px;
            padding: 5px 20px !important;
            gap: 20px;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            width: fit-content;
        }

        #cookie-modal .action-wrapper .cookie-btn:active {
            transform: scale(0.97);
        }

        #cookie-modal .action-wrapper .cookie-btn:hover {
            transform: scale(0.97);
        }

        #cookie-modal .action-wrapper .cookie-btn img {
            flex-shrink: 0;
        }

        #decline-cookie {
            border: none;
            background: #fff;
            color: #000;
        }

        #cookie-button {
            background: #FF510E !important;
            color: #fff;
            border: none;
        }

        #cookie-button:hover img {
            transform: rotate(50deg);
        }

        @media screen and (max-width: 1024px) {
            #cookie-modal {
                width: 95%;
            }
            #cookie-modal .content {
                text-align: left;
            }
        }

        @media screen and (max-width: 540px) {
            #cookie-modal {
                max-width: 100%;
            }
            #cookie-modal .action-wrapper {
                flex-wrap: wrap;
            }
            #cookie-modal .action-wrapper .cookie-btn {
                width: 100%;
            }
            .icon-text-wrapper {
                flex-direction: column;
                align-items: center !important;
                text-align: center;
            }
            .cookie-desc {
                text-align: center;
            }
        }
    

/* --- WordPress-side containers --- */
.content-section {
    width: 100%;
}

.content-section input:not([type=checkbox]):not([type=radio]),
.content-section select,
.content-section textarea,
.form-login-wrapper input:not([type=checkbox]):not([type=radio]) {
    box-sizing: border-box;
    width: 100%;
}

.cheeseburger-menu.open {
    display: block;
    visibility: visible;
    opacity: 1;
}
