/* Basic reset and layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Erply Ladna";
}


.icon-Cart-Trolley {
    font-size: 1.2rem;
    line-height: 1;
    color: white;
}

.icon-Arrow-Left-Circle-Filled:before {
    content: "\e90b";
}

.icon-Arrow-Left-Circle:before {
    content: "\e90c";
}

.icon-Arrow-Left:before {
    content: "\e90d";
}

.icon-Arrow-Left {
    font-size: 1.2rem;
    line-height: 1;
    color: grey;
}

[class^="icon-"],
[class*=" icon-"] {
    /* Added this class for easier class management for icons - AS */
    font-family: 'erply-iconfont' !important;
    font-style: normal;
    line-height: 0;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
}

/* Cart Button Container */
.cart-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Cart Button */
.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.cart-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: #edebeb;
}



.cart-link .icon-Cart-Trolley {
    color: #333;
    background-color: #333;
    font-weight: 700;
}

/* Default Button Styles */
.back-button-container {
    display: flex;
    justify-content: flex-start;
    margin: 2rem 1rem;
}

.btn-go-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f4f4f4;
    color: #333;
    border: none;
    border-radius: 6px;
    /* Rounded edges for better design */
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    padding: 1rem 1.5rem;
    /* Increased padding for touch-friendly buttons */
    transition: all 0.2s ease-in-out;
}

.btn-go-back:hover {
    background-color: #e2e2e2;
    border-color: #bbb;
    color: #000;
}

.btn-go-back i {
    font-size: 2rem;
    color: #666;
}



/* Disabled button styling */
#button-place-order:disabled {
    background-color: #cccccc;
    /* Light grey */
    color: #666666;
    /* Darker grey */
    cursor: not-allowed;
    opacity: 0.6;
}

/* Optional: Add a tooltip effect on hover when disabled */
#button-place-order:disabled::after {
    content: "Lisa vähemalt 20 Vastlakuklit!";
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

#button-place-order:disabled:hover::after {
    display: block;
}



/*alert*/

.alert__close {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    cursor: pointer;
    position: absolute;
    left: 40%;
    bottom: 5%;
}

.alert__title {
    padding: 1rem 0.75rem;
}

@media (max-width: 768px) {
    .alert__close {
        position: absolute;
        left: auto;
        top: auto;
        width: 100%;
        text-align: center;
    }



    .alert__cancel-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .alert {
        max-width: 90vw;
        word-wrap: break-word;
        padding: 10px;
    }
}

.alert__cancel-btn {

    background-color: white;
    color: #555;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.alert__cancel-btn:hover {
    background-color: #edd7d7;
}

.alert--no-collapse {
    display: flex;
    max-width: 400px;
    max-height: 100%;
    height: 220px;
}

.alert__message {
    margin: 0 !important;
}

.alert:hover .alert__close {
    display: flex;
}

@media (max-width: 430px) {

    .btn-go-back {
        font-size: 16px;
        padding: 1.2rem;
    }

    .btn-go-back i {
        font-size: 2.2rem;
    }
}










/**/


/* Fonts */
@font-face {
    font-family: 'Erply Ladna';
    font-weight: 400;
    src: url(https://assets.erply.com/global/fonts/erply-ladna/WOFF/ErplyLadna-Regular.woff) format("woff");
}

@font-face {
    font-family: 'Erply Ladna';
    font-weight: 500;
    src: url(https://assets.erply.com/global/fonts/erply-ladna/WOFF/ErplyLadna-Medium.woff) format("woff");
}

@font-face {
    font-family: 'Erply Ladna';
    font-weight: 600;
    src: url(https://assets.erply.com/global/fonts/erply-ladna/WOFF/ErplyLadna-SemiBold.woff) format("woff");
}

@font-face {
    font-family: 'Erply Ladna';
    font-weight: 700;
    src: url(https://assets.erply.com/global/fonts/erply-ladna/WOFF/ErplyLadna-Bold.woff) format("woff");
}

@font-face {
    font-family: 'erply-iconfont';
    src: url('https://assets.erply.com/global/fonts/erply-iconfont/erply-iconfont.eot?bm9age');
    src: url('https://assets.erply.com/global/fonts/erply-iconfont/erply-iconfont.eot?bm9age#iefix') format('embedded-opentype'),
        url('https://assets.erply.com/global/fonts/erply-iconfont/erply-iconfont.woff2?bm9age') format('woff2'),
        url('https://assets.erply.com/global/fonts/erply-iconfont/erply-iconfont.ttf?bm9age') format('truetype'),
        url('https://assets.erply.com/global/fonts/erply-iconfont/erply-iconfont.woff?bm9age') format('woff'),
        url('https://assets.erply.com/global/fonts/erply-iconfont/erply-iconfont.svg?bm9age#erply-iconfont') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}