/* The Five Within - classic WooCommerce cart */

body.woocommerce-cart{
  min-height:100vh;
  background:#0f0f0f;
}

body.woocommerce-cart .tfw-page{
  min-height:calc(100vh - 76px - 190px);
  padding:64px 0 88px;
  display:flex;
  align-items:flex-start;
  background:
    radial-gradient(circle at 82% 12%, rgba(194,162,93,.14), transparent 34%),
    linear-gradient(180deg, #f7f3ec 0%, #f1ece3 100%);
}

body.admin-bar.woocommerce-cart .tfw-page{
  min-height:calc(100vh - 32px - 76px - 190px);
}

body.woocommerce-cart .tfw-page__title{
  display:none;
}

body.woocommerce-cart .tfw-page .container{
  width:100%;
  max-width:none;
  padding:0 24px;
}

body.woocommerce-cart .woocommerce{
  width:min(1180px, calc(100vw - 48px));
  max-width:1180px;
  margin:0 auto;
}

body.woocommerce-cart .woocommerce-cart-form{
  float:left;
  width:calc(100% - 456px);
  padding:36px;
  border:1px solid rgba(32,28,22,.12);
  border-radius:30px;
  background:rgba(255,255,255,.68);
  box-shadow:0 22px 60px rgba(30,24,16,.08);
}

body.woocommerce-cart .cart-collaterals{
  float:right;
  width:420px;
}

body.woocommerce-cart .cart_totals{
  width:100% !important;
  padding:28px;
  position:sticky;
  top:110px;
  border:1px solid rgba(32,28,22,.12);
  border-radius:30px;
  background:rgba(255,255,255,.74);
  box-shadow:0 22px 60px rgba(30,24,16,.10);
}

body.woocommerce-cart .woocommerce::after{
  content:"";
  display:block;
  clear:both;
}

/* notices */
body.woocommerce-cart .woocommerce-notices-wrapper{
  width:min(1180px, calc(100vw - 48px));
  max-width:1180px;
  margin:0 auto 24px;
}

body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info{
  margin:0 0 18px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(194,162,93,.24);
  background:rgba(255,255,255,.72);
  color:#2a241d;
}

/* cart table */
body.woocommerce-cart table.shop_table{
  width:100%;
  border:0 !important;
  border-collapse:separate !important;
  border-spacing:0;
  margin:0 !important;
  background:transparent !important;
}

body.woocommerce-cart table.shop_table thead th{
  padding:0 0 18px !important;
  border-bottom:1px solid rgba(32,28,22,.12) !important;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#6f5d34;
  font-weight:700;
  background:transparent !important;
}

body.woocommerce-cart table.shop_table tr,
body.woocommerce-cart table.shop_table td,
body.woocommerce-cart table.shop_table th{
  background:transparent !important;
}

body.woocommerce-cart table.shop_table td{
  padding:22px 0 !important;
  border-top:0 !important;
  border-bottom:1px solid rgba(32,28,22,.10) !important;
  vertical-align:top;
}

body.woocommerce-cart table.shop_table tr:last-child td{
  border-bottom:0 !important;
}

/* product image */
body.woocommerce-cart .product-thumbnail{
  width:104px;
  padding-right:18px !important;
}

body.woocommerce-cart .product-thumbnail img{
  display:block !important;
  width:92px !important;
  height:92px !important;
  object-fit:cover;
  border-radius:18px;
  border:1px solid rgba(194,162,93,.22);
}

/* product text */
body.woocommerce-cart .product-name a{
  font-family:Georgia, "Times New Roman", serif;
  font-size:18px;
  line-height:1.25;
  color:#171513;
  text-decoration:none;
}

body.woocommerce-cart .product-name a:hover{
  color:#7a642d;
}

body.woocommerce-cart .variation,
body.woocommerce-cart .product-name p,
body.woocommerce-cart .product-name small{
  color:#5e574d;
  font-size:13px;
  line-height:1.5;
}

body.woocommerce-cart .variation{
  display:grid;
  gap:4px;
  margin-top:8px;
}

body.woocommerce-cart .variation dt,
body.woocommerce-cart .variation dd{
  display:inline;
  margin:0;
  padding:0;
}

body.woocommerce-cart .variation dt{
  font-weight:600;
  color:#6f5d34;
}

body.woocommerce-cart .variation dd{
  color:#5e574d;
}

body.woocommerce-cart .variation dd p{
  display:inline;
  margin:0;
}

/* price */
body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal{
  color:#171513;
  font-weight:650;
}

body.woocommerce-cart del{
  color:rgba(25,24,22,.45);
}

body.woocommerce-cart ins{
  text-decoration:none;
}

/* quantity */
body.woocommerce-cart .quantity{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  border:1px solid rgba(32,28,22,.16);
  border-radius:999px;
  overflow:hidden;
  background:#fffaf2;
}

body.woocommerce-cart .quantity input.qty{
  width:72px;
  height:40px;
  padding:0 8px;
  border:0;
  background:transparent;
  color:#171513;
  text-align:center;
  outline:none;
}

body.woocommerce-cart .tfw-gift-qty{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
  border-radius:999px;
  border:1px solid rgba(32,28,22,.16);
  background:#fffaf2;
  color:#171513;
}

/* remove button */
body.woocommerce-cart .product-remove{
  width:36px;
}

body.woocommerce-cart .product-remove a.remove{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#8b2f28 !important;
  background:rgba(139,47,40,.06);
  text-decoration:none;
  font-size:20px;
  line-height:1;
}

body.woocommerce-cart .product-remove a.remove:hover{
  background:rgba(139,47,40,.12);
  color:#5f1d19 !important;
}

/* actions */
body.woocommerce-cart table.shop_table td.actions{
  padding-top:24px !important;
}

body.woocommerce-cart .coupon{
  display:none !important;
}

body.woocommerce-cart button[name="update_cart"]{
  display:none !important;
}

body.woocommerce-cart .tfw-cart-updating{
  opacity:.88;
  transition:opacity .18s ease;
}

/* free gift inline */
body.woocommerce-cart .tfw-free-gift-inline{
  margin-top:12px;
  padding:14px;
  max-width:560px;
  border-radius:18px;
  border:1px solid rgba(194,162,93,.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(194,162,93,.13), transparent 34%),
    rgba(255,250,242,.72);
}

body.woocommerce-cart .tfw-free-gift-inline__note{
  margin:0 0 10px !important;
  color:#6b6257;
  font-size:12.5px !important;
  line-height:1.45 !important;
}

body.woocommerce-cart .tfw-free-gift-inline__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

body.woocommerce-cart .tfw-free-gift-inline label{
  display:block;
}

body.woocommerce-cart .tfw-free-gift-inline label span{
  display:block;
  margin-bottom:6px;
  font-size:10.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#6f5d34;
  font-weight:700;
}

body.woocommerce-cart .tfw-free-gift-inline select{
  width:100%;
  min-height:40px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(32,28,22,.16);
  background:#fffaf2;
  color:#171513;
  outline:none;
  font-size:13px;
}

body.woocommerce-cart .tfw-free-gift-inline select:focus{
  border-color:rgba(194,162,93,.72);
  box-shadow:0 0 0 3px rgba(194,162,93,.14);
}

/* totals */
body.woocommerce-cart .cart_totals h2{
  margin:0 0 24px;
  font-family:Georgia, "Times New Roman", serif;
  font-size:30px;
  line-height:1.15;
  font-weight:500;
  color:#171513;
}

body.woocommerce-cart .cart_totals table{
  border:0 !important;
  margin:0 0 24px !important;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td{
  padding:16px 0 !important;
  border-top:1px solid rgba(32,28,22,.12) !important;
  color:#171513;
  background:transparent !important;
}

body.woocommerce-cart .cart_totals th{
  font-weight:500;
  color:#5e574d;
}

body.woocommerce-cart .order-total th,
body.woocommerce-cart .order-total td{
  font-family:Georgia, "Times New Roman", serif;
  font-size:28px;
  color:#171513 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout{
  padding:0 !important;
}

body.woocommerce-cart .checkout-button{
  width:100%;
  min-height:56px;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  border-radius:999px !important;
  background:#171513 !important;
  color:#f6efe3 !important;
  border:1px solid rgba(194,162,93,.32) !important;
  font-size:15px !important;
  font-weight:650 !important;
  box-shadow:0 12px 28px rgba(23,21,19,.18);
}

body.woocommerce-cart .checkout-button:hover{
  background:#2a241d !important;
  border-color:rgba(194,162,93,.55) !important;
}

body.woocommerce-cart .cross-sells{
  display:none !important;
}

body.woocommerce-cart .site-footer{
  margin-bottom:0;
}

/* tablet */
@media (max-width:980px){
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals{
    float:none;
    width:100%;
  }

  body.woocommerce-cart .cart-collaterals{
    margin-top:24px;
  }

  body.woocommerce-cart .cart_totals{
    position:static;
  }
}

/* mobile cart card layout */
@media (max-width:768px){
  body.woocommerce-cart .tfw-page{
    padding:36px 0 60px;
  }

  body.woocommerce-cart .tfw-page .container{
    padding:0 14px;
  }

  body.woocommerce-cart .woocommerce{
    width:100%;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart_totals{
    padding:20px;
    border-radius:24px;
  }

  body.woocommerce-cart table.shop_table,
  body.woocommerce-cart table.shop_table tbody{
    display:block;
    width:100% !important;
  }

  body.woocommerce-cart table.shop_table thead{
    display:none !important;
  }

  body.woocommerce-cart table.shop_table tr.cart_item{
    position:relative;
    display:grid !important;
    grid-template-columns:92px minmax(0, 1fr);
    grid-template-areas:
      "thumb name"
      "thumb price"
      "thumb qty"
      "thumb subtotal";
    column-gap:16px;
    row-gap:8px;
    width:100% !important;
    padding:20px 44px 20px 0;
    border-bottom:1px solid rgba(32,28,22,.10);
    background:transparent !important;
  }

  body.woocommerce-cart table.shop_table tr.cart_item:nth-child(even),
  body.woocommerce-cart table.shop_table tr.cart_item:nth-child(odd){
    background:transparent !important;
  }

  body.woocommerce-cart table.shop_table tr.cart_item td{
    display:block !important;
    width:100% !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }

  body.woocommerce-cart table.shop_table tr.cart_item td::before{
    display:none !important;
    content:none !important;
  }

  body.woocommerce-cart .product-remove{
    position:absolute;
    top:18px;
    right:0;
    width:auto !important;
    z-index:5;
  }

  body.woocommerce-cart .product-thumbnail{
    grid-area:thumb;
    display:block !important;
    width:92px !important;
    padding:0 !important;
    margin:0 !important;
  }

  body.woocommerce-cart .product-thumbnail::before{
    display:none !important;
    content:none !important;
  }

  body.woocommerce-cart .product-thumbnail img{
    display:block !important;
    width:92px !important;
    height:92px !important;
    object-fit:cover;
    border-radius:16px;
  }

  body.woocommerce-cart .product-name{
    grid-area:name;
    min-width:0;
    padding-right:26px !important;
    overflow-wrap:anywhere;
  }

  body.woocommerce-cart .product-name a{
    font-size:18px;
  }

  body.woocommerce-cart .product-price{
    grid-area:price;
  }

  body.woocommerce-cart .product-quantity{
    grid-area:qty;
  }

  body.woocommerce-cart .product-subtotal{
    grid-area:subtotal;
  }

  body.woocommerce-cart .product-price,
  body.woocommerce-cart .product-quantity,
  body.woocommerce-cart .product-subtotal{
    display:flex !important;
    justify-content:space-between;
    align-items:center;
    gap:16px;
  }

  body.woocommerce-cart .product-price::before{
    content:"Price:";
    display:block !important;
    font-weight:700;
    color:#171513;
  }

  body.woocommerce-cart .product-quantity::before{
    content:"Quantity:";
    display:block !important;
    font-weight:700;
    color:#171513;
  }

  body.woocommerce-cart .product-subtotal::before{
    content:"Subtotal:";
    display:block !important;
    font-weight:700;
    color:#171513;
  }

  body.woocommerce-cart .tfw-free-gift-inline{
    max-width:100%;
    margin-top:14px;
    padding:16px;
  }

  body.woocommerce-cart .tfw-free-gift-inline__grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  body.woocommerce-cart .tfw-free-gift-inline__note,
  body.woocommerce-cart .tfw-free-gift-inline label span{
    text-align:left;
  }

  body.woocommerce-cart .cart_totals h2{
    font-size:34px;
  }

  body.woocommerce-cart .cart_totals th,
  body.woocommerce-cart .cart_totals td{
    display:table-cell !important;
    width:auto !important;
  }

  body.woocommerce-cart .cart_totals th::before,
  body.woocommerce-cart .cart_totals td::before{
    display:none !important;
    content:none !important;
  }

  body.woocommerce-cart .order-total th,
  body.woocommerce-cart .order-total td{
    font-size:25px;
  }
}

/* very narrow screens */
@media (max-width:420px){
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart_totals{
    padding:18px;
  }

  body.woocommerce-cart table.shop_table tr.cart_item{
    grid-template-columns:82px minmax(0, 1fr);
    column-gap:14px;
    padding-right:40px;
  }

  body.woocommerce-cart .product-thumbnail{
    width:82px !important;
  }

  body.woocommerce-cart .product-thumbnail img{
    width:82px !important;
    height:82px !important;
  }

  body.woocommerce-cart .product-name a{
    font-size:17px;
  }

  body.woocommerce-cart .quantity input.qty{
    width:62px;
  }
}