:root {
    --neutralLight: #fff;
    --neutralMid: #ddd;
    --neutralDark: #000;
    --mainDark: #f15f24;
    --mainMid: #259891;
    --mainLight: #FEEDEA;
    --mainPale: #FFF5F4;
    --comp: #86447D;
}
/*THE FOLLOWING TWO RULES ARE SO THAT YOU DON'T SEE THE HOME PAGE CONTENT ON THE ORDER CONFIRMATION PAGE*/
.order-backdrop~main {
    display: none;
}
.order-backdrop~.titleVideo {
    display: none;
}
.order-backdrop {
    margin-bottom: 5rem;
}
.storeadmin-card * {
    font-size: 1rem;
}
.storeadmin-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:10px;
}
.storeadmin-grid:has(.overlay:target) { /*WITHOUT THIS, THE OVERLAY DOESN'T SIZE TO 100VW*/
    display: block;
}
.storeadmin-grid a {
    text-decoration: none;
    color: inherit;
}
.storeadmin-card {
    border: 1px solid #ddd;
    margin: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto 1fr 1fr auto auto auto;
}
.price::before {
    content: "$";
}

.storeadmin-card img {
    max-width: 100%;
}
.medium::before {
    content: "Medium/Material: ";
    font-weight: bold;
}
.size::before {
    content: "Size: ";
    font-weight: bold;
}
#shop .details::before {
    content: "Details: ";
    font-weight: bold;
}
.shipping::before {
    content: "Shipping: ";
    font-weight: bold;
}
.basket-toggle{
    position: fixed;
    top: 7rem;
    right: 1rem;
    padding: 0;
    width: 160px;
    height: 50px;
    border-radius: 5px;
    border:none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--mainDark);
    box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    cursor: pointer;
}

.basket-toggle p{
    color: var(--neutralLight) !important;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px;
}

.basket-toggle svg{
    margin: 0 !important;
}

.basket {
    border: 1px solid #ccc;
    padding: 16px;
    box-sizing: border-box;
    /*min-width: 350px;*/
    height: 80vh;
    position: fixed;
    right: 0;
    top: 6rem;
    background-color: #fff;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    z-index: 2;
    overflow: scroll;
}

.basket-hide{
    transition: all 250ms linear;
    transform: translate(1350px,0);
}


.basket h3 {
    margin-top: 0;
}

.basket ul {
    list-style: none;
    padding: 0;
}

.basket li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.basket .item-controls {
    display: flex;
    align-items: center;
}

.basket .item-controls button {
    margin: 0 4px;
}

.basket .item-controls input {
    width: 40px;
    text-align: center;
}

.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 60rem;
    max-width: 90%;
    height: 100%;
    overscroll-behavior-y: contain; /*PREVENT THE BACKGROUND FROM SCROLLING WHEN THE DIALOG BOX IS OPEN*/
    overflow-y: auto;
}

.dialog-content input:not([type="submit"]){
 padding: 4px !important; 
 margin: 0;  
}

.dialog-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color:#fff !important; 
}

#dialog-form{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:10px;
    height: 90%;
    margin-bottom: 4rem;
    /*overflow: scroll;*/
}

#dialog-form label{
    grid-column: 1/2;
}

#dialog-form input{
    grid-column: 2/6;
    padding: 10px !important;
}

#dialog-form textarea{
    grid-column: 2/6;
    height: 120px !important;
}
.buttons {
    display: flex;
}
.add-to-basket{
    background-color: var(--mainMid);
    width: 100%;
    padding: 10px;
    margin: 5px auto;
    border:none;
    color:#fff;
    cursor: pointer;
    margin-right: .25rem;
}

.buy-now{
    background-color: var(--mainMid);
    width: 100%;
    padding: 10px;
    margin: 5px auto;
    border:none;
    color:#fff;
    cursor: pointer;
    margin-left: .25rem;
}

.storeadmin-card-image{
    width: 100%;
    /*height: 150px;*/
    /*overflow: hidden;*/
    padding: 0;
    margin: 0;
}

.storeadmin-card-image img{
    width: 100%;
    /*height: 100%;*/
    /*object-fit: cover;*/
    /*object-position: center;*/
    border:none;
}

.storeadmin-card-title{
    font-weight: bold;
    margin: 1rem 0;
    padding: 0;
}

#checkout {
    background: var(--mainDark);
    color: #fff;
    border: none;
    padding: 1rem 0;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .5);
}

#basket-total{
    font-size: 1.5rem;
}

.basket-title{
    font-size: 1.2rem;
}

.increase-quantity,.decrease-quantity{
    background: #fff;
    border:solid #ddd 1px !important;
}
#dialog-form .emphasis {
    grid-column: 1/6;
}
.paymentButtonContainer {
    grid-column: 1 / 6;
    display: flex;
    justify-content: space-evenly;
}
.paymentButtonContainer input {
}
.btn-paypal{
    border-radius: 5px;
    padding: 15px;
    box-sizing: border-box;
   background:	#00457C;
   color:#fff;
   border:none !important;
   cursor: pointer;
    grid-column: 1/2 !important;
 
}


.btn-stripe{
    border-radius: 5px;
    padding: 15px;
    box-sizing: border-box;
   background:	#04613a;
   color:#fff;
   border:none !important;
   cursor: pointer;
    grid-column: 2/3 !important;
}

.btn-traditional{
    border-radius: 5px;
    padding: 15px;
    box-sizing: border-box;
   background:	#00457C;
   color:#fff;
   border:none !important;
   cursor: pointer;
    grid-column: 3/4 !important;
}

#dialog-title{
    font-size:1.2rem !important;
    font-weight: bold !important;
}
.overlay {
    width: 0;
    height: 0;
    position: fixed;
    left: 0;
    top: 0;
    overflow: hidden; /*SO THAT TEXT ISN'T VISIBLE */
    padding: 0;
    z-index: 99; /*ENSURES THE OVERLAY APPEARS ON TOP */
    text-align: center;
    background-color: #fff;
}
.overlay a.close{
    background-color: var(--mainDark);
    z-index: 1001; /* SAFETY MEASURE */
    color: var(--neutralLight);
    position: absolute;
    top: 2rem;
    left: 50%;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
    width: 5rem;
    height: 2rem;
    opacity: 0;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
    text-decoration:none;
}
.overlay img{
    opacity: 0;
    box-shadow: 0px 2px 7px rgba(0,0,0,0.2);
    transition: opacity 0.5s linear;
}
.overlay:target {
    width: 100vw;
    height: 100vh;
}
.overlay:target img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.overlay:target img,
.overlay:target a.close{
    opacity: 1;
}
.overlay:target div {
    display: none;
}
/*ORDER CONFIRMATION*/
.container-order {
    width: 50%;
    margin: 0 auto;
}
.container-order h1 {
    margin-top: 7rem;
}
strong {
    margin-right: 1rem;
}
.order-details {
    width: 100%;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
}
.order-details th {
    text-align: left;
    background-color: var(--mainDark);
    color: var(--neutralLight);
}
.order-details td {
    padding: .5rem 0;
}
.total {
    margin: 2rem 0;
    font-weight: bold;
}
td:first-of-type,
th:first-of-type,
td:nth-of-type(3),
th:nth-of-type(3) {
    text-align: center;
}
th,
td {
    border-right: 1px solid #ddd;
}
th:last-of-type,
td:last-of-type {
    border: none;
}
.order-backdrop~main article h1,
.order-backdrop~main article section {
    display: none;
}
@media only screen and (max-width: 1670px) {
    #shop article>section {
        width: 70%;
    }
}
@media only screen and (max-width: 1195px) {
    #shop article>section {
        width: 85%;
    }
}
@media only screen and (max-width: 1070px) {
    .container-order {
        width: 70%;
    }
}
@media only screen and (max-width: 985px) {
    #shop article>section {
        width: 95%;
    }
}
@media only screen and (max-width: 980px) {
    .basket-toggle {
        top: 10rem;
    }
}
@media only screen and (max-width: 820px) {
    .storeadmin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 760px) {
    .container-order {
        width: 95%;
    }
    .hiddenBreak {
        display: block;
    }
}
@media only screen and (max-width: 650px) {
    .storeadmin-grid {
        display: block;
        width: 95%;
    }
    .storeadmin-card {
        display: block;
    }
    .dialog-content {
        max-width: initial;
    }
}
@media only screen and (max-width: 515px) {
    #dialog-form {
        display: block;
    }
    #dialog-form label {
        display: block;
    } 
    #dialog-form input,
    #dialog-form textarea {
        width: 90%;
    }
    #dialog-form input[type="submit"] {
        margin-bottom: 1rem;
    }   
}

