/* =============================================================
 * footer.css
 * Styles related to footer.php
 *
 * Extracted from style.css.
 * (account.css and pages.css contained no footer-related rules.)
 * ============================================================= */


/* -------------------------------------------------------------
 *  1. Scroll-to-top button (#go_top / .go_top)
 *     Renders in footer.php as: <a id="go_top" class="go_top"><div class="arr"></div></a>
 * ------------------------------------------------------------- */
.go_top {
  opacity: 0;
  width: 40px;
  height: 40px;
  right: 25px;
  bottom: 20px;
  display: block;
  position: fixed;
  visibility: hidden;
  border-radius: 50%;
  background-color: #D0403C;
  transform: scale(0.6) translateY(-18px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: all 0.35s ease-in-out, visibility 0.36s ease-in-out 0s;
  contain: strict;
}
.go_top:before {
  content: '';
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 1px;
  position: absolute;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
}
.go_top.pop {
  z-index: 400;
  opacity: 0.9;
  visibility: visible;
  box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.9);
  transform: scale(1.001) translateY(0px);
  transition: all 0.32s ease-in-out 0s, visibility 0s ease-in-out 0s;
}
.go_top.pop:hover {
  opacity: 1;
  box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0);
  transform: scale(0.95) translateY(3px);
}
.go_top:before,
.go_top.pop:before,
.go_top.pop:hover {
  transition: all 0.33s ease-in-out 0s;
}
.go_top.instant.pop,
.go_top.instant.pop:before {
  transition: all 0s ease-in-out 0s, visibility 0s ease-in-out 0s;
}
.go_top .arr {
  width: 100%;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 24px 24px;
  transform-origin: center;
  transform: rotate(180deg) rotate3d(1, 0, 0, 0deg);
  transition: transform 0.4s ease-in-out 0s;
}

/* go_top size override for narrower viewports
 * (extracted from inside style.css's @media max-width:1430px block) */
@media only screen and (max-width: 1430px) {
  .go_top {
    width: 34px;
    height: 34px;
    right: 16px;
    bottom: 18px;
  }
}


/* -------------------------------------------------------------
 *  2. <noscript> warning banner
 *     Renders in footer.php as: <div class="warning">...</div>
 * ------------------------------------------------------------- */
.warning {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1050;
  position: fixed;
  text-align: center;
  background-color: #AE0000;
}
.warning,
.warning a {
  padding: 0 5px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
  text-transform: uppercase;
}
.warning a {
  display: inline-block;
  background-color: #000000;
}


/* -------------------------------------------------------------
 *  3. Cart popup
 *     Renders in footer.php from <div id="cart-popup"> down,
 *     including #cartPopupContent (dynamically populated), the
 *     cart action buttons, the close button and table layout.
 * ------------------------------------------------------------- */
#continueShopping,
#proceedCheckout {
  line-height: 100%;
  margin-right: 20px;
  padding: 10px 20px;
}

#cart-popup h4,
#cartPopupContent h1 {
  border-bottom: 3px solid #94908d !important;
  font-family: "Red Hat Display", Sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #211a15;
}

#popupContent,
.cart-table {
  margin-bottom: 20px;
}

#cart-popup,
.cart-table-detail td,
table tbody > tr:nth-child(odd) > th,
table.cart-table tbody > tr:nth-child(odd) > td,
table.cart-table-detail tbody > tr:nth-child(odd) > td {
  background-color: transparent;
}

#cart-popup {
  background: #FFF;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
  padding: 60px 60px 80px;
  z-index: 1000;
  overflow-y: auto;
  max-height: 100%;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table td,
.cart-table th {
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

.quantity-controls button {
  margin: 0 3px;
  padding: 5px;
  cursor: pointer;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cart_links {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#continueShopping,
#proceedCheckout {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  margin-left: auto;
  gap: 8px;
}

.cart-actions button {
  padding: 10px 15px;
  cursor: pointer;
}

#closeCartPopup {
  position: absolute;
  top: 20px;
  right: 20px;
}

.delete-item {
  display: block;
  margin-top: 10px;
}

.cart-column-left,
.cart-table .p_counter {
  width: 60%;
}

.cart-table td {
  border: none;
  border-bottom: 1px solid #ddd;
}
.cart-table th {
  border: none;
  border-bottom: 1px solid #94908d;
  color: #707070;
  font-family: Red Hat Display;
  line-height: 100%;
}

#cart-popup h4 {
  padding-bottom: 20px;
}

#cartPopupContent thead:first-child tr:first-child th {
  border-block-start: 0px;
}

.cart-table .variation {
  display: flex;
  justify-content: left;
  align-items: left;
  text-align: left;
}

.cart-table h5 {
  font-family: Red Hat Display;
  font-weight: 500;
  font-size: 25px;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
  margin-bottom: 0;
  margin-top: 0;
}

#continueShopping,
#proceedCheckout,
.cart_links a {
  font-family: Red Hat Display;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
  display: block;
}

.cart-table h6 {
  margin-top: 0;
}

.cart-table .cart_price {
  font-family: Red Hat Display;
  font-weight: 400;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0;
  color: #211a15;
  text-align: right;
}

.button-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: 1s linear infinite spin;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin {
  0%   { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.cart_links a {
  color: #d03f3c;
  font-weight: 400;
  line-height: 28px;
  text-decoration: underline;
  text-decoration-style: solid;
}

#continueShopping {
  color: #6e615b;
  font-weight: 500;
  background-color: #ece6e2;
}
#proceedCheckout {
  color: #fff;
  font-weight: 500;
  background-color: #d03f3c;
}

/* Hover state for proceed-checkout button
 * (extracted from style.css, was located near checkout-page rules) */
#proceedCheckout:hover {
  opacity: 1;
  background-color: #7b1337;
  transition: transform .24s ease-in-out, opacity ease-in-out, background-color .22s ease-in-out .12s;
}

#cartPopupContent h1 {
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.cart-table-detail td {
  border: none;
}
.cart-table-detail {
  display: flex;
  width: 100%;
}

.cart-column {
  padding: 10px;
}
.cart-column-right {
  width: 40%;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cart-cell {
  flex: 1;
}
.cart-cell-label {
  text-align: left;
  font-weight: 700;
}
.cart-cell-value {
  text-align: right;
  font-weight: 400;
}
