@use "../../../../styles/abstracts/variables" as *; 

.receipt {
    border-radius: 6px;
    background: $col-white;
    border: 1px solid $col-border-lining;
    // width: 100%;
    // max-width: 800px; // Keeps it narrow enough on all screens
    // margin: 2rem auto; // Center horizontally
    margin-top: 1rem;

    @media only screen and (max-width: 1000px){
        padding: 2rem 0rem; // Reduce padding for small screens
        margin: 1rem 0;
        border: none;
    }

    p, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        max-width: 100% !important; // prevents overflow
      }
    
    p{
        color: $col-secondary !important;
    }

    &__header {
        padding-bottom: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-bottom: 1px solid $col-border-lining;
        padding-top: 1rem 2rem;

        h1{
            font-weight: 600;
            color: $col-secondary;
            font-size: 1rem;
        }

        P{
            font-weight: 500;
            opacity: .85;
        }
    }

    &__amount {
        @extend .receipt__header; 
        padding-top: 1rem;
        border-bottom: none;
        margin-top: 1rem;
        h1{
            font-size: 1.1rem;
        }
        p{
            font-size: 1.02rem;
            font-weight: 600;
        }
    }


    &__content {
        border: 1px solid $col-border-lining;
        border-radius: 6px;
        padding: 1.5rem;
        margin-top: 1rem;
        @media only screen and (max-width: 1000px){
            padding: 1rem 1rem;
            border-top-left-radius: 0 !important;
            border-top-right-radius: 0 !important;
        }

        p{
            font-weight: 500;
            opacity: .8;
            font-size: .8rem;
            padding-top: 1rem;
            line-height: 1.7;
        }

        &--item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid $col-border-lining;
            line-height: 3.3;
            @media only screen and (max-width: 1000px){
                flex-direction: row;
                align-items: flex-start;
                line-height: 2.2;
                margin-bottom: .7rem;
                padding-bottom: .4rem;

                h6{
                    font-weight: 600 !important;
                }
            }

            h6{
                color: $col-secondary;
                font-size: .82rem;
                font-weight: 500;
            }

            p{
                color: $col-secondary;
                font-size: .82rem;
                font-weight: 500;
                opacity: 1;
                padding-top: 0 !important;
            }
        }

        &--buttons {
            padding-top: 2rem;
            display: flex;
            gap: 15px;
            @media only screen and (max-width: 1000px){
                flex-direction: column;
                padding-top: 1.5rem;
            }

            &--download {
                background: $col-primary-btn;
                padding: .8rem 1rem;
                border-radius: 6px;
                color: $col-white;
                font-size: .8rem;
                font-weight: 500;
                width: 50%;
                span {
                    display: flex;
                    align-items: center !important;
                    justify-content: center;
                   }
                @media only screen and (max-width: 1000px){
                    width: 100%;
                    padding: 1rem 2rem;
                }
            }

            &--back{
                background: transparent;
                border: 2px solid $col-primary-btn;
                color: $col-primary-btn !important;
                padding: .8rem 1rem;
                border-radius: 6px;
                color: $col-white;
                font-size: .8rem;
                font-weight: 600;
                width: 50%;
               span {
                display: flex;
                align-items: center !important;
                justify-content: center;
               }
                @media only screen and (max-width: 1000px){
                    width: 100%;
                    padding: 1rem 1rem;
                }
            }
        }
    }
}


.force-desktop {
    width: 500px !important;
    padding: 2rem !important;
    font-size: 14px !important;
    background: red !important;
    margin: 0 auto !important;
  }