/**handles:child-style**/
/*
Theme Name:   generatepress child theme
Description:  Write here a brief description about your child-theme
Author:       David Lee
Author URL:   Write here the author's blog or website url
Template:     generatepress
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  generatepress-child
*/

/* Write here your own personal stylesheet */
/** Groups general page **/

.um-profile-body.groups .ldgr-search-groups input[type="text"] {
  width: 100%;
}

.um-profile-body.groups .ldgr-group-items.list {
  border: 1px solid #e5e5e5;
  box-shadow: 4px 4px 5px 1px rgba(0, 0, 0, 0.1);
  padding-right: 20px;
}

/** Groups edit page **/
.um-profile-body.groups .ldgr-group-single .ldgr-top-banner {
  border: 1px solid #094b77;
  flex-direction: column;
}

.um-profile-body.groups .ldgr-group-single .ldgr-top-banner .ldgrs-left {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.um-profile-body.groups
  .ldgr-group-single
  .ldgr-top-banner
  .ldgr-back-to-groups {
  margin-top: 2rem;
}

.ldgr-edit-group.ldgr-edit-groups-css {
  cursor: pointer;
}

.um-profile-body.groups .tab-content {
  border: 1px solid #e5e5e5;
  box-shadow: 4px 4px 5px 1px rgba(0, 0, 0, 0.1);
  padding: 20px;
  font-size: 16px;
}

.um-profile-body.groups #wdm_group_wrapper table#wdm_group th,
#wdm_group_wrapper table#ldgr-group-code-table th {
  color: #999;
}

.um-profile-body.groups .tab-content table.dataTable thead .sorting {
  background-image: url("/wp-content/plugins/ld-group-registration/modules/media/sort_both.png");
}

.um-profile-body.groups .tab-content table.dataTable thead .sorting_asc {
  background-image: url("/wp-content/plugins/ld-group-registration/modules/media/sort_asc.png");
}

.um-profile-body.groups .tab-content table.dataTable thead .sorting_desc {
  background-image: url("/wp-content/plugins/ld-group-registration/modules/media/sort_desc.png");
}

.um-profile-body.groups #tab-2 #wdm_ldgr_group_report td {
  font-size: 12px;
  color: #999;
}

.um-profile-body.groups .learndash_profile_quizzes > .passed,
.um-profile-body.groups .learndash_profile_quizzes > .failed {
  font-size: 12px;
}

.um-profile-body.groups .tab-content table#wdm_group th,
.um-profile-body.groups .tab-content table#wdm_group td,
.um-profile-body.groups .tab-content table#ldgr-group-code-table th,
.um-profile-body.groups .tab-content table#ldgr-group-code-table td {
  color: #999;
  font-size: 12px;
  border-bottom: 1px solid #e9e9e9;
}

.um-profile-body.groups #tab-2 #wdm_ldgr_group_report td .wdm-prnt-cf {
  background: none;
  width: fit-content;
}

.um-profile-body.groups #tab-2 #wdm_ldgr_group_report td .wdm-prnt-cf::after {
  content: "Download";
  color: #000;
  font-size: 12px;
  font-weight: 700;
}

#tab-2 .wdm-select-wrapper {
  width: 100%;
  justify-content: center;
}

#wdm_ldgr_group_report_wrapper #wdm_ldgr_group_report_length {
  margin-bottom: 1rem;
}

.um-profile-body.groups #wdm_group_filter label:before {
  height: auto;
  bottom: 3px;
  align-items: flex-end;
}

.um-profile-body.groups #wdm_group_wrapper #wdm_group_length select,
.um-profile-body.groups
  #wdm_ldgr_group_report_wrapper
  #wdm_ldgr_group_report_length
  select {
  width: auto;
  height: auto;
  padding: 2px 15px 2px 5px;
}

.um-profile-body.groups
  #wdm_ldgr_group_report_wrapper
  #wdm_ldgr_group_report_length {
  margin: 14px auto;
  float: initial;
}

.um-profile-body.groups #wdm_group_wrapper #wdm_group_length {
  float: left;
}

.um-profile-body.groups #tab-2 #wdm_ldgr_group_report th {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  border-bottom: 1px solid #c4c4c4;
}

.um-profile-body.groups #wdm_group_wrapper #wdm_group_filter {
  width: 100%;
}

.um-profile-body.groups #wdm_group_wrapper #wdm_group_filter input {
  width: 100%;
}

.um-profile-body.groups #wdm_groups_tab .tabs .current a {
  border: none;
}

.um-profile-body.groups #wdm_groups_tab .tabs .current a.wdm-for-desktop {
  border-bottom: 4px solid #0d7ee7;
}
.wc-block-components-form {
  text-align: left;
}
.wc-block-components-sidebar-layout {
  text-align: left;
}

.menu-item-has-children .dropdown-menu-toggle {
  height: auto !important;
}

/* Custom CSS for LearnDash Grid */
@media only screen and (max-width: 600px) {
  .woocommerce-MyAccount-content .ld-course-list-items.row {
    display: flex !important;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
  }
}
@media only screen and (min-width: 601px) and (max-width: 1150px) {
  .ld-course-list-items.row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
#my-account-menu ~ .woocommerce-MyAccount-content {
  padding-right: 20px;
  padding-left: 20px;
}

#my-account-menu .myaccount-menu li a span.item-icon img,
#my-account-menu .myaccount-submenu li a span.item-icon img,
#my-account-menu-tab .myaccount-menu li a span.item-icon img,
#my-account-menu-tab .myaccount-submenu li a span.item-icon img {
  max-width: 20px;
  max-height: 20px;
}
.wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item__description p {
  display: none;
}

.wc-block-components-product-metadata__description {
  display: none;
}
.flexdisplay {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}
/*  .wc-menu-item .shopping-basket {
	padding-top: 20px;
  }
	*/
.woocommerce-account #my-account-menu {
  background-color: #1e73be;
}
.yith-wcmap .user-profile {
  margin-bottom: 0px;
  background-color: rgb(9, 75, 119);
  border-top-width: 5px;
  border-top-style: solid;
  border-top-color: rgb(9, 75, 119);
  border-bottom-width: 5px;
  border-bottom-style: solid;
  border-bottom-color: rgb(9, 75, 119);
  border-left-width: 5px;
  border-left-style: solid;
  border-left-color: rgb(9, 75, 119);
}
.yith-wcmap-banners-wrapper .yith-wcmap-banner {
  border-radius: 20px;
}
.yith-wcmap .user-profile .user-info .username {
  color: #ffffff;
}
.yith-wcmap .user-profile .user-info .user-email {
  color: #ffffff;
}
.woocommerce-MyAccount-content h1 {
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: rgb(9, 75, 119);
}
#my-account-menu.position-vertical-left ~ .woocommerce-MyAccount-content {
  padding-top: 50px;
}
.yith-wcmap-banners-wrapper .yith-wcmap-banner .banner-title {
  text-align: center;
  text-transform: none !important;
  padding-top: 0px;
}
.ld-quiz-question-item__status {
  display: none;
}

body.wp-login {
  background: #1e73be;
}

.wdm-tabs-wrapper ul.tabs li.tab-link {
  display: none !important;
}
.wdm-tabs-wrapper ul.tabs li.tab-link.enroll-new-user {
  display: block !important;
}

/* Step 1: Stop stacking everything */
#wc-sticky-cart-panel .inside-add-to-cart-panel {
  display: block !important;
  padding: 15px;
}

/* Step 2: Force image, title, price into one row */
#wc-sticky-cart-panel .product-title,
#wc-sticky-cart-panel .product-price {
  display: inline-block !important;
  vertical-align: middle;
}

/* Image fixed width */
#wc-sticky-cart-panel .product-image {
  vertical-align: middle;
  display: none !important; /* Hide image by default */
}

/* Title takes remaining space */
#wc-sticky-cart-panel .product-title {
  width: calc(100% - 130px); /* 50 image + 100 price + 10 gap */
  margin-left: 0px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #094b77;
}

/* Price aligns to the right */
#wc-sticky-cart-panel .product-price {
  width: 80px;
  text-align: right;
  font-size: 14px;
  color: #094b77;
}

/* Button full width below */
#wc-sticky-cart-panel form.cart {
  clear: both;
  margin-top: 15px;
  width: 100% !important;
}

#wc-sticky-cart-panel form.cart .button {
  width: 100% !important;
  font-size: 16px;
  padding: 12px 15px;
  background-color: #2a7e3f;
  color: #fff;
  border: none;
  border-radius: 4px;
}

/* Optional: shrink image size */
#wc-sticky-cart-panel .product-image img {
  height: 50px !important;
  width: auto !important;
  display: none;
}

/* Homepage Knowledge base section */

.gb-container-11a8b42c {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto 40px 200px;
  grid-template-areas:
    "header"
    "date"
    "image";
  height: 100%;
  transition: all 0.5s ease-in-out;
}
.gb-container-11a8b42c:hover {
  transform: translateY(-15px);
}

h3.gb-headline-514bb0ca {
  grid-area: header;
}
h3.gb-headline-514bb0ca a:hover {
  color: #0d7ee7;
}
p.gb-headline-4a20cc3f {
  margin-top: 5px;
  grid-area: date;
}
.gb-block-image-b5ba4d93 {
  grid-area: image;
}

/* Blog Custom CSS */

.cpd-blue-box {
  display: block;
}
.cpd-blue-box h2 {
  color: #fff;
}
.cpd-blue-box a {
  position: relative;
  text-decoration: none;
  color: #ffffff; /* your link colour */
}

.cpd-blue-box a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px; /* adjust as needed */
  width: 0;
  height: 2px;
  background-color: #ffffff; /* underline colour */
  transition: width 0.3s ease-in-out;
}

.cpd-blue-box a:hover::after {
  width: 100%;
}