/**
 * Maxim Athletic look and feel, following https://www.maximathletic.com
 *
 * It is loaded last and on the Maxim domain only, see "stylesheets" in
 * config/autoload/brand.global.php. It holds just the differences from the
 * customized Bootstrap and public/style/default, so any layout change made
 * there applies here too. The sections repeat the original selectors and their
 * order to keep the same specificity and cascade.
 */
:root {
    --maxim-red: #bb161c;
    --maxim-red-dark: #8f1015;
    --maxim-red-tint: #f8e7e8;
    --maxim-red-on-black: #ed1c24;
    --maxim-ink: #222222;
    --maxim-grey: #666666;
    --maxim-line: #cccccc;
    --maxim-font: Questrial, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --maxim-survey-logo-width: clamp(140px, 18vw, 400px);
}

/* base: the footer stays at the bottom of short pages
   -------------------------------------------------------------------------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--maxim-font);
    color: var(--maxim-ink);
}

#pageContent {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #000000;
}

.page-header {
    border-bottom: 2px solid #000000;
}

.page-header h1 {
    text-transform: uppercase;
}

/* Bootstrap: public/bootstrap is customized with the UE navy
   -------------------------------------------------------------------------- */
a, .btn-link, .text-primary, .pagination > li > a, .pagination > li > span {
    color: var(--maxim-red);
}

a:hover, a:focus, .btn-link:hover, .btn-link:focus, a.text-primary:hover, a.text-primary:focus {
    color: var(--maxim-red-dark);
}

.bg-primary, .label-primary, .progress-bar {
    background-color: var(--maxim-red);
}

a.bg-primary:hover, a.bg-primary:focus, .label-primary[href]:hover, .label-primary[href]:focus {
    background-color: var(--maxim-red-dark);
}

.btn {
    border-radius: 0;
}

.btn-primary {
    background-color: var(--maxim-red);
    border-color: var(--maxim-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.btn-primary:focus, .btn-primary.focus, .btn-primary:hover,
.btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary,
.btn-primary:active:hover, .btn-primary.active:hover, .open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus, .btn-primary.active.focus, .open > .dropdown-toggle.btn-primary.focus {
    background-color: var(--maxim-red-dark);
    border-color: var(--maxim-red-dark);
}

.btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary.focus {
    background-color: var(--maxim-red);
    border-color: var(--maxim-red);
}

.btn-primary .badge, .list-group-item.active > .badge, .nav-pills > .active > a > .badge, .panel-primary > .panel-heading .badge {
    color: var(--maxim-red);
}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus,
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
    background-color: var(--maxim-red);
}

.nav .open > a, .nav .open > a:hover, .nav .open > a:focus,
a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active {
    border-color: var(--maxim-red);
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover,
.pagination > .active > a:focus, .pagination > .active > span:focus,
.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus {
    background-color: var(--maxim-red);
    border-color: var(--maxim-red);
}

.panel-primary {
    border-color: #000000;
}

.panel-primary > .panel-heading {
    background-color: #000000;
    border-color: #000000;
}

.panel-primary > .panel-heading + .panel-collapse > .panel-body {
    border-top-color: #000000;
}

.panel-primary > .panel-footer + .panel-collapse > .panel-body {
    border-bottom-color: #000000;
}

/* page header: black strip with the motto above a white bar with the logo
   -------------------------------------------------------------------------- */
#brandTopBar {
    flex-shrink: 0;
    background: #000000;
    color: var(--maxim-red-on-black);
    font-size: 15px;
    font-weight: bold;
    padding: 7px 0;
}

/* the spacer needs !important to beat .visible-md and .visible-lg */
#pageHeadSpacer {
    display: none !important;
}

#pageHead {
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--maxim-line);
    border-radius: 0;
    margin-bottom: 30px;
}

#pageHead .container .navbar-header .navbar-brand {
    height: auto;
    padding: 8px 15px;
}

#pageHead .container #brandMotto {
    display: none;
}

/* page footer: black band across the whole page
   -------------------------------------------------------------------------- */
#pageFooter {
    flex-shrink: 0;
    width: 100%;
    margin: 30px 0 0 0;
    background: #000000;
    color: #ffffff;
}

#pageFooter hr {
    display: none;
}

#pageFooter p {
    margin: 0;
    padding: 25px 0;
}

/* approvals and orders (main.less)
   -------------------------------------------------------------------------- */
.approvalFiles .caption {
    background: #000000;
}

.orderContent .line-comment {
    color: var(--maxim-red-dark);
}

/* virtual assistant (clean.css)
   -------------------------------------------------------------------------- */
.assistant {
    font-family: var(--maxim-font);
    color: var(--maxim-ink);
}

/* the logo is a bitmap with a square-ish shape, unlike the wide UE vector one */
.assistant .welcome img, .assistant .finished img {
    width: 240px;
    max-width: 100%;
}

/* the closing screen has its own logo */
#assistantFinished:not(.disabled) ~ #backLink {
    display: none;
}

/* the corner logo is as wide as the UE one, the most that fits the free space to
   the left of the questions on large screens, but never wider than its file */
#backLink img {
    width: var(--maxim-survey-logo-width) !important;
}

/* it is above the questions on small screens, so they start below it */
@media screen and (max-width: 1023px) {
    .assistant .survey .question {
        padding-top: calc(var(--maxim-survey-logo-width) * 0.71 + 28px);
    }
}

.assistant .btn {
    background: var(--maxim-red);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.assistant .btn:hover {
    background: var(--maxim-red-dark);
    background-image: none;
    color: #ffffff;
}

.assistant .btnComment {
    color: var(--maxim-grey);
}

.assistant .survey .question .option {
    background: #000000;
    border-color: #000000;
    border-radius: 0;
}

.assistant .survey .question .option:hover {
    background: #333333;
}

.assistant .survey .question .option .hint {
    background: var(--maxim-red-on-black);
    border-color: var(--maxim-red-on-black);
    color: #ffffff;
}

/* the default image has the UE blue in it */
.assistant .survey .question .option .tag {
    background-image: url(img/corner-check.svg);
}

.assistant .survey .question .selected {
    background: var(--maxim-red);
    border-color: var(--maxim-red);
}

.assistant .survey .question .selected .hint {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--maxim-red);
}

.assistant .survey .question.active .skip {
    background-color: #000000;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.assistant .survey .question.active .skip:hover {
    background-color: var(--maxim-red);
}

.assistant .survey .question .is-done {
    color: var(--maxim-red);
}

.assistant .survey .question .question-is-done {
    background: var(--maxim-red);
    border-color: var(--maxim-red);
}

.assistant .survey .question .question-is-done:hover {
    background: var(--maxim-red-dark);
}

.assistant .button {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 0;
}

.assistant .button.active:hover {
    background-color: rgba(0, 0, 0, 0.65);
}

.assistant .survey .input-wrapper.direct input {
    border-bottom-color: var(--maxim-grey);
}

.assistant .survey .input-wrapper input::-webkit-input-placeholder {
    color: #999999;
}

.assistant .survey .input-wrapper input::-moz-placeholder {
    color: #999999;
}

.assistant .footer .content {
    color: #000000;
}

.assistant .footer .pctbar {
    background: var(--maxim-red-tint);
}

.assistant .footer .pctbar > span {
    background-color: var(--maxim-red);
}

.assistant .footer .ctrl .active {
    background-color: #000000;
}

.assistant .footer .ctrl .active:hover {
    background-color: var(--maxim-red);
}

.assistant .sk-folding-cube .sk-cube:before {
    background-color: var(--maxim-red);
}

.assistant .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 20px;
}

.assistant .social a:hover {
    background: var(--maxim-red);
    text-decoration: none;
}

.ui-menu .ui-menu-item {
    border-color: var(--maxim-line);
    background-color: #f5f5f5;
}

.ui-menu .ui-state-hover, .ui-menu .ui-state-focus, .ui-menu .ui-state-active {
    border-color: var(--maxim-red);
    background-color: var(--maxim-red-tint);
}

/* customer profile (profile.css)
   -------------------------------------------------------------------------- */
.transactions .row table > thead > tr > th {
    border-bottom-color: var(--maxim-line);
}

.transactions .row table > tfoot > tr > th {
    border-top-color: var(--maxim-line);
}

.transactions .row table > tbody > tr:hover:not(.no-data), .transactions .row table tbody > tr:nth-child(even):not(.is-detailed):hover {
    background-color: var(--maxim-red-tint);
}

.transactions .row table > tbody > .is-detailed {
    background-color: #000000;
}

.transactions .row table > tbody > tr.is-detailed:hover {
    background-color: var(--maxim-red);
}

.transactions .row h4 {
    background-color: #000000;
}

.transactions .row h4.is-order-list {
    background-color: var(--maxim-red);
}

.transactions .row h4 .is-close > button:hover {
    color: var(--maxim-line);
}

.transactions .row h4 .is-close > button:active {
    color: #999999;
}

.details-pane .content .group > .header {
    border-bottom-color: #999999;
}

.details-pane .content .group > .header > button:hover {
    color: var(--maxim-line);
}

.details-pane .content .group > .header > button:active {
    color: #999999;
}

.details-pane .content .group:hover > .header {
    background-color: #000000;
}

.details-pane .content .group .item-box .icon {
    color: var(--maxim-line);
}

.details-pane .content .group .item-designs > .design .name {
    color: var(--maxim-grey);
}

.details-pane .content .group .colors > * {
    border-color: #e5e5e5;
}

.details-pane .content .group .is-group-roster .is-roster-size-block .qty-box {
    border-color: #e5e5e5;
}

.details-pane .content .group .is-group-roster button:hover {
    background-color: #000000;
}

.details-pane .content .group .is-group-roster button:active {
    background-color: var(--maxim-red);
}

.details-pane .content .group .is-group-roster .is-roster-size-block .is-players-list > .is-player {
    border-color: #e5e5e5;
}

.details-pane .content .group .is-group-roster .is-roster-size-block .is-players-list > .is-player > *:not(:last-child) {
    border-right-color: #e5e5e5;
}

#shopping-cart-header > .info > .is-empty, #shopping-cart-header > .info > .has-items {
    color: var(--maxim-grey);
}

#shopping-cart-header > .cart-toggle {
    color: var(--maxim-red);
}

#shopping-cart-header > .cart-toggle:hover {
    color: var(--maxim-red-dark);
}

#shopping-cart-header .cart-actions button:hover {
    background-color: #e5e5e5;
}

#shopping-cart-header .cart-actions button:active {
    background-color: #000000;
}

#shopping-cart .shopping-cart-body-row .content > *:first-child {
    border-top-color: var(--maxim-red);
}

/* surveys (surveys-v20200625.css)
   -------------------------------------------------------------------------- */
.survey-pane .form-group .radio-group > label {
    color: var(--maxim-red);
}

.survey-pane .form-group .radio-group > input[type=radio]:checked + label {
    background: var(--maxim-red);
}

.survey-pane .form-group .radio-group > label:hover {
    color: var(--maxim-red-dark);
    background-color: var(--maxim-red-tint);
}

.survey-pane .form-group .radio-group > input[type=radio]:checked + label:hover {
    background-color: var(--maxim-red-dark);
}

.survey-pane .form-group .radio-group {
    border-color: var(--maxim-red);
    border-radius: 0;
}

/* roster editor (jquery.rostereditor.css)
   -------------------------------------------------------------------------- */
.roster-editor {
    font-family: var(--maxim-font);
}

.roster-editor .roster-editor-player-done {
    border-color: #999999;
}

@keyframes btn-pulse {
    0% {
        background-color: var(--maxim-red);
    }
    100% {
        background-color: #449d44;
    }
}
