/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.8
*/

.woocommerce {
  font-family: "Cormorant", serif;
  font-size: 1.15rem;
}

.header-shop-nav {
  position: absolute;
  top: 35px;
  right: 35px;
  display: flex;
  gap: 15px;
  z-index: 9;
}

.site-header__element {
  display: block;
}

.site-header__element .site-header__element-icon {
  position: relative;
}

.site-header__element .site-header__element-icon:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  mask-size: contain;
  mask-repeat: no-repeat;
  background-color: #fff;
}

.site-header__element .site-header__element-icon:before {
  mask-image: url("assets/account.svg");
}

.site-header__element-basket .site-header__element-icon:before {
  mask-image: url("assets/basket.svg");
}

#menuhopin .site-header__element .site-header__element-icon:before {
  background-color: #000;
}

.site-header__basket-count {
  color: #fff;
}

.shop-hero {
  background-size: cover;
  background-position: center;
  padding: 20px;
  text-align: center;
  position: relative;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shop-hero h1 {
  color: #fff;
  display: inline-block;
  margin: 0;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px;
}

.shop-toolbar-title {
  color: var(--color-base-black, #000);
  text-align: center;
  font-family: Cormorant;
  font-size: var(--font-size-base, 18px);
  font-style: normal;
  font-weight: 700;
  line-height: var(--font-line-height-6, 24px);
  /* 150% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.shop-columns {
  display: flex;
  gap: 64px;
}

/* Ukryty sidebar - tylko 3 produkty w sklepie */
.shop-sidebar {
  display: none;
  /* width: 200px;
  flex-shrink: 0; */
}

.shop-products {
  flex-grow: 1;
}

.custom-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-category-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  border: 1px solid #cdcdcd;
  transition: all0 0.3s;
}

.custom-category-list li:is(.active, :hover) {
  border-color: #282828;
  background: #282828;
}

.custom-category-list li a {
  text-decoration: none;
  color: #000;
  padding: 8px 24px;
  display: inline-block;
  transition: all0 0.3s;
  width: 100%;
  text-align: center;

  font-family: Cormorant;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 700;
  line-height: var(--font-line-height-5, 20px);
  /* 142.857% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.custom-category-list li:is(.active, :hover) a {
  color: #fff;
}

.woocommerce-ordering select {
  border-radius: 32px;
  border-color: #f5f5f5;
  background: #f5f5f5;
}

.shop-products .products {
  display: flex;
}

.shop-products .products .product {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  position: relative;
  padding: 0;
}

.shop-products .products .product .onsale,
.woocommerce .product .onsale {
  display: none;
}

/* Efekt po najechaniu */
.shop-products .products .product:hover {
  box-shadow:
    0px 20px 25px -5px rgba(0, 0, 0, 0.1),
    0px 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Obrazek produktu */
.shop-products .products .product .woocommerce-loop-product__link img {
  height: 280px;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0;
}

/* Zawartość tekstowa */
.shop-products .products .product .woocommerce-loop-product__link {
  display: block;
}

/* Tytuł produktu */
.shop-products .products .product .woocommerce-loop-product__title {
  margin-bottom: 10px;
  padding-left: 12px !important;
  padding-right: 12px !important;

  color: var(--color-base-black, #000);
  font-family: Cormorant;
  font-size: var(--font-size-base, 17px) !important;
  font-style: normal;
  font-weight: 400;
  line-height: var(--font-line-height-6, 24px);
  /* 150% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.shop-products .products .product:hover .woocommerce-loop-product__title {
  font-weight: 700;
}

/* Cena + koszyk */
.shop-products .products .product .price {
  display: inline-block;
  padding: 12px !important;

  color: #000 !important;
}

.shop-products .products .product .price .amount {
  font-family: Cormorant;
  font-size: var(--font-size-xl, 20px) !important;
  font-style: normal;
  font-weight: 700 !important;
  line-height: var(--font-line-height-7, 28px);
  /* 140% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.shop-products .products .product .price ins {
  text-decoration: none !important;
}

/* Ikona koszyka */
.shop-products .products .product .button {
  color: #fff !important;
  background: #282828;
  border-radius: 40px;
  width: 64px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  display: flex !important;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.shop-products .products .product .button.loading {
  position: relative;
}

.shop-products .products .product .button.loading:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #fff;
  border-top: 4px solid #999;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

/* Pokaż ikonę tylko po najechaniu */
.shop-products .products .product:hover .button {
  opacity: 1;
}

/* Ukryj domyślny tekst przycisku */
.shop-products .products .product .button::before,
.shop-products .products .product .button::after {
  display: none;
}

.shop-products .products .product .button img {
  width: 24px;
  height: 24px;
  margin: 0 !important;
}

.shop-products .products .product a.woocommerce-LoopProduct-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

/* Removed purchase overlay and hint elements on product cards */

/* Shop purchase notice banner */
.shop-purchase-notice {
  margin: 16px 0 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.shop-purchase-notice__inner {
  color: #111827;
  font-family: "Cormorant", serif;
  font-size: 18px;
  font-weight: 700;
}

.shop-purchase-notice__note {
  margin-top: 6px;
  color: #4b5563;
  font-size: 14px;
}

.shop-purchase-notice__note a {
  color: #111827;
  text-decoration: underline;
}

.shop-purchase-notice__legend {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.shop-purchase-notice__legend .legend-dot,
.shop-purchase-notice .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f2937;
}

.product-badge-on-image {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  color: var(--color-slate-800, #1d293d);
  font-family: Cormorant;
  font-size: var(--font-size-xs, 12px);
  font-style: normal;
  font-weight: 700;
  line-height: var(--font-line-height-4, 16px);
  /* 133.333% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.product-hero {
  background-image: url("assets/kurs-top.jpg");
  background-size: cover;
  background-position: center;
  padding: 20px;
  text-align: center;
  position: relative;
  min-height: 366px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.product-hero h1 {
  color: #fff;
  display: inline-block;
  margin: 0;
}

.product__wrapper {
  display: flex;
  margin-bottom: 40px;
}

.product__wrapper .product__left {
  flex: 0 0 60%;
  /* 60% szerokości */
  min-width: 0;
}

.product__wrapper .product__right {
  flex: 0 0 40%;
  /* 40% szerokości */
  min-width: 0;
  padding-left: 64px;
}

@media (max-width: 1199px) {
  .product__wrapper .product__right {
    padding-left: 0;
  }
}


.product__wrapper .product__left .js-video-product-wrapper {
  position: relative;
  height: 24rem;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
}

.product__wrapper .product__left .js-video-product-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.product__wrapper .product__left .js-video-product-wrapper.loading {
  min-height: 300px;
}

.woocommerce .loading {
  position: relative;
}

.woocommerce .loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #fff;
  border-top: 4px solid #999;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.product__summary .product__title {
  color: #000;
  text-align: center;
  padding-bottom: 20px;

  text-align: center;
  font-family: "EB Garamond", serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0px;
}

.product__wrapper .product__left .product__overlay {
  background-size: cover;
  background-position: center;
  height: 100%;
  padding: 2rem;
  position: relative;
}

.product__wrapper .product__left .product__overlay .product__overlay-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
}

.product__wrapper .product__left .product__overlay:before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.7;
}

.product__wrapper .product__left .product__overlay .product__overlay-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background-color: #fff;
}

.product__wrapper .product__left .product__overlay .product__overlay-icon:before {
  content: "";
  background-image: url("assets/lock.svg");
  background-repeat: no-repeat;
  background-position: center;
  width: 26px;
  height: 26px;
}

.product__wrapper .product__cart-button {
  color: #fff;
  background: #282828;
  border-radius: 40px;
  height: 44px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: opacity 0.3s ease;
  gap: 4px;
}

.product__wrapper .product__cart-button span {
  font-size: 30px;
  line-height: 20px;
  margin-top: -5px;
}

.product__wrapper .product__cart-button img {
  width: 24px;
  height: 24px;
  margin: 0;
  display: block;
}

.product__wrapper .product__right .product__lessons-wrapper {
  max-height: 390px;
  overflow: auto;
  overflow-x: hidden;
}

.product__wrapper .product__right .product__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product__wrapper .product__right .product__nav-title {
  color: #27272a;
  font-family: "Cormorant", serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0px;

  margin-top: 10px;
  margin-bottom: 0;
}

.product__wrapper .product__right .product__nav-lessons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product__wrapper .product__right .product__nav-item {
  background: var(--color-gray-50, #f9fafb);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 0;

  color: #27272a;
  font-family: "Cormorant", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0px;
}

.product__wrapper .product__right .product__nav-item>div {
  display: flex;
  gap: 16px;
  flex: 1;
  align-items: center;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: left;
}

.product__wrapper .product__right .product__nav-item .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  background-color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}



.product__wrapper .product__right .product__nav-item .icon:before {
  content: "";
  background-image: url("assets/lock.svg");
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
}

.product__wrapper .product__right .product__nav-item.available .icon:before {
  background-image: url("assets/film.svg");
}

.product__wrapper .product__right .product__nav-item.finished .icon:before {
  background-image: url("assets/certificate.svg");
}

.product__wrapper .product__right .product__nav-item .lesson-status {
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 5px;
  padding: 10px;
  width: 34px;
  height: 34px;
  border: 2px solid transparent;
}

.product__wrapper .product__right .product__nav-item.available .lesson-status {
  border-color: #000;
}

.product__wrapper .product__right .product__nav-item.available .lesson-status.active,
.product__wrapper .product__right .product__nav-item.finished .lesson-status.download {
  background-color: #3fa94f;
  border-color: #3fa94f;
}

.product__wrapper .product__right .product__nav-item.available .lesson-status.active {
  background-image: url("assets/check.svg");
}

.product__wrapper .product__right .product__nav-item.finished .lesson-status.download {
  background-image: url("assets/download.svg");
}

.product__wrapper .product__right .product__nav-item span {
  color: black;
  font-size: 16px;
  font-weight: 500;
}

.product__wrapper .product__right .product__nav-item.active {
  background-color: var(--color-primary, #282828);
  color: white;
}

.product__wrapper .product__right .product__nav-item.active .lock-icon {
  background-color: var(--color-primary, #282828);
}

.product__wrapper .product__right .product__nav-item:hover {
  background-color: var(--color-hover, #282828);
  color: white;
}

.product__wrapper .product__right .product__available {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--color-slate-300, #cad5e2);
  display: flex;
  gap: 8px;
  justify-self: self-start;

  color: var(--color-slate-900, #0f172b);
  font-family: Cormorant;
  font-size: var(--font-size-base, 16px);
  font-style: normal;
  font-weight: 700;
  line-height: var(--font-line-height-6, 24px);
  /* 150% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.product__wrapper .product__right .product__bottom {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
}

.product__wrapper .product__right .product__price-sale {
  color: #909090;
  font-family: "Cormorant", serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 2.34;
  /* 234.375% */
  text-decoration-line: strikethrough;
}

.product__wrapper .product__right .product__price-price {
  color: #000;
  font-family: "Cormorant", serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0px;
}

.product__wrapper .product__right .product__omnibus {
  color: #6c7e81;
  font-family: "Cormorant", serif;
  font-size: var(--font-size-xs, 12px);
  font-style: normal;
  font-weight: 700;
  line-height: var(--font-line-height-4, 1.3);
  /* 133.333% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.product__wrapper .product__right .product__omnibus .iworks-omnibus {
  display: flex;
  flex-direction: column;
}

.product__description {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;

  color: var(--color-zinc-800, #27272a);
  font-family: Cormorant;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.product__description ul {
  list-style: none;
}

.product__description :is(h3, h4, .product__description-title) {
  color: var(--color-zinc-800, #27272a);
  text-align: center;
  font-family: "EB Garamond", serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: var(--font-line-height-8, 32px);
  /* 114.286% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.product__description h2 {
  color: var(--color-zinc-800, #27272a);
  text-align: center;
  font-family: "EB Garamond", serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: var(--font-line-height-8, 32px);
  /* 88.889% */
  letter-spacing: var(--font-letter-spacing-normal, 0px);
}

.product__description :is(h2, h3, h4) strong {
  font-weight: 600;
}

.product__description-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-direction: column;
}

.product__description-col {
  text-align: center;
}

.product__description-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.product__description-gallery-item img {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* .product__description-col--content.has-gallery,
.product__description-col--gallery.has-gallery {
  width: calc(75% / 2);
} */

.product__description-gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 285px;
}

.product__description-gallery-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.product__description-gallery-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  text-align: center;

  color: #fff;
  font-family: "Cormorant", serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
  /* 116.667% */
}

.product__files {
  text-align: center;
}

.product__file {
  margin-bottom: 40px;
}

.product__description .product__file-title {
  margin-bottom: 8px;

  color: #1f1f1f;
  font-family: "EB Garamond", serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
  /* 39.6px */
}

.product__file-description {
  margin-bottom: 40px;

  color: #7e7d7d;
  text-align: center;
  font-family: "Cormorant", serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
  /* 127.778% */
}

.product__file-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.product__file-preview {
  width: 200px;
  box-shadow:
    0px 20px 25px -5px rgba(0, 0, 0, 0.1),
    0px 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.product__file-link .product__file-preview:hover {
  transform: scale(1.03);
}

.product__reviews {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 80px;
}

.product__reviews .product__file-title {
  color: #1f1f1f;
  text-align: center;
  font-family: "EB Garamond", serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
  /* 35.2px */
  margin-top: 0;
  margin-bottom: 5px;
}

.no-access-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.no-access-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 720px;
  width: 100%;
  text-align: center;
  box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.no-access-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f3f4f6;
  margin: 0 auto 16px;
  position: relative;
}

.no-access-icon:before {
  content: "";
  background-image: url("assets/lock.svg");
  background-repeat: no-repeat;
  background-position: center;
  width: 28px;
  height: 28px;
  display: block;
}

.no-access-title {
  color: var(--color-zinc-800, #27272a);
  font-family: "EB Garamond", serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 10px;
}

.no-access-desc {
  color: #7e7d7d;
  font-family: "Cormorant", serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
  margin: 0 0 24px;
}

.no-access-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.no-access-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Cormorant", serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.no-access-actions .btn.btn--primary {
  background: #282828;
  color: #fff;
}

.no-access-actions .btn.btn--secondary {
  background: #f3f4f6;
  color: #282828;
}

.product__reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product__review {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow:
    0px 20px 25px -5px rgba(0, 0, 0, 0.1),
    0px 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product__review-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 13px;
}

.product__review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  object-fit: cover;
}

.product__review-name {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.product__review-content {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: justify;
}

.product__review-info {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

.checkout-steps {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  margin: 20px auto 60px;
  width: 100%;
  justify-content: center;
}

.checkout-steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 18px;
  font-weight: 400;
  line-height: 110%;
  /* 24.2px */
  letter-spacing: -0.44px;
  transition: all 0.3s;
}

.checkout-steps .step span {
  display: flex;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 24px;
  border: 1.5px solid #282828;
  transition: all 0.3s;
}

.checkout-steps .step:is(:hover, .active) {
  color: #333;
}

.checkout-steps .step:is(:hover, .active) span {
  color: #fff;
  background: #282828;
}

.wc-block-components-product-name {
  color: #21272a;
  font-size: 16px;
  font-weight: 500;
}

.wc-block-components-product-metadata {
  display: none;
}

.wc-block-components-button:not(.is-link) {
  border: 0;
  background: none !important;
  height: auto;
  padding: 0;
  width: auto;
}

.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
  display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 18px;
  align-self: stretch;
  border-radius: 999px;
  background: #282828;
  color: #fff;

  font-size: 19px;
  font-weight: 600;
  line-height: 120%;
  /* 22.8px */
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border: 0;
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__submit {
  border-radius: 3px;
  background: #000;
  padding: 8px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 23px;
  /* 153.333% */
}

.woocommerce form.login .form-row,
.woocommerce form.register .form-row {
  display: flex;
  flex-direction: column;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
  padding-bottom: 50px;
}

.woocommerce-MyAccount-content .purchased-courses {
  padding-bottom: 50px;
}

.body__overflow {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99998;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.body__overflow:not(.active) {
  opacity: 0;
  visibility: hidden;
}

.slide-cart {
  position: fixed;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 1.6rem 1.6rem 2.4rem;
  z-index: 99999;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 400px;
  background: #fff;
  height: 100%;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.slide-cart:not(.active) {
  right: -100%;
}

.slide-cart__alert {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: rgb(187, 29, 29);
  padding: 1.4rem;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  font-size: 1.1rem;
  color: #fff;
}

.slide-cart__alert:not(.active) {
  visibility: hidden;
  opacity: 0;
  top: -100%;
}

.slide-cart__top {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #cdcdcd;
  display: flex;
  flex-direction: column;
}

.slide-cart__top button {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0 !important;
  background: none !important;
}

.slide-cart__top-title {
  display: block;

  color: var(--Neutral-Gray900, #171819);
  font-family: "EB Garamond", serif;
  font-size: 25.192px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  /* 30.23px */
}

.slide-cart__body {
  padding: 15px 0;
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
  overflow: auto;
  gap: 2.4rem;
  display: flex;
}

.slide-cart__content {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  display: flex;
  flex-grow: 1;
  overflow: auto;
}

.slide-cart__content--list {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2.4rem;
}

.slide-cart__item {
  display: flex;
  align-items: center;
  gap: 28px;
}

.slide-cart__item-thumbnail {
  width: 75px;
  height: 75px;
  border-radius: 1.2rem;
  overflow: hidden;
}

.slide-cart__item-details {
  width: calc(100% - 75px - 2.4rem - 2.4rem - 2.4rem);
}

.slide-cart__item-name a {
  color: #21272a;
  font-family: "EB Garamond", serif;
  font-size: 19px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  /* 26.657px */
}

.slide-cart__item-price {
  color: #6c7e81;
  font-family: "Cormorant", serif;
  font-size: 22.214px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  /* 28.878px */
}

.slide-cart__item-price span.amount {
  color: #000;
  font-family: "Cormorant", serif;
  font-size: 22.214px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
}

.slide-cart__item-remove {
  width: 30px;
}

.slide-cart__item-remove button {
  width: 100%;
  height: 30px;
  background-image: url("assets/trash.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto;
  background-color: transparent !important;
  border: 0 !important;
}

.slide-cart__bottom {
  padding-top: 20px;
  height: auto;
  border-top: 1px solid #cdcdcd;
}

.slide-cart__summary {
  padding: 0 1.6rem;
  font-size: 16px;
}

.slide-cart__summary-price {
  color: #000;
  font-family: "Cormorant", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
}

.slide-cart__actions {
  display: flex;
  margin-top: 30px;
  gap: 30px;
}

.slide-cart__actions a.btn {
  color: #fff !important;
  background-color: #282828;
  border-radius: 40px;
  padding: 15px 25px;
  flex-grow: 1;
  text-align: center;

  font-family: "Cormorant", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 30.23px */
}

.slide-cart__empty {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 30px;

  color: var(--Primary-Gray, #4d4d4d);
  text-align: center;
  font-family: "Cormorant", serif;
  font-size: 21.214px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  /* 29.7px */
}

/* Układ koszyka WooCommerce */

/* Tabela koszyka */
.woocommerce-cart-form__contents {
  border: none;
  border-collapse: collapse;
  width: 100%;
}

.woocommerce-cart-form__contents thead tr,
.woocommerce-cart-form__contents tbody tr:not(:last-child) {
  border-bottom: 1px solid #d9d9d9 !important;
}

.woocommerce-cart-form__contents td,
.woocommerce-cart-form__contents th {
  border: none !important;
  background: none !important;
}

.woocommerce-cart_wrapper {
  display: flex;
  gap: 32px;
}

/* Obrazek produktu */
td.product-thumbnail img {
  width: 75px !important;
  height: 75px !important;
  border-radius: 12px;
  object-fit: cover;
}

/* Nazwa produktu */
td.product-name a {
  color: #000;
  text-decoration: none;
}

/* Ilość produktu (zamieniamy na x1) */
td.product-quantity {
  font-weight: bold;
}

td.product-quantity input {
  display: none;
}

td.product-quantity::before {
  content: "x1";
}

/* Ikonka usuń */
a.remove {
  background: none !important;
  display: inline-block;
  width: 24px !important;
  height: 24px !important;
}

/* Pole kuponu */
.woocommerce-cart .coupon input[name="coupon_code"] {
  min-width: 175px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
}

.woocommerce-cart .coupon input[name="coupon_code"]::placeholder {
  color: #000;
  content: "Kod rabatowy";
}

/* Guzik wykorzystaj rabat */
.woocommerce-cart .coupon button.button {
  color: #fff;
  border-radius: 12px;
  background: #000;
  padding: 10px 20px;
}

/* Guzik zaktualizuj koszyk */
.woocommerce-cart button[name="update_cart"] {
  color: #808080;
  border-radius: 999px;
  border: 2px solid #808080;
  background: none;
  padding: 10px 20px;
  margin-left: 1rem;
}

.woocommerce-cart-form {
  flex-grow: 1;
}

/* Układ – podsumowanie obok koszyka */
.woocommerce-cart .cart-collaterals {
  flex: 0 1 300px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 40px;
}

.cart-collaterals .cart_totals {
  border-radius: 16px;
  border: 1px solid #d9d9d9;
  padding: 30px 24px;
  flex: 1 1 300px;
}

.cart_totals h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cart_totals table {
  border: none !important;
  background: none !important;
}

.cart_totals table th,
.cart_totals table td {
  border: none !important;
  background: none !important;
}

.cart_totals table tr.order-total {
  border-top: 1px solid #d9d9d9;
}

.cart_totals .order-total .woocommerce-Price-amount {
  font-size: 25px;
  font-weight: 600;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  color: #fff;
  border-radius: 999px;
  background: #282828;
  display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #555;
}

.woocommerce-thankyou-order-received {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.woocommerce-thankyou-order-received .thankyou-message {
  color: #282828;
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 18px;
}

.woocommerce-thankyou-order-received .thankyou-description {
  color: #7e7d7d;
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  margin-bottom: 60px;
  text-align: center;
}

.woocommerce-thankyou-order-received .thankyou-image {
  text-align: center;
  margin-bottom: 70px;
}

.woocommerce-thankyou-order-received .thankyou-image img {
  width: 110px;
  height: 150px;
}

.woocommerce ul.order_details {
  text-align: center;
}

.woocommerce table.my_account_orders {
  font-size: 1.15rem !important;
}

/* My Account - Courses overview */
.account-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 100px;
}

.course-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.course-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.course-card__title {
  margin: 0;
  color: #1f1f1f;
  font-family: "EB Garamond", serif;
  font-size: 22px;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.status-badge.processing {
  background: #fff7ed;
  color: #b45309;
  border: 1px solid #fed7aa;
}

.status-badge.available {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-badge.expired {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.course-card__sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.course-card__sections h4 {
  margin: 0 0 8px;
  color: var(--color-zinc-800, #27272a);
  font-family: "EB Garamond", serif;
  font-size: 18px;
  font-weight: 600;
}

.course-card__sections p {
  margin: 0 0 6px;
  color: #475569;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.course-card__access .status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.course-card__access .status-dot.available {
  background: #10b981;
}

.course-card__access .status-dot.pending {
  background: #f59e0b;
}

.course-card__access .status-dot.expired {
  background: #ef4444;
}

.course-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.course-card__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Cormorant", serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.course-card__actions .btn.btn--primary {
  background: #282828;
  color: #fff;
}

.course-card__actions .btn.btn--secondary {
  background: #f3f4f6;
  color: #282828;
}

.course-card__actions .btn.btn--link {
  background: transparent;
  color: #282828;
  text-decoration: underline;
  padding: 0;
}

@media (max-width: 768px) {
  .account-courses {
    grid-template-columns: 1fr;
  }

  .course-card__sections {
    grid-template-columns: 1fr;
  }
}

/* My Account - Downloads Table */
.woocommerce-account .woocommerce-order-downloads {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.woocommerce-account table.woocommerce-table--order-downloads.shop_table {
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  width: 100%;
  font-family: Inter, sans-serif;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account table.woocommerce-table--order-downloads thead th {
  color: #475569;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 16px 14px;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  background: transparent;
}

.woocommerce-account table.woocommerce-table--order-downloads tbody td {
  padding: 18px 16px;
  color: #1f1f1f;
  font-size: 15px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.woocommerce-account table.woocommerce-table--order-downloads tbody tr:last-child td {
  border-bottom: none;
  padding-bottom: 0;
}

.woocommerce-account table.woocommerce-table--order-downloads tbody td.download-product a {
  color: #1f1f1f;
  font-family: "EB Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-account table.woocommerce-table--order-downloads tbody td.download-product a:hover {
  color: #6d28d9;
}

.woocommerce-account table.woocommerce-table--order-downloads tbody td.download-remaining,
.woocommerce-account table.woocommerce-table--order-downloads tbody td.download-expires {
  color: #475569;
  font-size: 14px;
}

.woocommerce-account table.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-slate-900, #0f172b);
  color: #fff;
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account table.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file:hover {
  background: #282828;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-order-downloads {
    padding: 20px;
  }

  .woocommerce-account table.woocommerce-table--order-downloads,
  .woocommerce-account table.woocommerce-table--order-downloads thead,
  .woocommerce-account table.woocommerce-table--order-downloads tbody,
  .woocommerce-account table.woocommerce-table--order-downloads tr,
  .woocommerce-account table.woocommerce-table--order-downloads td {
    display: block;
    width: 100%;
  }

  .woocommerce-account table.woocommerce-table--order-downloads thead {
    display: none;
  }

  .woocommerce-account table.woocommerce-table--order-downloads tbody tr {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .woocommerce-account table.woocommerce-table--order-downloads tbody tr:last-child {
    border-bottom: none;
  }

  .woocommerce-account table.woocommerce-table--order-downloads tbody td {
    padding: 4px 0;
    border-bottom: none;
  }

  .woocommerce-account table.woocommerce-table--order-downloads tbody td::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    color: #475569;
    font-size: 13px;
  }

  .woocommerce-account table.woocommerce-table--order-downloads tbody td.download-file {
    padding-top: 12px;
  }

  .woocommerce-account table.woocommerce-table--order-downloads tbody td.download-file::before {
    display: none;
  }
}

/* My Account - Navigation */
.woocommerce-MyAccount-navigation {
  margin: 30px 0 10px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.woocommerce-MyAccount-navigation li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #cdcdcd;
  text-decoration: none;
  color: #000;
  font-family: Cormorant, serif;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a {
  background: var(--color-slate-900, #0f172b);
  color: #fff;
  border-color: var(--color-slate-900, #0f172b);
  position: relative;
}

/* Keep distinct color on hover/active for Kupione kursy */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a:hover,
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders.is-active a {
  background: var(--color-slate-900, #0f172b);
  border-color: var(--color-slate-900, #0f172b);
  color: #fff;
}



.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  background: #282828;
  color: #fff;
  border-color: #282828;
}

/* Hide default Orders table & pagination on My Account (we show custom course cards) */
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination {
  display: none;
}

@media screen and (max-width: 1199px) {
  .shop-columns {
    flex-direction: column;
    gap: 40px;
  }

  .shop-sidebar {
    width: auto;
  }

  .custom-category-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .shop-products .products {
    gap: 20px;
  }

  .shop-products .products .product .button {
    opacity: 1;
  }

  .product__wrapper {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .header-shop-nav {
    top: 12px;
    right: 70px;
  }
}

@media (max-width: 768px) {

  .product__description-col--title,
  .product__description-col--content {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .woocommerce-cart .cart-collaterals {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .shop-products .products {
    flex-wrap: wrap;
  }

  .shop-products .products .product {
    width: 100% !important;
  }

  .shop-products .products .product .woocommerce-loop-product__link img {
    height: 320px;
  }
}

@media screen and (max-width: 575px) {

  .product__wrapper .product__left .js-video-product-wrapper {
    height: 200px;
  }

  .checkout-steps {
    flex-direction: column;
    gap: 15px;
  }

  .woocommerce-thankyou-order-received .thankyou-description {
    margin-bottom: 30px;
  }

  .woocommerce-thankyou-order-received .thankyou-image img {
    width: 80px;
    height: 120px;
    margin-bottom: 30px;
  }

  .woocommerce ul.order_details li {
    margin-bottom: 20px;
  }
}