
/* GAYA – nowy layout koszyka 1:1 do makiety */

body.woocommerce-cart {
    background: #FAFAFA;
}

.gaya-cart {
    max-width: 1160px;
    margin: 60px auto 80px;
    padding: 0 20px;
    font-size: 14px;
}

.gaya-cart__header {
    margin-bottom: 24px;
}

.gaya-cart__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px;
}

.gaya-cart__subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin: 0;
}

.gaya-cart__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
}

.gaya-cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gaya-cart-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    padding: 20px 24px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 14px 40px rgba(0,0,0,0.05);
}

.gaya-cart-item__image img {
    width: 110px;
    height: auto;
    object-fit: contain;
}

.gaya-cart-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.gaya-cart-item__title {
    font-size: 16px;
    font-weight: 600;
}

.gaya-cart-item__title a {
    color: #111;
    text-decoration: none;
}

.gaya-cart-item__title a:hover {
    text-decoration: underline;
}

.gaya-cart-item__meta {
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}

.gaya-cart-item__price {
    font-weight: 600;
    white-space: nowrap;
}

.gaya-cart-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.gaya-cart-item__qty .quantity {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #E5E5E5;
    overflow: hidden;
}

.gaya-cart-item__qty .qty {
    border: none;
    width: 46px;
    text-align: center;
    padding: 8px 0;
    font-size: 15px;
    background: #FFF;
}

.gaya-qty-btn {
    border: none;
    background: #111;
    color: #FFF;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.gaya-qty-btn--minus {
    border-right: 1px solid #E5E5E5;
}

.gaya-qty-btn--plus {
    border-left: 1px solid #E5E5E5;
}

.gaya-cart-item__subtotal {
    font-weight: 600;
}

.gaya-cart-item__remove {
    margin-top: 8px;
}

.gaya-cart-item__remove-link {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.gaya-cart-item__remove-link:hover {
    color: #333;
}

.gaya-cart__total-inline {
    margin-top: 16px;
    font-weight: 600;
    text-align: right;
}

.gaya-cart__actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gaya-cart__coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gaya-cart__coupon .input-text {
    min-width: 200px;
}

.gaya-cart__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.gaya-cart__summary-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
}

.gaya-cart-totals {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px 24px 28px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
}

.gaya-cart-totals__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.gaya-cart-totals__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.gaya-cart-totals__label {
    color: #666;
}

.gaya-cart-totals__value {
    font-weight: 500;
}

.gaya-cart-totals__value--bold {
    font-size: 18px;
    font-weight: 700;
}

.gaya-cart-totals__points {
    margin: 8px 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #F1FFF4;
    border: 1px solid #C6EFD0;
}

.gaya-cart-totals__points-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.gaya-cart-totals__value-sub {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #2c7a3f;
}

.gaya-cart-totals__points-actions {
    margin-top: 4px;
}

.gaya-cart-totals__points-input {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.gaya-cart-totals__points-input input[type="number"] {
    width: 80px;
}

.gaya-cart-totals__discount {
    margin-bottom: 14px;
}

.gaya-cart-totals__discount .input-text {
    width: 100%;
}

.gaya-cart-totals__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.gaya-cart-totals__checkout .checkout-button {
    width: 100%;
    border-radius: 999px;
    background: #000;
    padding: 14px 18px;
    font-weight: 600;
}

.gaya-cart-totals__badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.gaya-cart-totals__badge::before {
    content: "• ";
}

.gaya-cross-sells {
    max-width: 1160px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.gaya-cross-sells__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.gaya-cross-sells__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.gaya-cross-sells__item {
    text-align: center;
}

@media (max-width: 960px) {
    .gaya-cart__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gaya-cart__summary {
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .gaya-cart-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .gaya-cart-item__image img {
        width: 100px;
    }

    .gaya-cart {
        margin-top: 32px;
    }
}

/* === POPRAWKI 1:1 DO MAKIETY === */

/* Tytuł bez powtórzeń */
.gaya-cart__header {
    margin-bottom: 32px;
}

/* Ukryj legacy przyciski Woo (nie ma ich w makiecie) */
.gaya-cart__buttons--hidden {
    display: none;
}

/* Karta – trochę większe zaokrąglenie jak w projekcie */
.gaya-cart-item {
    border-radius: 20px;
}

/* Ilość – trzy oddzielne kółka: minus, liczba, plus */
.gaya-cart-item__qty .quantity {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.gaya-cart-item__qty .qty {
    border: none;
    width: 32px;
    text-align: center;
    padding: 0;
    font-size: 16px;
    background: transparent;
}

/* Okrągłe przyciski +/- jak w makiecie */
.gaya-qty-btn {
    border-radius: 999px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    color: #111111;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gaya-qty-btn:hover {
    border-color: #111111;
}

/* Usuń kapsułkowe obramowanie po staremu */
.gaya-cart-item__qty .quantity::before,
.gaya-cart-item__qty .quantity::after {
    display: none;
}

/* Prawy panel – tytuł jak w makiecie */
.gaya-cart__summary-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Niebieskie Woo przyciski pod listą – na wszelki wypadek */
.woocommerce-cart .gaya-cart__actions .button {
    border-radius: 8px;
}
/* ==== PRAWY PANEL – 1:1 Z MAKIETY ==== */

.gaya-summary-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 24px 24px 26px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
    font-size: 14px;
}

.gaya-summary-card__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
}

.gaya-summary-card__divider {
    height: 1px;
    background: #EDEDED;
    margin-bottom: 16px;
}

.gaya-summary-card__divider--spaced {
    margin: 18px 0;
}

.gaya-summary-card__rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gaya-summary-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.gaya-summary-card__label {
    color: #666666;
}

.gaya-summary-card__value {
    font-weight: 500;
}

/* Blok EkoPunktów */

.gaya-summary-card__points {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #F5FFF8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gaya-summary-card__points-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1FAE4F;
    font-weight: 600;
}

.gaya-summary-card__points-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #1FAE4F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.gaya-summary-card__points-right {
    text-align: right;
}

.gaya-summary-card__points-value {
    display: block;
    color: #1FAE4F;
    font-weight: 600;
}

.gaya-summary-card__points-money {
    display: block;
    font-size: 12px;
    color: #1FAE4F;
}

/* Pola "Wykorzystaj ekopunkty" / "Kod rabatowy" */

.gaya-summary-card__field {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.gaya-summary-card__field .gaya-summary-card__label {
    flex: 0 0 auto;
}

.gaya-summary-card__input {
    flex: 1 1 auto;
}

.gaya-summary-card__input input[type="text"],
.gaya-summary-card__input input[type="number"] {
    width: 100%;
    border-radius: 10px;
}
/* ==== CHECKOUT – LAYOUT 2 KOLUMNY JAK NA MAKIETCE ==== */

body.woocommerce-checkout {
    background: #FAFAFA;
}

.gaya-checkout {
    max-width: 1290px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.gaya-checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.gaya-checkout__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* Produkty po lewej – mini karty */

.gaya-checkout-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.gaya-checkout-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 16px 18px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.04);
}

.gaya-checkout-item__image img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.gaya-checkout-item__name a,
.gaya-checkout-item__name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.gaya-checkout-item__name a:hover {
    text-decoration: underline;
}

.gaya-checkout-item__qty-price {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* Pola adresowe – tylko kosmetyka, układ zostaje jak Woo */

.gaya-checkout__details .col2-set {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.gaya-checkout__details .woocommerce-billing-fields__field-wrapper,
.gaya-checkout__details .woocommerce-shipping-fields__field-wrapper {
    margin-top: 10px;
}

/* PRAWA KOLUMNA – kafelek podsumowania */

.gaya-checkout-sidebar__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.gaya-checkout-sidebar__card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 22px 22px 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
}

/* Ukryj nagłówek "Twoje zamówienie" Woo, bo mamy własny tytuł */
.gaya-checkout-sidebar__card #order_review_heading {
    display: none;
}

/* Tabela zamówienia trochę uproszczona */
.gaya-checkout-sidebar__card .shop_table {
    border: none;
    margin: 0 0 12px;
}

.gaya-checkout-sidebar__card .shop_table th,
.gaya-checkout-sidebar__card .shop_table td {
    border: none;
    padding: 4px 0;
    font-size: 13px;
}

.gaya-checkout-sidebar__card .shop_table tfoot th {
    font-weight: 500;
}

.gaya-checkout-sidebar__card .shop_table tfoot .order-total th {
    font-weight: 600;
}

.gaya-checkout-sidebar__card .shop_table tfoot .order-total td {
    font-size: 17px;
    font-weight: 700;
}

/* Czarny przycisk "Płać" – stylowanie przycisku Woo (#place_order) */

.gaya-checkout-sidebar__card #place_order {
    width: 100%;
    border-radius: 999px;
    background: #000000;
    border-color: #000000;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
}

/* Sekcja metod płatności – mniej bordera, bardziej "czysto" */

.gaya-checkout-sidebar__card #payment {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 8px 0 0;
}

.gaya-checkout-sidebar__card #payment ul.payment_methods {
    padding: 0;
}

.gaya-checkout-sidebar__card #payment ul.payment_methods li {
    padding: 5px 0;
}

/* Tekst pod przyciskiem – mniejsza czcionka */
.gaya-checkout-sidebar__card #payment .woocommerce-privacy-policy-text,
.gaya-checkout-sidebar__card #payment .wc-credit-card-form-card-number,
.gaya-checkout-sidebar__card #payment .wc-credit-card-form-card-expiry,
.gaya-checkout-sidebar__card #payment .wc-credit-card-form-card-cvc {
    font-size: 12px;
}

/* RWD */

@media (max-width: 960px) {
    .gaya-checkout__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .gaya-checkout-sidebar__card {
        margin-top: 10px;
    }

    .gaya-checkout__details .col2-set {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* === GAYA – darmowa dostawa: pasek progresu (koszyk / checkout summary) === */
.gaya-summary-card__free{
  margin: 14px 0 8px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,.06);
}
.gaya-summary-card__free-top{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  margin-bottom:8px;
}
.gaya-summary-card__free-title{
  font-weight:600;
  font-size:13px;
}
.gaya-summary-card__free-meta{
  font-size:12px;
  opacity:.7;
}
.gaya-summary-card__free-bar{
  height:10px;
  border-radius:999px;
  background: rgba(0,0,0,.06);
  overflow:hidden;
}
.gaya-summary-card__free-fill{
  display:block;
  height:100%;
  width:0%;
  border-radius:999px;
}
.gaya-summary-card__free-bar.is-red .gaya-summary-card__free-fill{ background:#ff4d4d; }
.gaya-summary-card__free-bar.is-green .gaya-summary-card__free-fill{ background:#26b36b; }
.gaya-summary-card__free-note{
  margin-top:8px;
  font-size:12px;
  opacity:.85;
}

/* === GAYA – ikony w badge'ach pod przyciskiem === */
.gaya-summary-card__badges{
  display:flex;
  gap:8px;
  margin-top:12px;
}
.gaya-summary-card__checkout-btn{    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    width: 100%;}
.gaya-summary-card__badge{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:#6b6b6b;
}
.gaya-summary-card__badge-icon{
  width:18px;
  height:18px;
  display:inline-block;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  flex:0 0 18px;
}
.gaya-summary-card__badge-icon--box{
  background-image: url('../img/paczka.png');
}
.gaya-summary-card__badge-icon--clock{
  background-image: url('../img/zegar.png');
}

/* === GAYA – tooltip EkoPunkty === */
.gaya-summary-card__points{
  position:relative;
}
.gaya-summary-card__points-icon{
  cursor:pointer;
  background:transparent;
  border:none;
  padding:0;
  margin:0;
  width:18px;
  height:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #1FAE4F;
}
.gaya-summary-card__points-icon img{
  width:12px;
  height:12px;
  display:block;
}
.gaya-summary-card__points-tooltip{
  position:absolute;
  left:12px;
  top:100%;
  margin-top:8px;
  width:min(280px, calc(100% - 24px));
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:12px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display:none;
  z-index:50;
}
.gaya-summary-card__points-tooltip.is-open{ display:block; }
.gaya-summary-card__points-tooltipTitle{
  font-weight:600;
  font-size:13px;
  margin-bottom:10px;
}
.gaya-summary-card__points-tooltipRow{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#444;
  margin-top:8px;
  float: left !important;
}
.gaya-summary-card__points-tooltipRow img{
  width:16px;
  height:16px;
  display:block;
}

/* =========================
   GAYA – Refill block (1:1)
   ========================= */

section.gaya-refill{
  margin-top: 18px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

section.gaya-refill[aria-label]{
  padding: 0;
}

.gaya-refill__list{
  display: grid;
  gap: 0;
}

/* pojedynczy wiersz */
.gaya-refill-item{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.gaya-refill-item:last-child{ border-bottom: 0; }

/* górny pasek: checkbox + pill */
.gaya-refill-item__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* lewa strona headera: checkbox + label */
.gaya-refill-item__headLeft{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

/* checkbox (w label) */
.gaya-refill-item__headLeft input[type="checkbox"]{
  width: 18px;
  height: 18px;
  border-radius: 5px;
  accent-color: #000;
}

/* pill po prawej */
.gaya-refill-item__badge{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111;
  color:#fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* body = grid jak na makiecie */
.gaya-refill-item__body{
  display:grid;
  grid-template-columns: 64px 1fr 110px 120px;
  gap: 14px;
  align-items:center;
}

/* obrazek */
.gaya-refill-item__thumb,
.gaya-refill-item__body img{
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  display:block;
}

/* tytuł + opis */
.gaya-refill-item__meta{
  min-width:0;
}
.gaya-refill-item__title{
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color:#111;
  margin: 0 0 2px 0;
}
.gaya-refill-item__sub{
  font-size: 13px;
  line-height: 1.2;
  color: rgba(0,0,0,.55);
  margin: 0;
}

/* ilość (środek) */
.gaya-refill-item__qty{
  text-align:center;
  font-size: 14px;
  color: rgba(0,0,0,.65);
  white-space: nowrap;
}

/* cena (prawa kolumna) */
.gaya-refill-item__price{
  text-align:right;
  font-size: 16px;
  font-weight: 700;
  color:#111;
  white-space: nowrap;
}

/* Mobile 1 kolumna jak na makiecie */
@media (max-width: 640px){
  .gaya-refill-item__body{
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "thumb meta"
      "qty price";
    align-items: start;
  }
  .gaya-refill-item__thumb,
  .gaya-refill-item__body img{ width:56px; height:56px; border-radius: 12px; }

  .gaya-refill-item__meta{ grid-area: meta; }
  .gaya-refill-item__qty{
    grid-area: qty;
    text-align:left;
    margin-top: 8px;
  }
  .gaya-refill-item__price{
    grid-area: price;
    text-align:right;
    margin-top: 8px;
  }
}

/* jeśli Twój HTML nie ma klas meta/title/sub/qty/price – mapowanie fallback po strukturze */
.gaya-refill-item__body .gaya-refill-item__meta,
.gaya-refill-item__body .meta{ }
