/* ===== Overlay ===== */
.hcsc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.60);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 9999;
}

.hcsc-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Drawer (Grid: header / content / footer) ===== */
.hcsc-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(440px, 100%);
    background: #ffffff;
    color: black;
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.22, .61, .36, 1);
    z-index: 9999;

    outline: none;

    box-shadow: -10px 0px 50px #00000014;

}

.hcsc-drawer__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}



.hcsc-drawer__inner {
    display: flex;
    flex-direction: column;
    height: 100dvh
}


.hcsc-drawer.is-open {
    transform: translateX(0);
}


/* blokowanie scrolla dokumentu */
html.hcsc-lock {
    overflow: hidden;
}

/* ===== Header ===== */
.hcsc-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
}
/*

.hcsc-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: black;
    font-size: 40px;
    line-height: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    outline: none !important;
}

.hcsc-close:hover {
    background: rgba(255, 255, 255, .06);
} */

.hcsc-close {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    outline: none;
    position: relative;
    border: none;
    width: 21px;  /* rozmiar kontenera */
    height: 21px;
    cursor: pointer;
    font-size: 0;
    transition: all .3s;
}

/* pionowe centrowanie kresek */
  .hcsc-close::before,
  .hcsc-close::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -4px;
    width: 30px;
    height: 1px;
    background: #000;
  }

  /* ukośna w jedną stronę */
  .hcsc-close::before {
    transform: rotate(45deg);
    transition: all .3s;
  }

  /* ukośna w drugą stronę */
  .hcsc-close::after {
    transform: rotate(-45deg);
    transition: all .3s;
  }

/* ukośna w jedną stronę */
  .hcsc-close:hover::before {
    transform: rotate(-45deg);
  }

  /* ukośna w drugą stronę */
  .hcsc-close:hover::after {
    transform: rotate(45deg);
  }


/* ===== Content (scroll fix) ===== */
.hcsc-drawer__content {
    min-height: 0;
    overflow: auto;
    padding-left: 30px;
    padding-right: 30px;
    /* max-height: 80vh; */
}

.hcsc-minicart {
    display: grid;
    gap: 12px;
}

.hcsc-empty {
    margin: 10px;
    opacity: .8;
    padding-left: 0px;
    padding-right: 0px;
        text-align: center;
    font-size: 14px;
    font-weight: bold;
}






/* ===== Mini-cart cards ===== */
.hcsc-drawer .woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.hcsc-drawer .mini_cart_item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    padding: 12px;
    background: #131826;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.hcsc-drawer .mini_cart_item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #0a0d14;
    border: 1px solid rgba(255, 255, 255, .06);

    flex: 0 0 72px;
}

.hcsc-drawer .mini_cart_item a {
    color: red;
    text-decoration: none;
}

.hcsc-drawer .mini_cart_item a:not(.remove) {
    display: flex;
    gap: 10px;
    font-size: 12px;
    line-height: 16px;
    color: white;
}

.hcsc-drawer .mini_cart_item a:hover {
    text-decoration: underline;
}

.hcsc-drawer .mini_cart_item .quantity {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    opacity: .85;
}

.hcsc-drawer .mini_cart_item .remove_from_cart_button {
    color: #ff9aa2 !important;
    font-weight: 800;
    text-decoration: none;
    font-size: 18px;
}

.hcsc-drawer .mini_cart_item .remove_from_cart_button:hover {
    filter: brightness(1.15);
}

/* prawa kolumna (cena) */
.hcsc-drawer .mini_cart_item .woocommerce-Price-amount {
    font-weight: 700;
}

/* meta pod tytułem (np. W zestawie) – subtelna ramka */
.hcsc-drawer .mini_cart_item .variation,
.hcsc-drawer .mini_cart_item .wc-item-meta {
    margin-top: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 10px;
    font-size: 13px;
}

/* ===== Footer ===== */
.hcsc-drawer__footer {
    padding: 30px;
    padding-top: 20px;
    border-top: 1px solid #DBDBDB;
    margin-top: auto;
  

}

.hcsc-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
 
}

.hcsc-subtotal__label {

}

.hcsc-subtotal__value .amount {
    font-weight: 800;
}
.subtotal-info-box-wrapper{
       margin-bottom: 12px;
}
.subtotal-info-box{
    color: #9A9A9A;
    font-size: 13px;
    line-height: 16px;
    font-weight: 400;
    
}




/* ===== FAB ===== */
.hcsc-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    background: #111827;
    color: #eef0f5;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
    cursor: pointer;
    z-index: 10000;
}

.hcsc-fab__icon {
    display: inline-flex;
    line-height: 0;
}

.hcsc-fab__icon svg {
    display: block;
    width: 20px;
    height: auto;
    flex: 0 0 20px;
    fill: white;
}

.hcsc-fab__count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #93C5FD;
    color: #0c111b;
    font-size: 12px;
    font-weight: 800;
}

/* ===== Przyciski shortcode ===== */
.hcsc-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #111827;
    color: red;
    border: 1px solid rgba(255, 255, 255, .10);
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.hcsc-trigger-btn:hover {
    background: #182033;
}

.hcsc-trigger-btn__icon {
    display: inline-flex;
    line-height: 0;
}

.hcsc-trigger-btn__icon svg {
    display: block;
    width: 20px;
    height: auto;
    flex: 0 0 20px;
    fill: white;
}

.hcsc-trigger-btn__count {
    display: none;
    /* display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #93C5FD;
    color: #0c111b;
    font-size: 12px;
    font-weight: 800; */
}

/* Ukrywanie liczników gdy pusty koszyk */
.hcsc-count--hidden {
    display: none !important;
}

/* ===== Scrollbar (tylko content) ===== */
.hcsc-drawer__content::-webkit-scrollbar {
    width: 10px;
}

.hcsc-drawer__content::-webkit-scrollbar-track {
    background: transparent;
}

.hcsc-drawer__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .16);
    border-radius: 10px;
}




/* Minimalne style – silnie namespacowane, żeby nie brudzić globali */
.hcsc-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.hcsc-mini-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
    border-bottom: 1px solid #eee;
    background-color: #F4F4F4;
    border-radius: 16px;
    padding: 8px;
}

.hcsc-mini-item:last-child {
    border-bottom: none
}

.hcsc-thumb {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.hcsc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.hcsc-meta {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.hcsc-title {
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    text-decoration: none;
    color: black !important;
   font-weight: 500;
}

.hcsc-attrs {
    font-size: 12px;
    color: #6b7280
}

.hcsc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px
}

.hcsc-qty{
    font-size: 13px;
    line-height: 16px;
    
}

.hcsc-unit-price,
.hcsc-line-price {
    font-weight: 700
}

.hcsc-line-label {
    color: #6b7280
}

.hcsc-remove {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 34px;
    background-color: white;
    transition: all 0.2s;
    margin-left: auto;
  
}
.hcsc-remove svg{
    fill: #9A9A9A;
    width: 18px;
    height: auto;
    transition: all 0.2s;
}
.hcsc-remove:hover svg {
    fill: red;
}









/* Buttons */


.hcsc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hcsc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border-radius: 30px;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 16px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.hcsc-btn--primary {
    background: #FFC207;
    color: #000000 !important;

}

.hcsc-btn--primary:hover {
    filter: brightness(1.04);
}

.hcsc-btn--secondary {
    background: transparent;
    color: black !important;
    border: 1px solid #DBDBDB;
}

.hcsc-btn--secondary:hover {
    background: #DBDBDB;
    
}

.hcsc-btn--ghost {
    width: 100%;
    background: transparent;
    color: black !important;
    border: 1px solid #DBDBDB;
}

.hcsc-btn--ghost:hover {
    background: rgba(255, 255, 255, .06);
}

.hcsc-label-and-count-wrapper {
    display: flex;
    align-content: center;
    gap: 10px;
}




@media only screen and (max-width: 768px) {
.hcsc-drawer__footer{
    padding-bottom: 100px;
}
.hcsc-btn{
    font-size: 12px;
}
}