/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

.bypostauthor {
  display: block;
}

/* Auto renew toggle for my account page */

.box-with-icon .featured-boxes .featured-box .box-content h4 {
  text-transform: capitalize;
  font-weight: 600;
}
.toggle-container {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-color: #999;
  background-color: #999;
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  /* background-color: #2196f3; */
  background-color: rgb(139, 198, 63);
  border-color: rgb(139, 198, 63);
}

input:checked + .slider:before {
  transform: translateX(12px);
}

.toggle-label {
  margin-right: 15px;
  font-size: inherit;
}

.auto-renew-message {
  display: none;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 14px;
}

.message-success {
  color: #8bc63f;
  font-size: inherit;
  font-weight: bold;
  margin: 0 20px;
}

.message-error {
  color: #721c24;
  font-size: inherit;
  font-weight: bold;
  margin: 0 20px;
}

/* My account page */

.shop_table
  .order-actions.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions
  .woocommerce-button {
  margin: auto 10px;
}

.box-with-icon .account-description p {
  color: #000;
  font-family: inherit;
  font-size: 12px;
  padding: 0px 5px;
}

.box-with-icon .row {
  --bs-gutter-x: 10px;
}

p.mb-4.cfm-accountant-intro-text {
  border: 1px solid #8cc63f;
  border-radius: 5px;
  padding: 15px;
}

/* shop page */
.post-type-archive-product ul.products:not(.owl-carousel) {
  gap: 10px;
  margin-left: 0;
  margin-right: 0;
}

.post-type-archive-product .row > * {
  padding-left: 0;
  padding-right: 0;
}

.post-type-archive-product li.product-col {
  border: 2px solid #ccc;
  padding: 0 !important;
  width: calc(33.33% - 10px) !important;
}
.post-type-archive-product .product-inner {
  border-width: 100%;
  padding: 10px;
}
.post-type-archive-product li.post-7230 .product-inner {
  border-top: 10px solid #1a3d53;
}
.post-type-archive-product li.post-42 .product-inner {
  border-top: 10px solid #7b9056;
}
.post-type-archive-product li.post-38 .product-inner {
  border-top: 10px solid #1992d2;
}
.post-type-archive-product li.post-44 .product-inner {
  border-top: 10px solid #a78a3e;
}
.post-type-archive-product li.post-11000 .product-inner {
  border-top: 10px solid #f7a749;
}
.post-type-archive-product li.post-102 .product-inner {
  border-top: 10px solid #f7a64a;
}
.post-type-archive-product
  li.product-col
  .product-inner
  .product-loop-title
  h3 {
  font-size: 16px;
  font-weight: 600;
}
.post-type-archive-product li.post-7230 .product-inner .product-loop-title h3 {
  color: #1a3d53;
}
.post-type-archive-product li.post-38 .product-inner .product-loop-title h3 {
  color: #1992d2;
}
.post-type-archive-product li.post-44 .product-inner .product-loop-title h3 {
  color: #a78a3e;
}
.post-type-archive-product li.product-col .add-links {
  text-align: center;
  flex-direction: column;
  border-radius: 5px;
}
.post-type-archive-product li.product-col.post-7230 .add-links {
  border: 2px solid #8bc63f;
  border-radius: 5px;
}
/* .post-type-archive-product li.product-col.post-42 .add-links {
    border: none;
} */
.post-type-archive-product li.product-col .add-links {
  border: 2px solid #000;
  border-radius: 5px;
}
.post-type-archive-product li.product-col.post-7230 .add-links:hover {
  border: 2px solid #8bc63f;
}
/* .post-type-archive-product li.product-col:not(.post-42) .add-links .add_to_cart_button { */
.post-type-archive-product li.product-col .add-links .add_to_cart_button {
  background: transparent;
}
.post-type-archive-product li.product-col .add-links .add_to_cart_button:active,
.post-type-archive-product li.product-col .add-links .add_to_cart_button:focus {
  color: #000;
}

.post-type-archive-product
  li.product-col.post-7230
  .add-links
  .add_to_cart_read_more {
  background: transparent;
}
.post-type-archive-product
  li.product-col.post-7230
  .add-links
  .add_to_cart_read_more:active,
.post-type-archive-product
  li.product-col.post-7230
  .add-links
  .add_to_cart_read_more:focus {
  color: #000;
}

/* .post-type-archive-product li.product-col:not(.post-42) .add-links .add_to_cart_button:hover { */
.post-type-archive-product li.product-col .add-links .add_to_cart_button:hover {
  background: #000;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit;
  font-weight: 700;
}
.post-type-archive-product
  li.product-col.post-7230
  .add-links
  .add_to_cart_button:hover {
  background: #8bc63f;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit;
  font-weight: 700;
}
.post-type-archive-product
  li.product-col.post-7230
  .add-links
  .add_to_cart_read_more:hover {
  background: #8bc63f;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit;
  font-weight: 700;
}
.post-type-archive-product li.product-col .product-content span.price {
  display: inline-grid;
  line-height: 30px;
}
.post-type-archive-product
  li.product-col
  .product-content
  span.price
  span.from {
  display: none;
}
.post-type-archive-product
  li.product-col
  .product-content
  span.price
  span.woocommerce-Price-amount.amount {
  font-size: 28px;
  font-weight: 700;
  color: #000;
}
.post-type-archive-product
  li.product-col
  .product-content
  span.price
  span.subscription-details {
  font-size: inherit;
}
.woocommerce-customer-details .button.register-new-client {
  background: #8bc63f;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}
.woocommerce-customer-details .button.register-new-client:hover {
  background: #f4f4f4;
  color: #000;
}
.checkout-message {
  padding: 0;
}
#customer_details .shipping_address .form-row-first {
  width: 100%;
  padding: 0;
}
#customer_details .shipping_address .form-row-last {
  width: 100%;
  padding: 0;
}

.woocommerce-checkout-payment .auto-renew-toggle {
  display: inline-flex;
  flex-direction: initial;
  gap: 15px;
  line-height: 20px;
}

.product-type-simple .add-links .add_to_cart_button:hover::before {
  margin-left: 10px;
}
.woocommerce-checkout-review-order .row .col-lg-6:not(.col-lg-6.cfm-review) {
  display: grid;
}
.woocommerce-checkout-review-order
  .row
  .col-lg-6
  .woocommerce-checkout-payment {
  order: 2;
}
.woocommerce-checkout-review-order .row .col-lg-6 .checkout-discount-sidebar {
  order: 1;
}
.woocommerce-checkout-review-order
  .row
  .col-lg-6
  .checkout-discount-sidebar
  .checkout-coupon-sidebar
  #panel-cart-discount {
  padding: 0;
}
.woocommerce-orders-table__cell-order-actions .wc-action-btn.invoice {
  margin-left: 10px;
}
.woocommerce-orders-table__cell-order-actions .wc-action-btn.view {
  margin-left: 10px;
}
.woocommerce-orders-table__cell-order-actions .wc-action-btn.pay {
  margin-left: 10px;
}

/* cart header */

#header .header-main #main-menu {
  display: flex;
  align-items: center;
  justify-content: end;
}
.header-cart {
  display: flex;
  align-items: center;
  position: relative;
}

.cart-icon {
  font-size: 22px;
  color: #333;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon i {
  font-size: 22px;
}

.cart-count {
    position: absolute;
    top: -14px;
    right: -12px;
    background: #8fbe43;
    color: white;
    font-size: 12px;
    padding: 0px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Order again buton */
p.order-again {
  display: none !important;
}

#nav-panel .accordion-menu li.menu-item.active > a {
  background-color: #8bc63f !important;
}

/* datatable sort filter dropdown */
@media (min-width: 992px) {
  .subs_filter {
    position: absolute;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    right: 50%;
  }
}

@media (max-width: 991px) {
  .subs_filter {
    position: absolute;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    right: auto; /* Automatically adjust the right property for smaller screens */
  }
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1169) {
  .post-type-archive-product li.product-col {
    width: calc(33.33% - 10px) !important;
  }
}
@media screen and (max-width: 768px) {
  .u-columns.woocommerce-Addresses.col2-set.addresses .col-6 {
    width: 100%;
    padding: 15px;
  }
  .page-header-5 h1.page-title {
    margin-right: 15px;
  }
  #header .header-main #main-menu {
    display: inline-block;
  }
  #main-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  #menu-main-menu {
    flex-direction: column;
    width: 100%;
  }

  #menu-main-menu li {
    margin-right: 0;
    width: 100%;
  }

  .header-cart {
    margin-top: 10px;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    #header .header-main #main-menu {
        display: inline-block;
        width: auto; /* Ensure it doesn't take full width */
        text-align: left; /* Adjust alignment if needed */
    }

    #menu-main-menu {
        display: inline-block;
        vertical-align: middle;
    }

    .header-cart {
        display: inline-block;
        vertical-align: middle;
        margin-left: 15px; /* Adjust spacing from menu */
    }
}



@media (max-width: 767px) {
  .post-type-archive-product li.product-col {
    width: calc(33.33% - 10px) !important;
  }
  #mainTable_wrapper {
    margin-top: 60px;
  }
  #mainTable_wrapper .row:first-child {
    display: flex;
  }
  #mainTable_wrapper .row:first-child .col-sm-12.col-md-6 {
    width: 50%;
  }
}
@media (min-width: 767px) and (max-width: 991px) {
  #mainTable_wrapper {
    margin-top: 60px;
  }
  #mainTable_wrapper .row:first-child {
    display: flex;
  }
  #mainTable_wrapper .row:first-child .col-sm-12.col-md-6 {
    width: 50%;
  }
}

@media (max-width: 575px) {
  .post-type-archive-product li.product-col {
    width: calc(50% - 10px) !important;
  }
  .post-type-archive-product li.product-col .add-links .button {
    text-indent: 0;
    overflow: visible;
  }
}

@media (max-width: 992px) and (min-width: 767px) {
  .post-type-archive-product
    li.product-col
    .product-content
    span.price
    span.woocommerce-Price-amount.amount {
    font-size: 24px;
    font-weight: 600;
    line-height: 18px;
  }
}

/* For screens between 540px and 767px */
@media (max-width: 767px) and (min-width: 540px) {
  .post-type-archive-product
    li.product-col
    .product-content
    span.price
    span.woocommerce-Price-amount.amount {
    font-size: 20px;
    font-weight: 500;
    line-height: 18px;
  }
}

/* For screens under 540px */
@media (max-width: 540px) {
  .post-type-archive-product
    li.product-col
    .product-content
    span.price
    span.woocommerce-Price-amount.amount {
    font-size: 18px;
    line-height: 15px;
    font-weight: normal;
  }
}
