.tile{
    border: 1px solid #dadde2;
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

    .tile #removeRabatt {
        background: none;
        border: none;
        display: flex;
        align-items: center;
        width: fit-content;
        cursor: pointer;
        font-size: 1rem;
    }

    .tile #removeRabatt img {
        height: 1.2rem;
        margin-right: 5px;
    }
    

.default-button{
    display: inline-block;
}

.default-button.minor {
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-weight: 500;
    font-size: 14px;
}

.product-buttons {
    margin-top: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.product-buttons button{
    margin: 0 1.25rem;
}

.redborder-input{
    border-color: red!important;
}

.product_list{
    width: 100%;
}

.testcard-form {
    display: flex;
    flex-direction: column;
    width: 80%;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid #dadde2;
    margin: 2rem auto 5rem auto;
}

.testcard-form select, .testcard-form input {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.testcard-form div {
    margin: 0.5rem 0 0.5rem 0;
}

.product-form fieldset {
    display: flex;
    flex-direction: column;
    width: 80%;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid #dadde2;
    margin: 2rem auto 5rem auto;
}

    .product-form select, .product-form input{
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 5px;
        border: 1px solid #ccc;
    }

    .product-form div{
        margin: 0.5rem 0 0.5rem 0;
    }

    .product-textarea {
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
        max-height: 100%;
        max-width: 100%;
        padding: 0.5rem;
        height: 10rem;
        border: 1px solid #dadde2;
        width: 100% !important;
    }

.shoppingCart {
    display: flex;
    margin-top: 2rem;
    gap: 2rem;
}

.shoppingCart h1{
    margin-bottom: 2rem;
}

.shoppingCartOverview{
    width: 40%;
}

.cartList{
    width: 70%;
}

.cartItem {
    display: flex;
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid #dadde2;
    align-items: center;
}

.cartItem:last-child{
    border: none;
}

.cartItem .productImage{
    background: #f5f5f5;
    height: 100px;
    width: 150px;
}

.cartItem .productImage a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cartItem .productImage img{
    max-width: 80%;
    max-height: 80%;
}

.cartItem .productLink a{
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 18px;
}

.cartItem .cartItemDetails{
    display: flex;
    flex-direction: row;
    width: min-content;
    padding: 1rem;
    flex-grow: 1;
    justify-content: space-between;
}

.cartItem .cartItemDetails > div{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap:1rem;
}

.cartItem .cartItemDetails input {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #dadde2;
    width: 4rem;
    margin-bottom: 0.5rem;
}

.cartItem .cartItemDetails #removeProduct{
    background: none;
    border: none;
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    font-size: 1rem;
}

.cartItem .cartItemDetails #removeProduct img {
    height: 1.2rem;
    margin-right: 5px;
}

.cartItem .cartItemPrice{
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-top: 1rem;
}

.cartItem .cartItemPrice p {
    text-wrap: nowrap;    
}

.cartItem .cartItemDetails .cartItemColumn {
    align-items: flex-end;
    gap: 0;
}

.cartItem .cartItemColumn > p {
    color: #656e7b;
    margin: 0 0 1rem 0;
}

.cartDiscount{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cartDiscount input{
    margin-bottom: 0;
}

.cartDiscount .default-button {
    text-wrap: nowrap;
}

.cartActionButtons h2{
    margin-bottom: 1rem;
}

.cartTotal{
    display: flex;
    flex-direction: column;
    margin: 2rem 0;
}

.cartTotal div{
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dadde2;
}

.cartTotal div:last-child{
    border-bottom: none;
}

.cartCheckout{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem;
}

.terms-of-service {
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terms-of-service input[type=checkbox] {
    margin-right: 1rem;
}

.terms-of-service a {
    color: #1478C8;
    text-decoration: none;
}

.terms-of-service a:hover {
    text-decoration: underline;
}

#acceptedPayementMethods {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#acceptedPayementMethods img{
    height: 2rem;
}

#acceptedPayementMethods div{
    display: flex;
    align-items: center;
}

#acceptedPayementMethods #visa-logo {
    height: 1.2rem;
}

#previousPageButton{
    margin-bottom: 2rem;
}

.errorbox {
    border-radius: 2rem;
    padding: 2rem;
    background-color: #c8141e33;
    color: #c8141e;
    border: 1px solid #c8141e;
    scroll-behavior: smooth;
}

.alertbox {
    border-radius: 2rem;
    padding: 2rem;
    background-color: #EB4B3233;
    color: #EB4B32;
    border: 1px solid #EB4B32;
    scroll-behavior: smooth;
    text-align: center;
}

.a-trust-comment {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

    .a-trust-comment input {
        width: fit-content;
    }

    .a-trust-comment textarea, #activatedChipDetails {
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        border: 1px solid #dadde2;
        border-radius: 0.5rem;
        width: 50%;
    }

#toast {
    width: 33.33%;
    margin-left: -16.66%;
    background-color: #fff;
    box-shadow: rgba(0,0,0,0.4) 0 0 20px;
    color: #000;
    text-align: center;
    border-radius: 2rem;
    padding: 16px;
    position: fixed;
    z-index: -1;
    left: 50%;
    bottom: 0;
    opacity: 0;
}


   #toast.error {
        background-color: #C8141E;
        color: #fff;
    }

    #toast.success {
        background-color: #21832A;
        color: #fff;
    }

    #toast.show {
        z-index: 1000;
        animation: fade ease-in-out 3s;
    }


@keyframes fade {
    0% {
        z-index: 1;
        bottom: 0;
        opacity: 0;
    }

    10% {
        bottom: 5rem;
        opacity: 1;
    }

    90% {
        bottom: 5rem;
        opacity: 1;
    }

    100% {
        z-index: 0;
        bottom: 0;
        opacity: 0;
    }
}


@media all and (max-width: 1000px) {
    .shoppingCart {
        flex-direction: column;
    }

    .cartList, .shoppingCartOverview {
        width: 100%;
    }

    #acceptedPayementMethods div {
        flex-direction: column;
    }
    .product-form{
        width: 100%;
    }
}
