﻿
html {
  scroll-behavior: smooth;          /* Smooth scrolling, e.g., event page. Just use this for browsers that support it. */
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  /* Set the fixed height of the footer here. Removed: this is causing a minimum 1 pixel scroll on short pages. */
  /*height: 60px;*/
  line-height: 60px; /* Vertically center the text there */
}

/* Header */
.navbar-bg {
  background-color: #e31837;     /* Titleist red. */
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

.navbar .leftLogo {
  display: none;        /* Avoiding overlap/crowding with center logo. */
}
.navbar .centerLogo {       /* Center in header, not part of navbar structure. */
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
}
.navbar .centerLogo img {
  height: 30px;
}
@media (min-width: 576px) {
  .navbar .leftLogo {
    display: inline;
    height: 36px;
  }
}

.navbar-top.navbar-light .navbar-nav .nav-link {  /* navbar-top to only change the top navbar, not the sub navbar for page sections. */
  color: rgba(255, 255, 255, 0.7);      /* white slightly dim. */
}

.navbar-top.navbar-light .navbar-nav .nav-link:hover, .navbar-top.navbar-light .navbar-nav .nav-link:focus {
  color: rgba(255, 255, 255, 0.9);      /* white, slightly brighter. */
}

.dropdown-menu {
  z-index: 10000;  /* Default 1000 goes under the top sticky bar when the list is tall and goes up, e.g., fitters on create event page. */
}

.dropdown-item:active {
  background-color: #e31837;  /* Bootstrap's bright blue to Titleist red. All dropdowns. */
}

.navbar-top .dropdown-menu {
  padding: 0;   /* Normally 0.5rem 0, but want each item to look the same. */
  z-index: 2000; /* Normally 1000, but need to sit over sticky bar's 1020. */
}

.navbar-top .dropdown-menu .dropdown-item {
  padding: 1rem 1.5rem;       /* Taller items. */
}

.navbar-top .dropdown-menu .dropdown-item .fa-caret-right {
  font-size: 1.2rem;      /* Bigger arrow, nudge down. fa-2x is too big. */
  position: relative;
  top: 1px;
}

.navbar-top .dropdown-menu .logo-item-titleist .fa-caret-right {
  top: 2px;
}

.navbar-top .dropdown-menu .logo-item-titleist {
  padding-left: 1rem;  /* Align the T with FJ. */
}

.navbar-top .dropdown-menu .logo-item-titleist.logo-item-program {
  padding-left: 0.4rem;  /* With the arrow. Align the T with FJ. */
}

.navbar-top .dropdown-menu .logo-item-titleist img {
  height: 26px;
}

.navbar-top .dropdown-menu .logo-item-fj.logo-item-program {
  padding-left: 0.5rem;     /* With arrow. */
}

.navbar-top .dropdown-menu .logo-item-fj img {
  height: 19px;
}

.navbar-top .dropdown-menu .logo-item-switch {
  background-color: #f5f1f1;
  padding-top: 0.5rem;          /* Less height because of 'switch to' */
  padding-bottom: 0.5rem;
}

.navbar-top .dropdown-menu .logo-item-switch:hover {
  background-color: #f8f9fa;   /* Bootstrap's hover, to see it change. */
}
.navbar-top .dropdown-menu .logo-item-switch:active {
  background-color: #38628C;  /* Switching to FJ. Change bootstrap's bright blue to FJ blue. */
}

.navbar-top .dropdown-menu .logo-item-switch span {
  font-size: 0.8rem;
  display: block;
  padding-bottom: 0.25rem;
}

.navbar-top .dropdown-menu .logo-item-program:active {
  color: #212529;
  background-color: #f8f9fa;  /* Stay on hover gray, so it doesn't look clickable. */
}


@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sticky-top {
    top: -1px;          /* Hack to avoid 1px visible content above sticky bar as page scrolls. */
  }
}

.sticky-top-in {            /* Replacing to avoid repeating: class="mb-1 bg-white border-bottom" style="box-shadow: 0px 4px 10px 0px #9B9B9B40;" */
  background-color: white;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0px 4px 10px 0px #9B9B9B40;
  margin-bottom: 30px;
}

/* Overrides */

#CookiebotWidget:not(.CookiebotWidget-open) {
  position: absolute;     /* Button at bottom of page in the footer, not floating. */
}

/* Golfer profile and trade in pages. */

.tradeInPage .faq .card-body {
  padding-top: 0;
  padding-bottom: 0;
}
.tradeInPage .faq h5 {
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0;
  padding-top: 1.375rem;
  padding-bottom: 1.375rem;
}

.tradeInPage .faq p {
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

/* SureFitHub styles, redesigned. */

body {
    font-family: "Proxima Nova", "Proxima Nova ExCn", sans-serif;
    font-size: .875rem;
}

h1, .h1 {
  font-size: 1.875rem;
}

h2, .h2 {
  font-size: 1.5rem;
}

h3, .h3 {
  font-size: 1.25rem;
}

h4, .h4 {
  font-size: 1rem;
}

.text-brand {
  color: #e31837;
}

a.brandlink {
  text-decoration: none;
  color: #e31837;
  border-bottom: 1px solid #e31837;
  border-bottom-color: rgba(227, 24, 55, 0.2);
}
a.brandlink:focus,
a.brandlink:hover {
  color: #4c4c4c;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
a.brandlink.no-border {
  border-bottom: 0;
}

/* btnLink brand colors.*/
button.brandlink {
  text-decoration: underline;
  text-decoration-color: rgba(227, 24, 55, 0.2);        /* button doesn't work with link's border-bottom approach; use text-decoration instead. */
  color: #e31837;
}
button.brandlink:focus,
button.brandlink:hover {
  color: #4c4c4c;
  text-decoration-color: rgba(0, 0, 0, 0.1);
}
button.brandlink.no-border {
  text-decoration: none;
}

/* btn brand colors (was btn-danger, btn-outline-danger). */
.btn-brand {
  color: #fff;
  background-color: #e31837;
  border-color: #e31837;
}

.btn-brand:hover {
  color: #fff;
  background-color: #d41633;        /* Use HSL from base color, then lighten each. */
  border-color: #cb1531;
}

.btn-outline-brand {
  color: #e31837;
  border-color: #e31837;
}

.btn-outline-brand:hover {
  color: #fff;
  background-color: #e31837;
  border-color: #e31837;
}

.border-brand {
  border-color: #e31837 !important;
}

.titleist-red {
  color: #e31837 !important;
}

.border-titleist-red {
  border-color: #e31837 !important;
}

.border-bottom-titleist-red {
  border-bottom-color: #e31837 !important;
}


.colon-after:after {            /* Display a colon after the content, usually for a form label. */
    content: ":";
}

.viewDetails dt, .viewDetails dd {
  margin-bottom: 0;   /* Override reboot, to use padding instead of margin, for evenly-spaced alt color rows. */
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.viewDetails dt:nth-child(4n+1), .viewDetails dt:nth-child(4n+1) + dd { /* stackoverflow.com/questions/17363164/how-could-i-alternate-background-color-between-odd-even-dd-rows/17363439#17363439 */
  background-color: #eeeeee;
}

.priceButtons {
  margin-top: 8px;          /* Top and bottom so they stay evenly spaced in mobile. Needed full desired margin on each, because margin collapse (and not worth tricks to undo it). */
  margin-bottom: 8px;
}

.priceButtons .col-form-label {
  line-height: 1.2;         /* Shorten text so it wraps mobile without adding much space below the row, to keep the price inputs spaced evenly (almost). */
}

/* Bottom-align the small custom label text. 
    stackoverflow.com/questions/45410467/how-to-align-element-to-bottom-in-a-bootstrap-column/45410856#45410856
*/

.customLabel {
  display: flex;
}

.customLabel div {
  font-size: 0.7rem;
  text-align: center;
  align-self: flex-end;
  width: 100%;
}

.smallNote {
  font-size: 0.9rem;
}

.nudgeUp {
  position: relative;
  top: -2px;
}

/* Bootstrap colors
  primary   #dc3545
  secondary #6c757d
*/

.priceButtons ::placeholder {
  color: #6c757d;
}

.btn {
  border-radius: 2rem;
  font-size: unset; /* Unset bootstrap's size, to use our body size. */
  line-height: 1.2;
  padding: 0.6em 3em 0.6em 3em;  /* Style guide used em, coming down from 0.875rem font size. */
}

.btn-sm {
  padding: 0.6em 1.5em 0.6em 1.5em;  /* Style guide used em, coming down from 0.875rem font size. Went with tighter left/right option, vs 3em. */
}

.bootstrap-select .btn {
  padding: 0.6em 1.5em 0.6em 1.5em;  /* This is the rounded dropdowns. boostrap inherits our new btn style. Use btn-sm padding, to fit text in the dropdown. */
}

/* Price inputs. Outline around text box. */

.priceInputOuter input {
  background-color: #dddddd;
  color: #6c757d;
}

/* Input box with overlay text. 
  stackoverflow.com/questions/2913236/html-text-input-field-with-currency-symbol/16611160#16611160
*/
.inputOverlay {
  border: 1px solid #6c757d;    /* secondary color. */
  padding: 0.5rem;
  position: relative;
  text-align: right;    /* Override center. */
}

.inputOverlay > span.suffix {
  display: block;
  pointer-events: none;   /* See above. */
  position: absolute;
  text-align: center;
  top: 18%;
  right: 0;
  width: 20px;
}

.inputOverlay > input {
  border: 0;
  margin-right: 10px;
  padding-left: 0;
  padding-right: 2px;
  text-align: right;
  width: 45px;
  /*width: calc(100% - 32px);*/
}

.inputOverlay > input.char6 {           /* Inputs with 6 chars, just a little wider. */
  width: 55px;
}

/* Toggle button doing collapse. stackoverflow.com/questions/16224636/twitter-bootstrap-collapse-change-display-of-toggle-button/31967516#31967516 */
[data-toggle="collapse"].collapsed .isExpanded {
  display: none;
}

[data-toggle="collapse"]:not(.collapsed) .isCollapsed {
  display: none;
}

.eventSetup1Page .row {
  margin-bottom: 0.5rem;
}

/* Fitting view */
/* Some of this is cleaning up borders inside the card layout. */
.fittingHeaderTable {
  width: auto;
}

.fittingHeaderTable td {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.fittingHeaderTable td:first-child {
  font-weight: bold;
}


.fittingLinesTable .productName {
  font-size: 1.1rem;
}

.fittingLinesTable .productImage {
  width: 100%;
}

.fittingLinesTable .productImage-sm {
  width: 60px;
}

.fittingLinesTable .customSummary {
    font-size: 0.8rem;
}

.orderedText {
  font-size: 0.8rem;
  user-select: none;      /* Avoid selecting while clicking. */
}

.qtyInSet {
  font-size: 0.8rem;
}

.fittingPage address {
  margin-bottom: 0.5rem;    /* Less than bootstrap. */
}

.fittingPage .fittingQty {
  min-width: 70px;
  text-align: right;
}

/* Steps. */
.promote li {
  line-height: 1.8;
}

.promote .btn {
  margin: 10px 0 10px 180px;
}

.summaryPricingTable {
  width: auto;
}

.summaryPricingTable td {
  border-top: 0;
  padding: 0 0.75rem 0 0;
}

.samplePrices .smallNote {
  font-size: 10px;
  line-height: 12px;
}

.pricelistPage .logoHeading {
  width: 40%;               /* Really lowering height, to stay on one page. */
}

.pricelistPage .clubDate {
  background-color: yellow;
  font-size: 1.2rem;
  padding-left: 6px;
}

/* Events, fittings, orders*/
/* TODO: wrapper class around these. */

.chkApprove {
  position: relative;
  top: 2px;
}

/* Edit prices (dev) */
.editPricesPage .row {
  margin-bottom: 12px;
}

.editPricesPage label {
  margin-top: 0.5rem;     /* Vertical align with field boxes. */
}

/* Email test. */
.emailTestPage .row {
  margin-bottom: 12px;
}

/* Collapse headings */
.collapseHeading {
  cursor: pointer;
  font-weight: 400;
  padding: 2px;
}

.collapseHeading:hover {
  background-color: rgba(0,0,0,.075);   /* mimic bootstrap table hover for default white/gray color. */
}

.collapseHeading .iconCollapsed {      /* If these icon classes are generally useful, remove the collapseHeading wrapper. */
  display: none;
}

.collapseHeading .iconOpen {
  display: inline-block;
}

.collapseHeading.collapsed .iconCollapsed {
  display: inline-block;
}

.collapseHeading.collapsed .iconOpen {
  display: none
}

/* Various pages */
.hostPage table thead th, .fitterPage table thead th  {
  color: #666666;       /* Take headings off full black, while letting them stay bold.*/
}

.hostPage h1, .fitterPage h1.scrollSection {            /* scrollSection avoids the fitterPage heading h1. */
  margin-top: 20px;
}

.hostPage .table, .fitterPage .table {
  border-bottom: 2px solid #dee2e6;
}

.hostPage .table td, .fitterPage .table td {
  vertical-align: middle;
}

.eventDetailPage .sticky-top, .hostPage .sticky-top, .fitterPage .sticky-top {
  background-color: #ffffff;            /* Simple solution to navbar overlapping content. */
  transition: all 0.25s ease-in;
}

.eventDetailPage .scrollSection {
  scroll-margin-top: 120px;
}

.hostPage .scrollSection {
  scroll-margin-top: 100px;
}

.fitterPage .scrollSection {
  scroll-margin-top: 120px;
}

.stuck header .logoText {
    display: block;
}

.eventDetailPage .navbar, .hostPage .navbar, .fitterPage .navbar {
  padding: 0;
}

.eventDetailPage .nav-item, .hostPage .nav-item, .fitterPage .nav-item {
  padding-right: 10px;
}
.eventDetailPage .nav-link.active, .hostPage .nav-link.active, .fitterPage .nav-link.active {
  border-bottom: 4px solid #000;
}

.eventDetailPage .socialIcons {
  margin-bottom: 2.6rem;            /* Aligns red buttons. */
}

.eventDetailPage .socialIcons img {
  width: 60px;
  height: 60px;
}

.eventDetailPage .emailBorder {
  cursor: pointer;
  height: 120px;
  width: 120px;
}

.golferPage .tradeInImageWrapper {      /* aspect-ratio was clean way to get div to size up to the image. Everything else is very hacky, e.g., min-height. */
  aspect-ratio: 2.5/1;
  background-image: url("/images/trade-in/trade-in-image.jpeg");
  background-size: contain;
  background-repeat: no-repeat;
  height: auto;
}

@media (min-width: 768px) {
  .golferPage .tradeInImageWrapper h4 {
    font-size: 2rem;            /* Starts small when narrow, then goes to effectively h2. */
  }
}

.colFittingLabel {
  flex: none;
  max-width: none;
  width: 140px;
}

.paymentTypes i {
  vertical-align: -0.1em;  /* Override icon alignment to move it down a little more. */
}

.validation2:has(.validation2a span) .validation2b {         /* Hide second validation error for the price cost/map pairs of boxes, when two show (they tend to be the same 'required' error). */
  display: none;
}

/* Datatables pages.
    datatables mimicked the style, instead of using bootstrap classes. */

.page-link {
    color: #dc3545;          /* Navigation Titleist red, instead of bootstrap blue.*/
}

.page-link:hover {
    color: #dc3545;
}

.page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
}

.filterDatePopup {
    background-color: white;
    border: 2px solid #666666;
    border-radius: 4px;
    padding: 20px 20px 10px 20px;
    position: absolute;
    text-align: center;
    top: 24px;
    width: 440px;
    z-index: 1;             /* Need any value to avoid heading border showing through. */
}

/* Payment Page Spinner */
.paymentPage .btn-payment {
    position: relative;    
}
.paymentPage .btn-payment:disabled {
    color: #dc3545;
}
.paymentPage .btn-payment .fa-spinner {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    font-size: 1.5rem;
    color: #fff;
}

/* Shipping Billing Details Page */
.idCheckoutShippingPage .autocomplete-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.idCheckoutShippingPage .autocomplete-dropdown li {
    list-style: none;
    padding: 0.5rem;
    cursor: pointer;
}

.idCheckoutShippingPage .autocomplete-dropdown li:hover {
    background-color: #f0f0f0;
}

/* Test pages. */
.testPage .inputAsText { /* Input box styled as text. */
    border: 0;
    width: 30%; /* Fit 3 on a line in a column. */
}

/* Customize page. */
.idCustomizeBallPage {
    position: relative;
}

.idCustomizeBallPage .spinner {
    position: absolute;
    top: 10%;
    left: 50%;
}

.idCustomizeBallPage iframe {
    background: transparent;
    z-index: 1;
    position: relative;
    top: 0;
    width: 100%;
    height: 1400px;     /* resolve cutting off issue in page bottom on double personalization */
}

/* Wedge personalize page. */
.personalizeWedgePage .toeEngravingThumb {
    height: 100px;
    width: 100px;
}


/* layout adjustment for mobile devices */
@media (max-width: 767px) {

    a.btn {                 /* this is just for a little vertical margin between the two buttons wrapped on another line in mobile view.  */
        margin-bottom: 8px;
    }
}