/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Login form ([basic_login_form]) */
.basic-login-form form p { margin-bottom: 15px; }
.basic-login-form label { display: block; margin-bottom: 5px; }
.basic-login-form input[type="text"],
.basic-login-form input[type="password"] {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid var(--basic-brown);
  background: #fff;
}
.basic-login-form .login-remember label { display: inline; }
.basic-login-form input[type="submit"] {
  background-color: #d6dda6;
  color: #000;
  border: 0;
  padding: 10px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.basic-login-form input[type="submit"]:hover { background-color: var(--basic-green); }

/* WooCommerce (carried over from the Divi custom CSS) */
.brxe-sidebar .bricks-widget-title,
.widgettitle {
  font-weight: 600;
  text-transform: uppercase;
}
.brxe-sidebar .widget { margin-bottom: 20px; }
.current-cat { font-weight: 700; }

.yith-wcqv-button {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  background-color: #d4dda4 !important;
  border: 0 !important;
  color: #000 !important;
  font-size: 1em !important;
  font-weight: 600;
  text-align: center !important;
  text-transform: uppercase;
}
#yith-quick-view-close { color: #000; }

.single_add_to_cart_button,
.wp-element-button,
.wc-block-cart__submit-button {
  background-color: #d4dda4 !important;
  border: 0 !important;
  color: #000 !important;
}
.single_add_to_cart_button {
  padding: 14px 24px 15px !important;
  font-size: 1em !important;
  font-weight: 600;
  text-transform: uppercase;
}

p.price { color: #000 !important; margin-bottom: 10px; }

/* Cart (classic WooCommerce look from the old Divi shop) */
.basic-checkout .blpt-cart-heading,
.basic-cart .blpt-cart-heading {
  margin: 0;
  color: var(--basic-dark);
  font-size: 36px;
  font-weight: 400;
}
.basic-cart table.shop_table.cart {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  box-shadow: none;
}
.basic-cart table.shop_table.cart th,
.basic-cart table.shop_table.cart td {
  padding: 18px 20px;
  border-top: 1px solid #eee;
  color: var(--basic-text);
  vertical-align: middle;
  text-align: left;
}
.basic-cart table.shop_table.cart thead { display: none; }
.basic-cart table.shop_table.cart tbody tr:first-child > * { border-top: 0; }
.basic-cart table.shop_table.cart .product-remove { width: 40px; }
.basic-cart table.shop_table.cart a.remove {
  color: #e2401c !important;
  background: none;
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.basic-cart table.shop_table.cart a.remove:hover { color: #b7310f !important; }
.basic-cart table.shop_table.cart .product-thumbnail { width: 70px; }
.basic-cart table.shop_table.cart .product-thumbnail img { width: 40px; height: auto; }
.basic-cart table.shop_table.cart .product-name { font-weight: 400; }
.basic-cart table.shop_table.cart .product-name > a { color: var(--basic-brown); }
.basic-cart table.shop_table.cart dl.variation {
  display: block;
  margin: 4px 0 0;
}
.basic-cart table.shop_table.cart dl.variation dt {
  float: left;
  clear: left;
  margin: 0 4px 0 0;
  font-weight: 700;
}
.basic-cart table.shop_table.cart dl.variation dd,
.basic-cart table.shop_table.cart dl.variation dd p { margin: 0; }
.basic-cart table.shop_table.cart .product-quantity { width: 120px; }
.basic-cart table.shop_table.cart .quantity {
  display: block;
  width: 80px !important;
  margin: 0;
}
.basic-cart table.shop_table.cart .quantity .action { display: none; }
.basic-cart table.shop_table.cart input.qty {
  width: 80px !important;
  height: 72px;
  padding: 0 12px;
  border: 0;
  background: #eee;
  color: #999;
  text-align: left;
}
.basic-cart table.shop_table.cart td.actions { text-align: right; }
.basic-cart table.shop_table.cart td.actions .coupon {
  float: left;
  display: flex;
  gap: 10px;
  align-items: center;
}
.basic-cart table.shop_table.cart td.actions .coupon label { display: none; }
/* Value code field only for Værdikode; the heading's data-type comes from the purchase type plugin */
.basic-cart:has(.blpt-type-label[data-type="afdelingskoeb"]) table.shop_table.cart td.actions .coupon,
.basic-cart:has(.blpt-type-label[data-type="privatkoeb"]) table.shop_table.cart td.actions .coupon { display: none; }
.basic-cart table.shop_table.cart td.actions input#coupon_code {
  padding: 10px 12px;
  border: 0;
  background: #eee;
}
.basic-cart table.shop_table.cart td.actions .button {
  padding: 8px 24px;
  border: 2px solid #ccc;
  border-radius: 3px;
  background: transparent;
  color: #999;
  font-size: 20px;
  cursor: pointer;
}
.basic-cart table.shop_table.cart td.actions .button:hover:not(:disabled) {
  border-color: var(--basic-brown);
  color: var(--basic-brown);
}
.basic-cart table.shop_table.cart td.actions .button:disabled { opacity: .6; cursor: default; }
.basic-cart table.shop_table.cart td.actions {
  padding: 20px 0 0;
  border-top: 0;
  background: #fff;
}

/* Cart totals + buttons (right column, also when there are no cross-sells to the left) */
.basic-cart-totals { grid-column: 2; }
@media (max-width: 991px) {
  .basic-cart-totals { grid-column: 1; }
}
.basic-cart-totals .cart_totals { width: 100%; float: none; }
.basic-cart-totals .cart_totals .woocommerce-shipping-methods .amount { font-weight: 700; color: var(--basic-dark); }
.basic-cart-totals .cart_totals .woocommerce-shipping-methods label { color: var(--basic-text); }
.basic-cart-totals .cart_totals h2 {
  margin: 0 0 20px;
  color: var(--basic-dark);
  font-size: 26px;
  font-weight: 500;
}
.basic-cart-totals .cart_totals table.shop_table {
  width: 100%;
  border: 1px solid #eee;
  border-collapse: collapse;
}
.basic-cart-totals .cart_totals table.shop_table th,
.basic-cart-totals .cart_totals table.shop_table td {
  padding: 14px 16px;
  border-top: 1px solid #eee;
  color: var(--basic-text);
  vertical-align: middle;
  text-align: left;
}
.basic-cart-totals .cart_totals table.shop_table th { width: 50%; font-weight: 700; }
.basic-cart-totals .cart_totals table.shop_table td p,
.basic-cart-totals .cart_totals .woocommerce-shipping-destination { margin: 0 0 8px; }
.basic-cart-totals .cart_totals .woocommerce-shipping-methods { margin: 0 0 8px; padding: 0; list-style: none; }
.basic-cart-totals .wc-proceed-to-checkout { padding: 0; margin-top: 40px; }
.basic-cart-totals .wc-proceed-to-checkout a.checkout-button,
.basic-cart-totals a.basic-cart-back,
a.brxe-button.basic-cart-back {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background-color: #d4dda4 !important;
  color: #000 !important;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.basic-cart-totals a.basic-cart-back,
a.brxe-button.basic-cart-back { color: var(--basic-brown) !important; }
.basic-cart-totals .wc-proceed-to-checkout a.checkout-button:hover,
.basic-cart-totals a.basic-cart-back:hover,
a.brxe-button.basic-cart-back:hover { filter: brightness(0.95); }
/* Empty cart: the same green button, at the width of the cart's right column */
#brxe-ceback { width: auto; min-width: 320px; align-self: flex-start; }
#brxe-cetext { margin: 0; font-size: 18px; }

/* WooCommerce notices ("… fjernet. Fortryd?" etc.): no focus frame, readable button in the site's colours */
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-notices-wrapper:focus { outline: none; }
.woocommerce-message a.button,
.woocommerce-message a.restore-item,
.woocommerce-info a.button,
.woocommerce-error a.button {
  background-color: var(--basic-brown) !important;
  color: #fff !important;
  border-radius: 0;
  text-decoration: none;
}
.woocommerce-message a.restore-item { padding: 8px 18px; display: inline-block; }
.woocommerce-message a.button:hover,
.woocommerce-message a.restore-item:hover { filter: brightness(1.1); }
@media (max-width: 478px) {
  #brxe-ceback { min-width: 0; width: 100%; }
}

@media (max-width: 767px) {
  .basic-cart .blpt-cart-heading { font-size: 28px; }
  .basic-cart table.shop_table.cart td.actions .coupon { float: none; margin-bottom: 12px; }
}
.posted_in a { color: var(--basic-text); }
/* Checkout ("Kasse – Afdelingskøb" design) */
.basic-checkout h3 {
  margin: 0 0 16px;
  color: var(--basic-dark);
  font-size: 28px;
  font-weight: 600;
}
.basic-checkout .woocommerce-billing-fields > h3,
.basic-checkout #order_review_heading { font-size: 30px; }
.basic-checkout #ship-to-different-address {
  margin: 24px 0 12px;
  font-size: 20px;
}
.basic-checkout #ship-to-different-address label { font-weight: 600; }

/* Købstype box */
.basic-checkout .blpt-wrapper {
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #f5f5f5;
}
.basic-checkout .blpt-wrapper h3 { font-size: 22px; }

/* Fields */
.basic-checkout .form-row { margin: 0 0 20px; }
.basic-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--basic-text);
  font-weight: 400;
}
.basic-checkout .form-row .required { color: #e2401c; text-decoration: none; }
.basic-checkout .form-row-first,
.basic-checkout .form-row-last { width: calc(50% - 20px); }
.basic-checkout .form-row-first { float: left; }
.basic-checkout .form-row-last { float: right; }
.basic-checkout .form-row-wide { clear: both; }
.basic-checkout input.input-text,
.basic-checkout textarea.input-text {
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #eee;
  color: var(--basic-dark);
}
.basic-checkout textarea.input-text { min-height: 150px; padding: 16px; }
.basic-checkout select,
.basic-checkout .select2-container .select2-selection--single {
  min-height: 44px;
  border: 1px solid #999;
  border-radius: 3px;
  background: #fff;
}

/* Order column */
.basic-checkout table.woocommerce-checkout-review-order-table {
  width: 100%;
  border: 1px solid #eee;
  border-collapse: collapse;
}
.basic-checkout table.woocommerce-checkout-review-order-table th,
.basic-checkout table.woocommerce-checkout-review-order-table td {
  padding: 14px 16px;
  border-top: 1px solid #eee;
  color: var(--basic-text);
  text-align: left;
  vertical-align: middle;
}
.basic-checkout table.woocommerce-checkout-review-order-table th { font-weight: 700; }
.basic-checkout table.woocommerce-checkout-review-order-table dl.variation dt {
  float: left;
  clear: left;
  margin: 0 4px 0 0;
  font-weight: 700;
}
.basic-checkout table.woocommerce-checkout-review-order-table dl.variation dd,
.basic-checkout table.woocommerce-checkout-review-order-table dl.variation dd p { margin: 0; }
.basic-checkout .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }

.basic-checkout #blpt-order-notes { margin: 30px 0 0; }
.basic-checkout #blpt-order-notes label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.basic-checkout #blpt-order-notes textarea::placeholder { color: var(--basic-dark); opacity: 1; }

.basic-checkout #payment {
  margin-top: 20px;
  padding: 24px;
  border-radius: 0;
  background: #eee;
}
.basic-checkout #payment ul.payment_methods { margin: 0 0 16px; padding: 0; border: 0; list-style: none; }
.basic-checkout #payment .payment_box { background: transparent; padding: 8px 0; }
.basic-checkout #payment .place-order { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding: 0; }
.basic-checkout #payment .woocommerce-privacy-policy-text { align-self: stretch; color: var(--basic-text); }
.basic-checkout #payment #place_order {
  padding: 10px 24px;
  border: 0;
  border-radius: 0;
  background-color: #d4dda4 !important;
  color: #000 !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.basic-checkout #payment #place_order:hover { filter: brightness(0.95); }

/* No coupon (værdikode) for Afdelingskøb, as in the cart */
body:has(.basic-checkout .blpt-type-label[data-type="afdelingskoeb"]) .woocommerce-form-coupon-toggle,
body:has(.basic-checkout .blpt-type-label[data-type="afdelingskoeb"]) form.checkout_coupon { display: none !important; }

@media (max-width: 767px) {
  .basic-checkout .form-row-first,
  .basic-checkout .form-row-last { width: 100%; float: none; }
}
