.modal {
/*
    width: 300px;
    height: 300px;
*/
    width: 80%;
    height: 80%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    before: "Modal"
}

.debug {
    display: none;
    visibillity:hidden;
    z-index: 1600000000;
    text-align: left;
    font-family: Consolas,monospace;
    font-size: 10pt;
    background: lightgray;
    color: black;
    padding-left: 1em;
    overflow:scroll;
    resize:both;
}

#cart-status {
    display: inline;
}

/* item view */
.shipsfor {
    clear: both;
    font-size: 12pt;
    text-transform: none;
}


#cart-status-hover {
    /*display: none; // animated hide it on load*/
    display:block;
    position:absolute;
    padding: 13px;
    position: absolute;
    z-index: 1001;
    color: black;
    background-color: white;
    transparency: 90%;
    border-width: 1px;
    border-color: black;
    border-style: solid;
    border-radius: 10px;
    box-shadow: 3px 3px 12px 6px #888888;
    padding: 10px;
    right:0;
}

/* use animated hide on load
#cart-status:hover #cart-status-hover {
    display:block;
}

*/


#cart-status-hover table {
    border-spacing: 15px;
    border-width: 1px;
    border-style: solid;
    border-collapse: separate;
}


/* for small screens and select/option boxes: */
select {
/*  width: 100px;
  max-width: 90%; */
  /* So it doesn't overflow from it's parent */
}
option {
  /* wrap text in compatible browsers */
  -moz-white-space: pre-wrap;
  -o-white-space: pre-wrap;
  white-space: pre-wrap;
  /* hide text that can't wrap with an ellipsis */
  overflow: hidden;
  text-overflow: ellipsis;
  /* add border after every option */
  border-bottom: 1px solid #DDD;
}

/* the cumbersome navbar returns (WIP) */
/*
.navtree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navtree ul a {

}
.navtree ul p {

}
.navtree ul p a {

}
*/
/*if($xpcom::config{mode} ne "prod") {*/
.xpcom-banner {
    pointer-events: none;
    text-align: center;
    width: 100%;
    color: white;
    padding: 2px;
    background: #720e9ec0;
    overflow: hidden;
    font-family: sans-serif;
    font-size: larger;
    font-weight: bold;
    top: 0px;
}
.-fixed {
    position: fixed;
}
.-sticky {
    position: sticky;
}

.-badge {
    background-color: red;
    color: white;
    padding: 4px 8px;
    text-align: center;
    border-radius: 5px;
}
.willcallonly {
    margin-left: 8px;
    white-space: nowrap;
    color: white;
    background-color: blue;
    font-weight: bold;
    padding: 4px 8px;
    text-align: center;
    border-radius: 5px;
}

/* float-to-placeholder labels */
fieldset.ftp label {
    margin:20px 0;
    position:relative;
    display:inline-block;
}
fieldset.ftp span {
    padding:10px 10px 10px 20px;
    pointer-events: none;
    position:absolute; left:0; top:0;
    transition: 0.2s;
    transition-timing-function: ease;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity:0.5;
}
fieldset.ftp input,textarea,.ftplabel {
    padding:10px;
}
fieldset.ftp input:focus + span, fieldset.ftp input:not(:placeholder-shown) + span,
fieldset.ftp textarea:focus + span, fieldset.ftp textarea:not(:placeholder-shown) + span {
    opacity:1;
    transform: scale(0.75) translateY(-100%) translateX(-30px);
}
/* For IE Browsers*/
fieldset.ftp input:focus + span,  fieldset.ftp input:not(:-ms-input-placeholder) + span,
fieldset.ftp textarea:focus + span,  fieldset.ftp textarea:not(:-ms-input-placeholder) + span {
    opacity:1;
    transform: scale(0.75) translateY(-100%) translateX(-30px);
}

/* grow-wrap:
   stack elementsand have them both sized based on the tallest one's
   height
*/
.grow-wrap {
    display: grid ! important;
}
/* Note the weird space! Needed to preventy jumpy behavior */
.grow-wrap::after {
    content: attr(data-replicated-value) " ";
    white-space: pre-wrap;
    /* This is how textarea text behaves */
    /* Hidden from view, clicks, and screen readers */
    visibility: hidden;
}
.grow-wrap > textarea {
    resize: none;
    overflow: hidden;
}
.grow-wrap > textarea, .grow-wrap::after {
    border: 1px solid black;
    padding: 0.5rem;
    font: inherit;
    grid-area: 1 / 1 / 2 / 2;
}
/* simple modals*/
.simplemodal {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #000000c0;
    color: black;
    display: none;
    z-index: 640;
}

.simplemodal div {
    position: absolute;
    top: 50%; right: 50%;
    transform: translate(50%,-50%);
    background: revert;
    background-color: #ffffff !important;
    border:1px solid black;
    border-radius: 0px;
    min-width: 400px;
}

.fanfold * {
    white-space: nowrap;
}

