/* 
Theme Name: Educk Theme
Author: Jan Tuziak
Author URI: http://educk.org/#about/
Description: My theme. Do not download it. Uses Hello Elementor as template.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: hello-elementor
*/


/* This code removes the qunatity field from the Cart pages */
.woocommerce table.cart td:nth-of-type(5), .woocommerce table.cart th:nth-of-type(5),
.woocommerce table.cart td:nth-of-type(6), .woocommerce table.cart th:nth-of-type(6) {
   display: none;
}

/* Underline links on checkout page */
form.woocommerce-checkout a{
   text-decoration: underline;
}

/* Remove Returning Customer section from Checkout page until the Cloudflar Turnstile issue is solved:
ttps://wordpress.org/support/topic/not-showing-for-elementor-checkout-returning-customers/ */
.e-woocommerce-login-section {
   display: none !important;
}

/* Fix the spacing on LearnDash's Lesson List */
.ld-item-list-item .ld-item-list-item-preview .ld-item-name .ld-status-icon {
   margin-top: 0px !important;
}

/* Seperate VAT invoice fields from required fields on Checkout page */
.top-border {
   border-top: 1px #DADADA solid;
   margin-top: 50px !important;
   padding-top: 30px !important;
}

/* Fix selector height (eg. Country selector) on checkout page */
.woocommerce-billing-fields__field-wrapper .select2-container .selection .select2-selection {
   height: 58px !important;
}
.select2-selection__arrow {
   height: 56px !important;
}

/* Hide "edit profile" link on My Account page */
.ld-profile-summary .ld-profile-edit-link {
   display: none;
}

/* Make current lesson title yellow, when user is in focus mode (going through the course */
.learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-title {
   color: #ffc818 !important;
}

/* Hide the `(optional)` labels next to optional fields */
.woocommerce form .woocommerce-billing-fields .form-row .optional {
   display: none;
}

/* Make the VAT Invoice more noticeable */
#checkbox_vat_invoice {
   height: 80px;
}

/* 
 * 
 * CookieConsent forced styling
 *
 */
h2#c-ttl, h2#s-ttl {
   margin-top: -.15em !important;
   font-size: 1.05em !important;
   margin-bottom: .7em !important;
   font-weight: 600 !important;
   color: inherit !important;
   line-height: 1.2 !important;
   font-family: inherit !important;
}

.cc_div .cc-link {
    border-bottom: 1px solid var(--cc-btn-primary-bg) !important;
    color: var(--cc-btn-primary-bg) !important;
    cursor: pointer !important;
    display: inline !important;
    font-weight: 600 !important;
    padding-bottom: 0 !important;
    text-decoration: none !important;
   font-size: 1em !important;
   background: none !important;
   border: none !important;
   border-radius: unset !important;
   line-height: 1.2 !important;
   font-family: inherit !important;
}

.cc_div a, .cc_div a:hover {
   color: inherit !important;
    font-size: 1em !important;
   font-family: inherit !important;
   line-height: 1.2 !important;
}

#cc_div button, #cc_div button:hover {
    border-radius: var(--cc-btn-border-radius);
   line-height: 1.2 !important;
   font-family: inherit !important;
   color: inherit;
}

#cc_div .b-tg {
   font-size: 1em !important;
} 

#cc_div .c-tgl {
   border-radius: 4em !important;
   background-color: initial !important;
   border-style: none !important;
} 
/* 
 * 
 * End of CookieConsent forced styling
 *
 */


/* Making the Comment Section always always visible */
.learndash-wrapper .ld-focus-comments #ld-comments-form.ld-collapsed, .learndash-wrapper .ld-focus-comments #ld-comments-post-button.ld-open {
  display: inline !important;
}

.ld-focus-comments .ld-expand-button {
  display: none !important;
}

.ld-profile__saved-cards {
  display: none;
}

/* Remove the "Komentarz" label above the comment field */
.ld-focus-comments__form-container label[for="comment"],
.ld-focus-comments__form-container .required-field-message {
  display: none;
}

/* Remove margins around price on the floating bubble */
#floating-price .price {
   margin: 0;
}


/* Global focus-visible outline (a11y) */
:focus-visible {
  outline: 1px solid #FFC818 !important; /* primary */
  outline-offset: 0px !important;
}

/* Usuń domyślny focus tam, gdzie nie focus-visible */
:focus:not(:focus-visible) {
  outline: none !important;
}
