/* ==========================================================================
   R&M Baits - custom overrides
   Loaded LAST, after Journal2 dynamic CSS (index.php?route=journal2/assets/css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Mobile header: search + cart must be visible and readable

   Journal2 currently outputs, for phones:
       .journal-search { display: none }  #search { display: none }
   (Journal admin -> Header -> Search -> "Hide On Phone")
   and the phone header uses a light background while the search input text,
   the search icon and the cart text are all white -> invisible.
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 760px) {

  /* --- search ------------------------------------------------------------ */
  .journal-search,
  #search {
    display: block !important;
  }

  
  .journal-header-center .journal-search,
  .journal-header-default .journal-search,
  .journal-header-mega .journal-search {
    height: auto !important;
    padding: 8px 10px !important;
    clear: both;
  }

  #search,
  .journal-header-mega #search {
    position: relative;
    left: 0;
    width: 100%;
    max-width: 100%;
  }

  #search input,
  .center-header #search input,
  .default-header #search input,
  .journal-header-center #search input {
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding-right: 54px;
    color: #2a2b2e !important;
    background-color: #fff !important;
    border: 1px solid #d5d5d5 !important;
  }

  #search input::-webkit-input-placeholder { color: #8a8a8a !important; }
  #search input::-moz-placeholder          { color: #8a8a8a !important; }
  #search input:-ms-input-placeholder      { color: #8a8a8a !important; }

  .button-search {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 44px;
    border: 0 !important;
    background-color: #cc0000 !important;
  }

  .button-search button {
    width: 50px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .button-search i:before,
  .button-search:hover i:before {
    color: #fff !important;
    font-size: 20px;
  }

  /* --- cart --------------------------------------------------------------
     The phone header bar is light (#fafafa) but Journal paints the cart
     total and the bag icon white, so they disappear. Match the dark grey
     already used by the "Menu" trigger next to it. */
  #cart .heading,
  .ie9 #cart button.heading,
  #cart .heading a,
  #cart .heading a span,
  #cart-total {
    color: #2a2b2e !important;
  }

  #cart .heading i:before,
  #cart .heading:hover i:before,
  .firefox #cart .heading:hover i::before {
    color: #2a2b2e !important;
  }

  #cart .heading i {
    background-color: transparent !important;
  }
}

/* --------------------------------------------------------------------------
   5. Contact page - mobile layout
   pages.css forces `.contact-page .panel-body .col-sm-3{float:left;min-width:25%}`
   at every width, so the blocks collide on phones.
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 760px) {
  .contact-page .panel-body .col-sm-3 {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    display: block;
    margin-bottom: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  .contact-page .panel-body .col-sm-3:empty {
    display: none;
  }

  .contact-page .panel-body .col-sm-3 > strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
  }

  .contact-page .panel-body address {
    margin-bottom: 10px;
  }

  .contact-page .panel-body .btn-info {
    margin-top: 6px;
  }

  .contact-page .form-horizontal .control-label {
    text-align: left;
    padding-left: 0;
  }

  .contact-page .g-recaptcha {
    -webkit-transform: scale(0.86);
    transform: scale(0.86);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}

/* --------------------------------------------------------------------------
   3. Login / Register page polish
   -------------------------------------------------------------------------- */
.login-content .well {
  height: 100%;
}

.login-content .secondary-title {
  margin-bottom: 12px;
}

.login-content .login-wrap p {
  margin-bottom: 12px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   6. Customer reviews block
   -------------------------------------------------------------------------- */
.customer-reviews {
  clear: both;
  margin: 30px 0;
  padding: 25px 20px;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 3px;
  text-align: center;
  color: inherit;
}

/* Journal2 paints form labels black (`.oc2 .required label{color:#000}`),
   which is unreadable on this store's dark background. Inherit the page
   text colour instead, so the block works on a light or a dark skin. */
.customer-reviews label,
.customer-reviews .control-label,
.oc2 .customer-reviews .required label,
.oc2 .customer-reviews .form-group label {
  color: inherit !important;
}

.customer-reviews .help-block {
  color: inherit;
  opacity: 0.7;
}

.customer-reviews-title {
  margin-bottom: 15px;
}

.customer-reviews-summary {
  margin-bottom: 10px;
}

.customer-reviews-stars {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.customer-reviews-stars .fa-star,
.customer-reviews-stars .fa-star-o,
.review-item-stars .fa-star,
.review-item-stars .fa-star-o,
#review .review-item-stars .fa-star,
#review .review-item-stars .fa-star-o {
  color: #f1c40f;
}

.customer-reviews-count {
  margin-bottom: 18px;
  font-size: 15px;
  color: inherit;
  opacity: 0.8;
}

.customer-reviews-write {
  min-width: 220px;
}

/* review form is collapsed until "Write a review" is pressed */
.customer-reviews-form {
  display: none;
  max-width: 640px;
  margin: 25px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
  text-align: left;
}

.customer-reviews-form.is-open {
  display: block;
}

.customer-reviews-form .form-group > div {
  padding-left: 0;
  padding-right: 0;
}

.customer-reviews-rating-input {
  display: inline-block;
  margin-left: 10px;
}

.customer-reviews-rating-input input[type="radio"] {
  margin: 0 4px;
  vertical-align: middle;
}

/* Journal2 paints the review list container black
   (`#review, #tab-review b, #tab-review span { color: rgb(0,0,0) }`),
   which would make every posted review invisible on the dark background. */
#review,
#review b,
#review span,
#review p,
.customer-reviews-list,
.customer-reviews-list * {
  color: inherit;
}

.customer-reviews-list {
  text-align: left;
}

.customer-reviews-list:empty {
  display: none;
}

.review-items {
  margin-top: 20px;
}

.review-item {
  padding: 15px 0;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
}

.review-item-head {
  margin-bottom: 5px;
}

.review-item-author {
  font-weight: 700;
}

.review-item-date {
  float: right;
  color: inherit;
  opacity: 0.65;
  font-size: 13px;
}

.review-item-stars {
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.review-item-text {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.review-pagination {
  margin-top: 15px;
}

.review-pagination .pagination {
  margin: 0;
}

@media only screen and (max-width: 760px) {
  .customer-reviews {
    padding: 20px 12px;
  }

  .customer-reviews-write {
    width: 100%;
    min-width: 0;
  }

  .review-item-date {
    float: none;
    display: block;
  }
}
