@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --color-primary: #f43c48;
    --color-secondary: #f67033;
    --color-light: #cccccc;
    --color-dark: #404040;
}

html, body {
    font-family: Calibri, Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-red {
    color: #fff;
    background-color: var(--color-primary);
    border: 0;
    border-color: var(--color-light);
}

.btn-orange {
    color: #fff;
    background-color: var(--color-secondary);
    border: 0;
    border-color: var(--color-light);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-cancel {
    color: #fff;
    background-color: #d45555;
    border-color: #b64b4b;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.breadcrumb {
    color: white;
    background-color: white;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}


.drag-drop-zone {
    border: 3px dashed #e68710;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: #aeaeae;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 1.5rem 0 2rem 0;
    position: relative;
}

    .drag-drop-zone:hover {
        background-color: #f5f5f5;
    }

    .drag-drop-zone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }


.aggregation-list .list-entry {
    list-style: none;
}

.aggregation-list .entry-label {
    width: 70%;
}

.aggregation-list .entry-value {
    width: 30%;
    text-align: right;
}

/*ProductConfigurationDialog*/

.dialog-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    animation: dialog-container-entry 0.2s;
}

@keyframes dialog-container-entry {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.dialog {
    background-color: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    align-self: center;
    margin: auto;
    width: 700px;
    max-height: calc(100% - 3rem);
    animation: dialog-entry 0.4s;
    animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
}

@keyframes dialog-entry {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateX(0px) scale(1.0);
    }
}

.dialog-title {
    background-color: white;
    padding: 1.3rem 2rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #ccc
}

    .dialog-title h2 {
        color: white;
        font-size: 1.4rem;
        margin: 0;
        font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        line-height: 1.3rem;
    }

/* Sidebar*/

.cart-sidebar {
    background-color: #2b2b2b;
    width: 20rem;
    display: flex;
    flex-direction: column;
    color: white;
}

.cart-order-contents {
    overflow-y: auto;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex-grow: 1;
}

    .cart-order-contents h2 {
        color: #fff2cc;
        font-size: 1.3rem;
        font-weight: 300;
        margin-bottom: 1rem;
        font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
        text-transform: uppercase;
    }

.cart-order-total {
    background-color: rgb(191, 52, 52);
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0 1.5rem;
}

    .cart-order-total.hidden {
        transform: translate3d(0, 4rem, 0);
    }

    .cart-order-total .total-price {
        font-weight: 700;
        font-size: 1.5rem;
    }

        .cart-order-total .total-price::before {
            content: '£';
            font-weight: 300;
            margin: 0 0.1rem 0 0.4rem;
        }

    .cart-order-total .btn {
        margin-left: auto;
        font-weight: 700;
        border-radius: 20px;
        padding: 0.4rem 1.2rem;
    }

.cart-checkout-button {
    margin: auto;
    display: block;
    font-weight: 700;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
}

.cart-item {
    background-color: #333333;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 100;
    margin-top: 1rem;
    position: relative;
}

    .cart-item .title {
        font-weight: 700;
    }

    .cart-item ul {
        padding: 0;
        margin: 0.4rem 0.6rem;
    }

    .cart-item li {
        list-style-type: none;
        margin-left: 0rem;
        font-size: 0.8rem;
    }

.empty-cart {
    text-align: center;
    margin: auto;
    font-size: 1.5rem;
    font-weight: 100;
    color: #676767;
}

.cart-item-price {
    font-weight: 500;
}

    .cart-item-price::before {
        content: '£';
        font-weight: 100;
        margin-right: 0.3rem;
    }

.cart-delete-item {
    position: absolute;
    top: 0;
    right: 0;
    content: 'X';
    cursor: pointer;
    color: #fff2cc;
    width: 2rem;
    height: 2rem;
    text-align: center;
}

    .cart-delete-item:hover {
        text-decoration: none;
        color: #fff2cc;
        background-color: rgba(255,255,255,0.1);
    }


.sidenav-wrapper {
    overflow: hidden;
}

.sidenav {
    background-color: white;
    float: left;
    margin-right: 20px;
    width: auto;
    border: 1px solid #ccc;
}

.sidenav-content {
    background-color: white;
    overflow: hidden;
    margin-left: 10px;
    margin-right: 10px;
}

@media screen and (max-width: 400px) {
    .sidenav {
        float: none;
        margin-right: 0;
        width: auto;
        border: 0;
        border-bottom: 1px solid #ccc;
    }

    .sidenav-content {
        margin-top: 10px;
    }
}


.radio-row {
    margin-bottom: .5rem;
    padding: .7rem;
    border-bottom: 1px solid #ccc;
}

.radio-button-panel {
    float: right;
    padding-right: .2rem;
    padding-bottom: .2rem;
}

.payment-no-content {
    clear: both;
    text-align: center;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
}

.payment-loading {
    clear: both;
    text-align: center;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.payment-buttonbar {
    float: right;
    padding: .5rem;
}

.product-box {
    padding-bottom: 1rem;
    overflow: hidden;
}

.product-image {
    margin-right: 1rem;
    width: 25%;
    float: left;
    height: auto;
}

    .product-image img {
        max-width: 100%;
        max-height: 100%;
        height: auto;
    }

.product-information {
    overflow: hidden;
}

.product-title {
    /*height:2.5rem;*/
}

    .product-title p {
        font-size: 1.3rem !important;
        font-weight: 700;
    }

.product-description {
    height: 4.5rem;
}

.product-description-dialog {
    height: 7.5rem;
}

.product-pricing {
}

    .product-pricing .price {
        font-size: 18px;
        font-size: 1.125rem;
        line-height: 20px;
        line-height: 1.25rem;
        display: inline-block;
        color: #3f4c58;
        font-weight: 700;
    }

.product-action {
}

.product-price-selection {
    padding-top: .5rem;
    display: flex;
    display: flow-root;
}

.error-dialog {
}

.error-header {
    padding: 0.3rem 0;
    padding-top: 0.3rem;
    padding-right: 0px;
    padding-bottom: 0.3rem;
    padding-left: 0px;
    font-size: 1.4rem;
    justify-content: right;
    display: flex;
    align-items: center;
    background-color: #e8544f;
}

.error-text {
    color: #e8544f;
    font-weight: bold;
}

.successful-text {
    color: #34b52f;
    font-weight: bold;
}

.modal-footer {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    border-top: 1px solid #ccc;
    background-color:white;
}

.text-muted {
    color: #6c757d !important;
}

.footer-text {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
}

.footer-spacing {
    padding-bottom: 75px;
}

.data-row-text{
    margin-bottom:unset;
}

.checkout-payment-wrapper {
    overflow: hidden;
}

.checkout-payment-content {
    display: inline-block;
}

.checkout-payment-button {
    float: right;
    margin-top: 1rem;
}


.subscription-action{
    display:inline-grid
}

.subscription-action button{
    width:100%;
    margin-top:.5rem;
    margin-bottom:.5rem;
}