/* =========================================================
   Footer controls
   Lagom-style language drop-up + back to top
   ========================================================= */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, .10);
}

.footer-copyright {
    color: var(--color-text-faded);
}


/* ---------------------------------------------------------
   Controls container
   --------------------------------------------------------- */

.footer-controls {
    display: flex;
    align-items: stretch;
    gap: 8px;
}


/* ---------------------------------------------------------
   Language selector
   --------------------------------------------------------- */

.footer-language {
    position: relative;
}

.footer-language-trigger {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 42px;
    padding: 8px 12px;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: rgba(255, 255, 255, .78);

    font: inherit;
    font-size: 15px;

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease;
}

.footer-language-trigger:hover,
.footer-language-trigger[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.footer-language-trigger img {
    display: block;

    width: 22px;
    height: 16px;

    object-fit: cover;
}


/* Chevron points upwards */

.footer-language-chevron {
    display: block;

    width: 7px;
    height: 7px;

    margin-left: 2px;

    border-top: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;

    transform: rotate(45deg) translateY(2px);

    transition: transform .18s ease;
}

.footer-language-trigger[aria-expanded="true"]
.footer-language-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}


/* ---------------------------------------------------------
   Drop-up menu
   --------------------------------------------------------- */

.footer-language-menu {
    position: absolute;

    right: 0;
    bottom: calc(100% + 10px);

    z-index: 1000;

    width: 270px;

    padding: 8px;

    border: 1px solid rgba(141, 186, 255, .22);
    border-radius: 8px;

    background:
        linear-gradient(
            180deg,
            rgba(41, 82, 163, .98) 0%,
            rgba(18, 59, 132, .99) 100%
        );

    box-shadow:
        0 20px 50px rgba(0, 15, 65, .45);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity .16s ease,
        visibility .16s ease,
        transform .16s ease;
}

.footer-language.is-open
.footer-language-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* ---------------------------------------------------------
   Search
   --------------------------------------------------------- */

.footer-language-search {
    position: relative;
    margin-bottom: 6px;
}

.footer-language-search input {
    display: block;

    width: 100%;
    height: 42px;

    padding:
        0 12px
        0 39px;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 6px;

    outline: none;

    background: rgba(255, 255, 255, .08);
    color: #fff;

    font: inherit;
    font-size: 14px;
}

.footer-language-search input::placeholder {
    color: rgba(255, 255, 255, .58);
}

.footer-language-search input:focus {
    border-color: rgba(53, 180, 255, .65);
    background: rgba(255, 255, 255, .11);
}

.footer-language-search-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    width: 14px;
    height: 14px;

    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;

    transform: translateY(-55%);
}

.footer-language-search-icon::after {
    content: "";

    position: absolute;

    width: 6px;
    height: 2px;

    right: -5px;
    bottom: -2px;

    border-radius: 2px;

    background: rgba(255, 255, 255, .55);

    transform: rotate(45deg);
}


/* ---------------------------------------------------------
   Language options
   --------------------------------------------------------- */

.footer-language-list {
    display: flex;
    flex-direction: column;
    gap: 2px;

    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden;
    
   padding-right: 5px;
}

.footer-language-option {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 40px;
    padding: 7px 10px;

    border-radius: 5px;

    color: rgba(255, 255, 255, .82);

    text-decoration: none;
    font-size: 14px;

    transition:
        color .15s ease,
        background .15s ease,
	transform .18s ease;
}

.footer-language-option:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    transform: translateX(4px);
}

.footer-language-option.is-active {
    color: #fff;
    background: rgba(25, 165, 255, .12);
}

.footer-language-option img {
    flex: 0 0 22px;

    display: block;

    width: 22px;
    height: 16px;

    object-fit: cover;
}

.footer-language-option > span:nth-child(2) {
    flex: 1;
}

.footer-language-check {
    margin-left: auto;

    color: #35c8ff;

    font-weight: 700;
}


/* ---------------------------------------------------------
   Back to top
   --------------------------------------------------------- */

.footer-back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: rgba(255, 255, 255, .72);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.footer-back-to-top:hover {
    color: #fff;

    background: rgba(255, 255, 255, .06);

    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .footer-bottom {
        align-items: flex-end;
        flex-direction: column;

        gap: 18px;
    }

    .footer-copyright {
        align-self: flex-start;
    }

    .footer-controls {
        align-self: stretch;
        justify-content: flex-end;
    }

    .footer-language-menu {
        right: 0;

        width: min(
            280px,
            calc(100vw - 40px)
        );
    }

}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .footer-language-menu,
    .footer-language-chevron,
    .footer-back-to-top {
        transition: none;
    }

}
/* =========================================================
   Footer brand description
   ========================================================= */

.footer-brand-description {
    max-width: 420px;
    margin: 18px 0 0;

    color: rgba(255, 255, 255, .66);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   Footer payment methods
   ========================================================= */

.footer-payment-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 2px 5px;

    max-width: 430px;
    margin-top: 22px;
}


/* Base logo treatment */

.footer-payment-methods img {
    display: block;

    width: auto;
    height: 25px;

    max-width: 64px;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    object-fit: contain;

    opacity: .92;

    transition:
        opacity .16s ease,
        transform .16s ease;
}

.footer-payment-methods img:hover {
    opacity: 1;
    transform: translateY(-1px);
}


/* Individual visual balancing */

.footer-payment-methods img[alt="Visa"] {
    width: 38px;
    height: auto;
}

.footer-payment-methods img[alt="Mastercard"] {
    width: 38px;
    height: auto;
}

.footer-payment-methods img[alt="Maestro"] {
    width: 42px;
    height: auto;
}

.footer-payment-methods img[alt="American Express"] {
    width: 40px;
    height: auto;
}

.footer-payment-methods img[alt="PayPal"] {
    width: 52px;
    height: auto;
}

.footer-payment-methods img[alt="Apple Pay"] {
    width: 52px;
    height: auto;
}

.footer-payment-methods img[alt="Google Pay"] {
    width: 60px;
    max-width: 60px;
    height: auto;
}

.footer-payment-methods img[alt="Τραπεζική Μεταφορά"],
.footer-payment-methods img[alt="Bank Transfer"] {
    width: 44px;
    nax-width: 44px;
    height: auto;
}

.footer-payment-methods img[alt="Viva.com"] {
    width: 62px;
    height: auto;
}


/* Temporary IRIS text until proper logo is added */

.footer-payment-placeholder {
    display: flex;
    align-items: center;

    min-width: 0;
    height: auto;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    color: rgba(255, 255, 255, .92);

    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;

    transition:
        opacity .16s ease,
        transform .16s ease;
}

.footer-payment-placeholder:hover {
    opacity: 1;
    transform: translateY(-1px);
}


/* Mobile */

@media (max-width: 640px) {

    .footer-payment-methods {
        max-width: 100%;
        gap: 2px 5px;
    }

}
