/* For Customer Service Popup: override the original jquery UI overlay style so z-index is always greater */
div.ui-front {
    z-index: 10001;
}

h1 {
    font-weight: 900;
    font-size: 2em;
}

h2,
nav.school-header .school-name {
    font-weight: 900;
}

h3 {
    font-weight: 900;
}

h4 {
    font-weight: 900;
}

p {
    font-weight: 400;
}

.btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1em;
}

.bold {
    font-weight: 700;
}

/* TODO (DD): Bootstrap - remove these once Bootstrap is in place */
.mt-2 {
    margin-top: 0.5rem !important;
}
.mt-3 {
    margin-top: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}
/* end of Bootstrap */

header {
    position: sticky;
    top: 0px;
    box-shadow: 0 0 3px 0 #BDBDBD;
    z-index: 10000;
}
.shopmenu{
    position: sticky;
    top: 0;
    background-color: #fff;
    max-width: calc(1180px + 4rem);
    margin: 0 auto;
}
main#content {
    margin-top:20px;
}

nav {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 2em 2em 0 2em;
    position: sticky;
    top: 0;
    background-color: #fff;
    max-width: calc(1180px + 4rem);
    margin: 0 auto;
    z-index: 10;
}

nav .logo {
    max-width: 160px;
    display: block;
}

nav #nav-links {
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

nav #nav-links .tab-menu-wrapper {
    display: none;
}

nav #nav-links li {
    list-style: none;
    padding-left: 1.5em;
    text-align: center;
}

nav #nav-links .cart {
    color: #fff;
    background-color: #000;
    padding: 0.75em 1em;
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: opacity 0.25s ease-in-out;
    width: max-content;
}

nav #nav-links .cart .material-icons {
    margin-right: 0.5em;
}

nav #nav-links .cart:hover {
    opacity: 0.9;
}

nav .mobile-logo {
    display: none;
}

nav .mobile-school-details {
    background-color: #4b4b4b;
    color: #fff;
    display: none;
    border-radius: 5px;
    font-size: 0.9em;
}

nav .mobile-school-details .school-name {
    display: block;
    text-align: left;
}

nav .mobile-school-details .school, nav .mobile-school-details .date {
    display: inline-block;
    padding-right: 1em;
    text-align: left;
}

nav .mobile-school-details .material-icons-outlined {
    border-radius: 5px;
    border: 1px solid #fff;
    padding: .1em;
}

nav svg {
    display: none;
    position: absolute;
    top: 2em;
    right: 2em;
    cursor: pointer;
}

nav .school-header .school-name {
    font-size: 1.5em; /* same as h2 */
}

nav .school-header .note {
    padding-left: .5em;
    background-color: white;
}

nav .school-header .row {
    display: flex;
    align-items: center;
}

nav .school-header .row:first-child {
    margin-bottom: 1em;
}

nav .school-header .material-icons-outlined {
    color: #717171;
    margin-right: 0.25em;
}

nav .school-header .logo {
    margin: 0;
}

nav .school-header .school-details {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    max-width: 350px;
    padding: 0.5em 0.75em;
    transition: background-color 0.25s ease-in-out;
}

nav .school-header .school-details a,
nav .mobile-school-details a {
    padding-left: 0.75em;
    text-decoration: revert;
}

nav .school-header .school-details.solid {
    background: #000;
    color: #fff;
    margin: .5em 0 0 0;
}

nav .school-header .school-details.solid:hover {
    background: #000;
}

nav .school-header .school-details:hover {
    background: rgba(0, 0, 0, 0.2);
}

nav .school-header .school-details span.date {
    display: inline-block;
}

nav .school-header .school-details .material-icons-outlined {
    color: #000;
    font-size: 1.1em;
    margin-left: 2em;
}

footer {
    background-color: #000;
    color: #fff;
}

footer .content-container {
    padding: 4em 2em;
    display: flex;
    justify-content: space-between;
}

footer .content-container .logo {
    max-width: 160px;
    display: block;
}

footer .content-container a {
    color: #fff;
    text-decoration: underline;
}

.ui-autocomplete {
    position: absolute;
    top: 115%;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    background-color: #F7F9F9;
    display: none;
}

.ui-autocomplete li.ui-menu-item {
    list-style: none;
}

.ui-autocomplete li a.ui-menu-item-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 1.5em 0;
    border-top: none;
    border-bottom: 1px solid #E5E5E5;
    border-left: 1em solid transparent;
    border-right: 1em solid transparent;
}

.ui-autocomplete li a.ui-menu-item-wrapper.ui-state-active {
    border-top: none;
    border-bottom: 1px solid #E5E5E5;
    border-left: 1em solid #E6F2F2;
    border-right: 1em solid #E6F2F2;
    background: none;
    color: #000;
    background-color: #E6F2F2;
}

.search-results.show {
    display: initial;
}

.gray-border {
    border: 1px solid #F1F1F1;
    border-radius: 5px;
}

.dk-gray-border {
    border: 1px solid #BDBDBD;
    border-radius: 5px;
}

.with-side-bar {
    display: flex;
}

.with-side-bar .main {
    margin-right: 1em;
    flex-grow: 1;
}

.with-side-bar .side-bar {
    display: flex;
    flex-direction: column;
    min-width: 30%;
    height: 100%;
    max-width: 500px;
}

.with-side-bar #enter-shipping-info {
    flex-grow: 1;
}

/*Underlining hyperlinks in specific containers.*/
.link_underline a:link, 
.link_underline a:visited,  
.link_underline a:focus, 
.link_underline a:active
{
    text-decoration: underline;
}
.link_underline a:hover{
    cursor:pointer;
}

.btn {
    padding: 1em 1.5em;
    text-decoration: none;
    background-color: #BE2F25;
    color: #fff;
    border: none;
    cursor: pointer;
    min-width: 100px;
    line-height: 1em;
    text-transform: uppercase;
    transition: opacity 0.25s ease-in-out;
    text-align: center;
    display: inline-block;
}

.product-description-form button {
    width: 100%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.btn:hover {
    opacity: 0.9;
}

.btn.btn-light {
    background-color: #E6F2F2;
    color: #000;
    transition: background-color 0.25s ease-in-out;
}

.btn.btn-light:hover {
    background-color: #E5E5E5;
}

a.tab {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #F7F9F9;
    font-weight: 700;
    border-radius: 5px;
    padding: 0.75em 1.25em;
    width: max-content;
    margin-right: 10px;
    transition: background-color 0.25s ease-in-out;
    white-space: nowrap;
}

a.tab:hover {
    background-color: #E6F2F2;
}

a.tab.active {
    background-color: #000;
    color: #fff;
    transition: opacity 0.25s ease-in-out;
}

a.tab.active:hover {
    opacity: 0.85;
}

a.tab .tab-icon {
    fill: #fff;
}

.tab-menu-wrapper {
    overflow: auto;
}

.tab-menu {
    display: flex;
    margin: 0.5em 0 1em 0;
}

.note {
    background-color: #F7F9F9;
    padding: 1em 1.25em 1.5em 1.25em;
    border-radius: 5px;
    max-width: 100%;
    display: inline-flex;
    flex-direction: column;
    margin-bottom: .5em;
}

.note .title {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.note .title span {
    color: #E56E2C;
    margin-right: 0.2em;
}

.note p {
    margin-top: 0.5em;
    font-weight: 600;
}

.note.alert span {
    color: #BD2F26;
}

.note.shipping-note .title {
    flex-wrap: wrap;
}

.shipping-footnote {
    flex-basis: max-content;
}

.pointer {
    cursor: pointer;
}

.img-alert {
    background-color: #000;
    color: #fff;
    font-weight: 700;
    position: absolute;
    bottom: 1em;
    right: 1em;
    padding: 0.75em 0.5em;
    border-radius: 5px;
}

.deadline-alert {
    background-color: #000;
    color: #fff;
    font-weight: 700;
    text-align: center;
    --bottom: 1em;
    --right: 1em;
    padding: 0.75em 0.5em;
    border-radius: 5px;
}

.product-listing {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 288px;
}

.product-listing .image {
    display: flex;
    justify-content: center;
    padding: 1em;
}

.product-listing .image img {
    max-height: 150px;
}

.product-listing .info {
    display: flex;
    flex-direction: column;
    padding: 1em;
}

.product-listing .info .title {
    font-weight: 700;
}

.product-listing .title {
    display: inline-flex;
    align-items: center;
    line-height: 24px;
}

.product-listing .title .material-icons {
    margin-right: 0.2em;
    color: #E56E2C;
    display: none;
}

.product-listing.external .image {
    background-color: #fff;
    border-radius: 5px 5px 0 0;
}

.product-listing.external .info {
    flex-direction: row;
    align-content: center;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
}

.product-listing.external .info .material-icons {
    display: inline-block;
    margin-right: 0.2em;
    color: #E56E2C;
    align-self: center;
}

.product-listing.external .info .tab {
    background: rgba(229, 110, 44, 0.1);
    margin-left: auto;
    margin-right: 0;
}

.product-listing.external .info .row {
    flex-direction: column;
}

.product-listing .package-description {
    padding: 5px 10px;
    background-color: #E6F2F2;
}

.product-listing.package .image {
    max-height: 182px;
    overflow: hidden;
    display: block;
    border-radius: 5px 5px 0 0;
}

.product-listing.package .image .package-images {
    transform: rotate(-30deg) scale(0.65) translate(-129px, -191px);
}

.product-listing.package .image .package-images .row-1 {
    margin-left: 67px;
    margin-bottom: 1em;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1em;
    padding: 0;
}

.product-listing.package .image .package-images .row-2 {
    margin-top: 1em;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1em;
    padding: 0;
    margin-left: 175px;
}

.product-listing.package .image .package-images img {
    padding: 0;
    max-height: 200px;
}

.product-listing.package .title .material-icons {
    display: inline-block;
}

.product-listing.detail {
    flex-direction: row;
}

.product-listing .row {
    display: inline-flex;
    justify-content: space-between;
}

.product-listing .row .package-contents .items {
    display: flex;
    align-items: center;
    padding: 0.1em 0.5em 0.2em 0.1em;
    background-color: #E5E5E5;
    border-radius: 5px;
    line-height: 24px;
    border: none;
    font-size: 1em;
    transition: background-color 0.25s ease-in-out;
    position: relative;
}

.product-listing .row .package-contents .items .material-icons-round {
    margin-right: 0.2em;
    font-size: 1.6em;
}

.product-listing .row .package-contents .items:hover {
    background-color: #E6F2F2;
}

.product-listing .row .package-contents .items:focus ul {
    display: initial;
}

.product-listing .row .package-contents .items ul {
    list-style: none;
    display: none;
    position: absolute;
    left: 0;
    top: 30px;
    z-index: 20;
    text-align: left;
    border: 1px solid #BEC0C0;
    padding: 0.5em 0.75em;
    background-color: #fff;
    max-width: 95px;
}

.related {
    margin: 5em 0;
}

.related .grid {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
}

.related .grid .scroll-wrapper {
    display: flex;
}

.related .grid .product-listing {
    max-width: 200px;
    min-width: 200px;
    margin-right: 1em;
    margin-bottom: 1em;
    max-height: 130px;
    flex-grow: unset;
}

.related .grid .product-listing.single {
    flex-direction: row;
    background-color: #F1F1F1;
    padding: 0.5em;
    min-width: 180px;
}

.related .grid .product-listing.single .image {
    padding: 0;
    justify-content: start;
    margin-right: 0.5em;
}

.related .grid .product-listing.single .image img {
    height: 60px;
}

.related .grid .product-listing.single .info {
    padding: 0;
}

.related .grid .product-listing.package .image {
    max-height: 65px;
    width: auto;
}

.related .grid .product-listing.package .image .package-images {
    transform: scale(0.5) rotate(-30deg) translate(-94px, 10px);
    margin-top: -10em;
    margin-left: -2em;
}

.related .grid .product-listing.package .info {
    padding: 0.5em;
}

.form {
    background-color: #F7F9F9;
    padding: 1.25em;
    display: inline-flex;
    flex-direction: column;
}

.form label {
    display: block;
    padding: 1em 0 0.5em 0;
    font-size: 0.8em;
}

.form input {
    padding: 1em 1em;
    min-width: 100%;
    border-radius: 0;
    border: 1px solid #BEC0C0;
    outline: none;
}

.form input:focus {
    border: 2px solid #BEC0C0;
}

.form input::placeholder {
    font-size: 1.1em;
    color: #868686;
}

.form select {
    display: inline;
    padding: 1em 1em;
    min-width: 100%;
    border-radius: 0;
    border: 1px solid #BEC0C0;
    outline: none;
}

.form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.75em;
}

/* the announcement form is long and doesn't need a big chunk of whitespace around it */
.form.announcement-info {
    padding: 6px 10px;
}

.form .required-note {
    font-size: 0.8em;
}

.order-tile {
    display: inline-block;
    padding: 2em 1.5em;
    box-sizing: border-box;
    flex-grow: 1;
}

.order-tile hr {
    margin: 1em 0;
}

.order-tile .item-info {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5em;
}

.order-tile .item-info.single .package-count {
    display: none;
}

.order-tile .item-info .item {
    display: flex;
}

.order-tile .item-info .item .image {
    padding: 0.2em;
    background-color: #F1F1F1;
    width: 65px;
    height: 65px;
}

.order-tile .item-info .item .image img {
    max-height: 100%;
}

.order-tile .item-info .item .item-text {
    padding: 0.5em 1em;
}

.order-tile .item-info .item .item-text .name {
    display: block;
}

.order-tile .status {
    margin-top: 1.5em;
}

.order-tile .status .status-text {
    font-size: 0.8em;
    color: #55575A;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    padding-top: 1em;
    text-align: center;
}

.order-tile .status .bar {
    width: 100%;
    position: relative;
    height: 20px;
    overflow: hidden;
    background-color: #E6F2F2;
    border-radius: 10px;
}

.order-tile .status .bar .progress-bar {
    width: 100%;
    position: absolute;
    height: 20px;
    background-color: #000;
    border-radius: 10px;
}

.order-tile .status.processing .status-1 {
    color: #000;
    font-weight: 700;
}

.order-tile .status.processing .progress-bar {
    right: 90%;
}

.order-tile .status.preparing .status-2 {
    color: #000;
    font-weight: 700;
}

.order-tile .status.preparing .progress-bar {
    right: 58%;
}

.order-tile .status.shipped .status-3 {
    color: #000;
    font-weight: 700;
}

.order-tile .status.shipped .progress-bar {
    right: 28%;
}

.order-tile .status.delivered .status-4 {
    color: #000;
    font-weight: 700;
}

.order-tile .status.delivered .progress-bar {
    right: 0;
}

.order-tile .tracking {
    margin-top: 1.5em;
}

.order-tile .tracking .shipping-with {
    font-size: 1.3em;
    font-weight: 700;
    padding-bottom: 0.75em;
}

.order-tile .tracking .tracking-number {
    font-weight: 400;
}

.order-tile .tracking .tracking-number a {
    font-weight: 600;
    text-decoration: underline;
}

#order-summary hr {
    border: 1px solid #f0f0f0;
    margin: 1em 5em;
}

.cart-items {
    max-width: 475px;
    padding: 1em 0;
}

.cart-items hr {
    border: 1px solid #f0f0f0;
    margin: 1em 5em;
}

.cart-items .row {
    display: flex;
    padding: 1em;
    justify-content: space-between;
}

.cart-items .row.with-button {
    justify-content: center;
}

.cart-items .row .item {
    display: flex;
}

.cart-items .row .item .image {
    width: 60px;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

.cart-items .row .item .image img {
    height: 60px;
}

.cart-items .row .item .info {
    padding: 0 0.5em;
}

.cart-items .row .item-action {
    display: flex;
}

.cart-items .row .item-action .row .quantity {
    font-size: 16px;
    width: 40px;
    text-align: center;
    background-color: #EFEFEF;
    padding: 0.5em 0;    
}

.order-cost {
    background-color: #F7F9F9;
    padding: 2em 1.5em;
    font-size: 1.2em;
    margin-bottom: 2em;
}

.order-cost hr {
    border: 1px solid #f0f0f0;
    margin: 0.5em 0 0.5em 0;
}

.order-cost .row {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.order-cost .row .cost {
    font-weight: 600;
}

.side-bar .btn {
    position: relative;
}

.side-bar .btn .total {
    position: absolute;
    display: block;
    top: 33%;
    right: 1.5em;
}

a.action, button.action {
    background-color: #55575A;
    color: #fff;
    cursor: pointer;
    border-radius: 2px;
    margin-left: 0.5em;
    height: 35px;
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease-in-out;
}

a.action .material-icons {
    padding-bottom: 2px;
}

a.action:hover {
    opacity: 0.8;
}

.ceremony-info h2, .ceremony-info .grad-date, .ceremony-info .location {
    padding-bottom: 1em;
}

.ceremony-info .grad-date, .ceremony-info .location {
    display: flex;
    align-items: center;
}

.ceremony-info .grad-date .material-icons, .ceremony-info .location .material-icons {
    margin-right: 1em;
}

.confirmation-info {
    display: flex;
    width: 100%;
    justify-content: space-between;
    max-width: 500px;
    padding: 1em 0;
}

.confirmation-info h2, .confirmation-info h3 {
    margin-bottom: 0.5em;
}

.confirmation-info .address span {
    display: block;
}

.confirmation-info .address span.city, .confirmation-info .address span.state, .confirmation-info .address span.zip {
    display: initial;
}

#announcement-preview .preview {
    background-color: #F7F9F9;
    margin: 2em 0;
    padding: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
}

#announcement-preview .side-bar .note {
    margin-top: 2em;
}

#announcement-preview .row {
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
}

#announcement-preview .row.with-button {
    justify-content: center;
    margin-bottom: 2em;
}

#announcement-preview .row .btn {
    width: 100%;
}

.enter-info .form {
    max-width: 500px;
    display: flex;
    margin: 2em 0;
}

#enter-shipping-info .form, #enter-billing-info .form {
    background-color: #fff;
    padding: 1.25em 0;
}

#enter-shipping-info .form .btn, #enter-billing-info .form .btn {
    margin-top: 1em;
}

#enter-shipping-info .confirmation-info, #enter-billing-info .confirmation-info {
    margin-top: 2.25em;
}


#enter-shipping-info .side-bar .btn, #enter-billing-info .side-bar .btn {
    margin-top: 2em;
}

#enter-shipping-info .side-bar h3, #enter-billing-info .side-bar h3 {
    padding: 1.25em 0;
}

#enter-shipping-info .side-bar h4, #enter-billing-info .side-bar h4 {
    margin-bottom: 1em;
}

#enter-shipping-info .side-bar label.confirm{
    margin-top: 1.25em;
    margin-bottom: 1.5em;
}

#enter-billing-info label.confirm {
    margin-top: 1.25em;
    margin-bottom: 0;
}

#enter-shipping-info .side-bar .shipping-method, #enter-billing-info .side-bar .shipping-method {
    padding: 1.25em 1em;
    border-radius: 2px;
    background-color: #F1F1F1;
    transition: background-color 0.25s ease-in;
    text-align: left;
    min-width: 110px;
    margin: 0 0.75em 0.75em 0;
    display: inline-block;
}

#enter-shipping-info .side-bar .shipping-method span, #enter-billing-info .side-bar .shipping-method span {
    display: block;
}

#enter-shipping-info .side-bar .shipping-method span.type, #enter-billing-info .side-bar .shipping-method span.type {
    text-transform: uppercase;
    padding-bottom: 0.25em;
}

#enter-shipping-info .side-bar .shipping-method:hover, #enter-billing-info .side-bar .shipping-method:hover {
    background-color: #E5E5E5;
}

#enter-shipping-info .side-bar .shipping-method:focus, #enter-billing-info .side-bar .shipping-method:focus {
    background-color: #BDBDBD;
}

#enter-shipping-info .side-bar .shipping-radio:checked + label, #enter-billing-info .side-bar .shipping-method > input {
    background-color: #BDBDBD;
}

#enter-shipping-info .main, #enter-billing-info .main {
    margin-top: 0;
}

#ceremony-info-input .select-ceremony .form {
    max-width: 500px;
    display: flex;
    margin: 2em 0;
}

#ceremony-info-input .select-ceremony .form .row {
    justify-content: initial;
}

#ceremony-info-input .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
}

#ceremony-info-input .row.with-button {
    justify-content: center;
    margin-bottom: 2em;
}

#ceremony-info-input .row .btn {
    width: 100%;
}

/* TODO (DD): Bootstrap - remove these once we actually have Bootstrap in place */
.alert.alert-info {
    position: relative;
    padding: 0.75rem 1.25rem;
    border: 1px solid #bee5eb;
    border-radius: .25rem;
    background-color: #d1ecf1;
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: white;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}
.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}
.bg-light {
    background-color: #f8f9fa !important;
}
/* end of Bootstrap */

.modal-wrapper {
    position: relative;
}

.modal {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

.modal.show {
    display: flex;
}

.modal .popup {
    background-color: #fff;
    padding: 2em 1em 1.5em 1em;
    max-width: 350px;
    max-height: 90%;
    overflow-y: scroll;
}

.modal .popup h3 {
    padding-bottom: 0.5em;
}

.modal .popup p {
    padding-bottom: 1em;
}

.modal .popup ul {
    padding-left: 1em;
}

.modal .popup .row {
    display: flex;
}

.modal .popup .row .grow {
    flex-grow: 1;
    margin-left: 0.5em;
}

/* The container must be positioned relative: */
.custom-select {
    position: relative;
}

.custom-select select {
    display: none;
    /*hide original SELECT element: */
}

.select-selected {
    background-color: #fff;
}

/* Style the arrow inside the select element: */
.select-selected:after {
    position: absolute;
    content: "";
    right: 12px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #000 transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
    border-color: transparent transparent #000 transparent;
    top: 7px;
    top: 45px;
    right: 12px;
}

/* style the items (options), including the selected item: */
.select-items div, .select-selected {
    color: #000;
    padding: 1em;
    font-size: 0.9em;
    border: 1px solid #BEC0C0;
    cursor: pointer;
    line-height: 0.9em;
}

.select-items div {
    border: none;
}

/* Style items (options): */
.select-items {
    position: absolute;
    background-color: #fff;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border: 1px solid #BEC0C0;
    max-height: 300px;
    overflow-y: scroll;
}

/* Hide the items when the select box is closed: */
.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: #F7F9F9;
}

/* container for errors, since we aren't using Bootstrap anymore we have to do this manually */
.error-container {
    margin-bottom: 20px !important;
}

@media (max-width: 1050px) {
    section#hero {
        flex-direction: column;
        padding: 2em 0;
    }

    section#hero .hero-image {
        max-width: 100%;
        margin-bottom: 1.5em;
        margin-right: 0;
    }

    section#hero .hero-start .title {
        margin-bottom: 0.75em;
    }

    #school-landing-page section#hero {
        flex-direction: column;
        padding: 2em 0;
    }

    #school-landing-page section#hero .hero-image {
        max-width: 100%;
        margin-bottom: 1.5em;
        margin-right: 0;
    }

    .with-side-bar {
        flex-direction: column;
    }

    .with-side-bar .main {
        margin-right: 0;
    }
}

@media (max-width: 800px) {
    #main-nav .nav-link-wrapper {
        position: absolute;
        top: 0;
        right: -100%;
        z-index: 15;
        transition: right 0.5s ease-in-out;
        width: 100vw;
        height: 100vh;
        display: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #main-nav .nav-link-wrapper.open {
        right: 0;
        display: initial;
    }

    #main-nav .nav-link-wrapper .mobile-logo {
        display: flex;
        background-color: #fff;
        padding: 3em 1em 2em 1em;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    #main-nav .nav-link-wrapper .mobile-logo .material-icons {
        position: absolute;
        left: 1em;
        bottom: 1em;
        cursor: pointer;
    }

    #main-nav .nav-link-wrapper ul#nav-links {
        background-color: #000;
        flex-direction: column;
        height: 100%;
        padding: 2em 1em;
    }

    #main-nav .nav-link-wrapper ul#nav-links li {
        padding: 1em 0;
        width: 100%;
        text-align: right;
    }

    #main-nav .nav-link-wrapper ul#nav-links .mobile-school-details {
        display: flex;
        padding: 1em 1em;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 2em);
    }

    #main-nav .nav-link-wrapper ul#nav-links .mobile-school-details .details {
        text-align: left;
    }

    #main-nav .nav-link-wrapper ul#nav-links .cart {
        background-color: #fff;
        color: #000;
        width: calc(100% - 2em);
        display: flex;
        justify-content: center;
    }

    #main-nav .nav-link-wrapper ul#nav-links a {
        color: #fff;
    }

    #main-nav svg {
        display: block;
    }

    nav #nav-links .tab-menu-wrapper {
        display: flex;
        justify-content: end;
        width: 100%;
        padding: 0;
    }

    a.tab {
        min-width: 30%;
        margin: .25em;
        padding: .25em;
        text-align: right;
        border: 2px solid black;
        border-radius: 10px;
        background-color: initial;
        flex-direction: initial;
    }

    .product-listing .description {
        display: none;
    }

    .tab-menu {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .content-container {
        margin: 0;
    }
}

@media (max-width: 700px) {
    #order-confirmation .other-products .grid {
        flex-direction: column;
    }

    #order-confirmation .other-products .grid div.product-listing {
        margin-right: 0;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 650px) {
    .product-listing.detail {
        flex-direction: column;
    }

    .with-side-bar .main {
        margin-top: 0;
    }
}

@media (max-width: 550px) {
    div.content-container {
        padding: 0 1em;
    }

    footer .content-container {
        flex-direction: column;
        align-items: center;
        padding: 3em 1em;
    }

    footer .content-container .info {
        text-align: center;
        margin-top: 2em;
    }

    a.tab {
        min-width: 38%;
    }
}

@media (max-width: 500px) {
    nav#main-nav {
        padding: 2em 1em 0 1em;
    }

    #hero .hero-start .search {
        display: flex;
        flex-direction: column;
    }

    #hero .hero-start .search .btn {
        margin-left: 0;
        margin-top: 1em;
    }
}

@media (max-width: 400px) {
    .form .row {
        display: initial;
    }

    .order-tile .status .status-text {
        font-size: 0.65em;
    }

    a.tab {
        min-width: 42%;
    }
}

@media (max-width: 375) {
    a.tab {
        min-width: 46%;
    }
}

@media (max-width: 365px) {
    .product-listing.external .info {
        flex-direction: column;
    }

    .product-listing.external .info .tab {
        width: 100%;
        margin-top: 0.5em;
    }

    .product-listing.external .info span.material-icons {
        display: none;
    }

    a.tab {
        min-width: 60%;
    }
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    box-sizing: border-box;
}

.landing-page-wrapper {
    min-height: calc(100vh - 296px);
    padding-bottom: 2em !important;
}

.internal-wrapper {
    min-height: calc(100vh - 344px);
    padding-bottom: 2em !important;
}

a {
    text-decoration: none;
    color: #000;
}

.gray-background {
    background-color: #F1F1F1;
}

.container {
    max-width: 1440px;
    margin: auto;
    overflow: hidden;
}

.content-container {
    max-width: calc(1180px + 4rem);
    padding: 0 2em;
    margin: 0 auto;
}

.section-title {
    border-bottom: 1px #F1F1F1 solid;
    padding: 0.5em 0;
}

.examples {
    padding: 1em 1.5em;
    margin-bottom: 5em;
}

#headings-and-type h1, #headings-and-type h2, #headings-and-type h3, #headings-and-type h4, #headings-and-type p {
    padding-bottom: .5em;
}

#buttons-and-tabs .examples button {
    margin: 0.5em 0.5em 0.5em 0;
}

#product-views .product-listing {
    margin: 0 1em 1em 0;
}

.confirm {
    position: relative;
    margin: 3em 0;
}

.form label.confirm{
    padding-top: 3px;
}

.confirm p {
    padding-left: 30px;
}

.confirm:hover input ~ .checkmark {
    background-color: #F7F9F9;
}

.confirm input:checked ~ .checkmark:after {
    display: block;
}

.confirm .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border-radius: 5px;
    border: 3px solid #55575A;
    box-sizing: border-box;
}

.confirm .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.confirm .checkmark:after {
    left: 3px;
    top: 0px;
    width: 5px;
    height: 8px;
    border: solid #55575A;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.confirm input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.select {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 1em;
}

.select p {
    padding-left: 30px;
}

.select:hover input ~ .dot {
    background-color: #F7F9F9;
}

.select input:checked ~ .dot:after {
    display: block;
}

.select .dot {
    position: absolute;
    top: 10px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: none;
    border-radius: 50%;
    border: 3px solid #55575A;
    box-sizing: border-box;
}

.select .dot:after {
    content: "";
    position: absolute;
    display: none;
}

.select .dot:after {
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #55575A;
}

.select input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#hero {
    display: flex;
    padding: 8em 0;
}

#hero .hero-image {
    max-width: 60%;
    margin-right: 1.5em;
}

#hero .hero-image img {
    width: 100%;
}

#hero .btn {
    margin-left: 1em;
}

#hero .hero-start {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

#hero .hero-start .title {
    color: #fff;
    background-color: #000;
    padding: 0.4em 0.75em;
    align-self: flex-start;
}

#hero .hero-start .find-school {
    position: relative;
}

#hero .hero-start .find-school h2 {
    margin-bottom: 0.5em;
}

#hero .hero-start .find-school p {
    margin-bottom: 1em;
}

#hero .hero-start .search {
    display: flex;
}

#hero .hero-start .form {
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    max-width: 465px;
}

#hero .hero-start .form form {
    width: 100%;
    margin-right: 0.5em;
}

#school-landing-page #hero {
    padding: 1.5em 0;
}

#school-landing-page #hero .hero-image {
    max-width: 70%;
}

.header-large-image img {
    max-width: 100%;
}

#product-selection .selection-text, #school-landing-page .selection-text {
    margin-bottom: 1.5em;
}

#product-selection .grid, #school-landing-page .grid {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 2.5em;
    margin: 2em auto;
}

#product-selection .grid .product-listing, #school-landing-page .grid .product-listing {
    max-width: 350px;
}

#order-status {
    margin: 2.5em auto;
}

#order-status .grid {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 1.5em;
    margin: 2em auto;
}

#order-status h2, #order-status .grad-date, #order-status .location {
    padding-bottom: 1em;
}

#order-status .btn {
    margin-top: 2em;
}

#order-status.with-side-bar .side-bar {
    background-color: #F7F9F9;
    padding: 1.25em 1.5em;
    box-sizing: border-box;
}

#product-detail .product-listing {
    width: 100%;
}

#product-detail .product-listing .image {
    max-width: 425px;
    position: relative;
    flex-grow: 1;
}

#product-detail .product-listing .info {
    padding: 0.5em 1em;
}

#product-detail .product-listing .info p {
    padding: 0.25em 0;
    font-size: 1.2em;
}

#product-detail .side-bar h2 {
    margin-bottom: 0.75em;
}

#product-detail .side-bar .form {
    margin-top: 1em;
}

#product-detail .side-bar .form h3 {
    padding-bottom: 0.5em;
}

#product-detail .side-bar .btn {
    margin-top: 1em;
}

#product-detail .related .grid .product-listing .image {
    width: auto;
}

#product-detail .related .grid.package-contents .item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#product-detail .related .grid.package-contents .item .image {
    padding: 0.2em;
    background-color: #F1F1F1;
    width: 65px;
    height: 65px;
    position: relative;
}

#product-detail .related .grid.package-contents .item .image .image-unavailable {
    font-size: 0.7em;
    text-align: center;
    margin-top: 25%;
}

#product-detail .related .grid.package-contents .item .image .item-count {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background-color: #000;
    color: #fff;
    border-radius: 3px;
    padding: 0.2em 0.3em;
}

#product-detail .related .grid.package-contents .item .image img {
    max-height: 100%;
}

#product-detail .related .grid.package-contents .item .info {
    padding: 0.5em 1em;
    white-space: nowrap;
}

#product-detail .related .grid.package-contents .item .info .name {
    display: block;
    font-weight: 700;
    font-size: 0.8em;
}

#cart .side-bar h2 {
    margin-bottom: 1em;
}

#order-summary .confirmation-info a.action {
    background-color: #000;
}

#order-confirmation .confirmation {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#order-confirmation .confirmation .heading {
    display: flex;
    align-items: center;
    padding-bottom: 1em;
}

#order-confirmation .confirmation .heading h1 {
    font-family: 'Oswald', sans-serif;
}

#order-confirmation .confirmation .heading .material-icons-outlined {
    color: #E56E2C;
    font-size: 2em;
    margin-right: 0.25em;
}

#order-confirmation .confirmation .order-number {
    text-transform: uppercase;
}

#order-confirmation .confirmation .confirmation-email {
    text-align: center;
    padding: 2em 0;
}

#order-confirmation .confirmation .confirmation-email .email {
    font-weight: 700;
}

#order-confirmation .cart-items hr {
    margin: 1em 1em;
}

#order-confirmation .grad-date, #order-confirmation .location {
    margin-left: 1.5em;
}

#order-confirmation .other-products h2 {
    margin-bottom: 1em;
}

#order-confirmation .other-products .grid {
    display: flex;
    flex-wrap: wrap;
}

#order-confirmation .other-products .grid .product-listing {
    margin-right: 1em;
    margin-bottom: 1em;
    max-width: 350px;
}

#order-confirmation .other-products .grid .product-listing .image {
    background-color: #fff;
}

#hero.track-order h1.title {
    background-color: #fff;
    color: #000;
    padding: 0;
}

.paypal-pay-later {
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    min-width: 230px; /* if too small, it seems to show a default message without referencing any payment amounts */
}
#cart .paypal-pay-later{
    margin-top: -1em;
    margin-bottom: 1em;
}
#order-summary .paypal-pay-later{
    margin-top: -0.75em;
    margin-bottom: 1em;
}