/* Local shop page for adzikpisze.pl (Ghost page "sklep"). */

.gh-shop {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.2rem 2rem 6rem;
}

.gh-shop-header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.gh-shop-title {
    margin: 0 0 0.6rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.gh-shop-lead {
    margin: 0;
    opacity: 0.75;
}

.shop-toolbar {
    position: absolute;
    top: 3.2rem;
    right: 2rem;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

.shop-pay {
    background: #311141 !important;
    color: white !important;
    border: 1px solid pink;
}

.shop-pay:hover {
    background: #A09FD3 !important;
    color: black !important;
}

.shop-cart-button,
.shop-checkout,
.shop-pay,
.shop-add {
    font: inherit;
    cursor: pointer;
    border: 1px solid pink;
    /*border-radius: 999px;*/
    background: thistle;
    color: #231858;
    padding: 0.65rem 1.3rem;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    font-weight: 600;
}

.shop-cart-button:hover,
.shop-checkout:hover,
.shop-add:hover {
    background: #101436;
    color: #faf6e9;
}

.shop-cart-button:disabled,
.shop-checkout:disabled,
.shop-pay:disabled,
.shop-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-cart-count {
    display: inline-block;
    min-width: 1.4rem;
    padding: 0 0.35rem;
    margin-left: 0.35rem;
    /*border-radius: 999px;*/
    background: #231858;
    color: #faf6e9;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.4rem;
    text-align: center;
    padding-top:2px;
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.shop-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.12);
    /*border-radius: 18px;*/
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.shop-card-image {
    display: block;
    width: 300px;
    min-width: 300px;
    height: auto;
    align-self: flex-start;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.06);
}

.shop-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-self: stretch;
    gap: 0.7rem;
    padding: 1.5rem 2rem;
}

.shop-card-title {
    margin: 0;
    font-size: 1.75rem;
}

.shop-card-desc {
    flex: 1;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0.8;
    white-space: pre-line;
}

.shop-card-more {
    display: none;
}

.shop-card-price {
    font-weight: 600;
    font-size: 1.65rem;
}

.shop-status {
    text-align: center;
    opacity: 0.7;
}

.shop-error {
    padding: 1rem 1.2rem;
    border: 1px solid #b3261e;
    /*border-radius: 12px;*/
    color: #b3261e;
    background: rgba(179, 38, 30, 0.08);
}

.shop-success {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    /*border-radius: 18px;*/
    text-align: center;
}

.shop-success h2 {
    margin-top: 0;
}

.shop-success-image {
    display: block;
    width: min(300px, 70%);
    height: auto;
    margin: 1.5rem auto 1.5rem;
}

/* Cart drawer */
.shop-cart-panel {
    position: fixed;
    z-index: 2147483000;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    height: 100vh;
    padding: 1.4rem;
    background: black;
    color: #faf6e9;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}

.shop-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #faf6e9;
}

.shop-cart-header span {
    color: inherit;
}

.shop-close {
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    background: black;
    border: 1px solid pink;
    cursor: pointer;
    color: white;
}

.shop-close:hover {
    background: #101436;
    color: pink;
}

.shop-cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.9rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.shop-cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    /*border-radius: 8px;*/
}

.shop-cart-item-title {
    margin: 0 0 0.2rem;
    font-weight: 600;
}

.shop-cart-item-meta {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

.shop-qty {
    display: inline;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.shop-qty button {
    border: 1px solid pink;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 5px;
}

.shop-cart-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-promo {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.shop-promo input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.7rem;
    font: inherit;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.shop-promo button {
    padding: 0.6rem 0.9rem;
    font: inherit;
    color: #231858;
    cursor: pointer;
    background: thistle;
    border: 1px solid pink;
}

.shop-promo button:hover {
    color: #faf6e9;
    background: #101436;
}

.shop-promo button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.shop-promo-message {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
    color: #a5eca9;
    font-weight: 600;
}

.shop-promo-message.shop-error {
    color: #ffdad8;
}

.shop-applied-promos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.shop-promo-chip {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.2rem 0.5rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.shop-promo-chip button {
    padding: 0 0.1rem;
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
}

.shop-discount {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffdad8
}

.shop-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.shop-checkout {
    width: 100%;
}

/* Checkout modal */
.shop-modal {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.55);
}

.shop-modal-content {
    position: relative;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    /*border-radius: 18px;*/
    background: thistle;
    color: black;
}

.shop-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    font-size: 1.8rem;
    line-height: 1;
}

.shop-modal-content h2 {
    margin-top: 0;
    color: black
}

.shop-form {
    display: grid;
    gap: 1rem;
    margin-top: 10px;
}

.shop-field {
    display: grid;
    gap: 0.35rem;
}

.shop-field label {
    font-weight: 600;
}

.shop-field input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    /*border-radius: 8px;*/
    background: #fff;
    color: #1a1a1a;
    font: inherit;
}

.shop-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.shop-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 1.4rem;
    line-height: 1.4;
}

.shop-consent input {
    flex: 0 0 auto;
    margin: 0.2rem 0 0;
}

.shop-consent label {
    cursor: pointer;
}

.shop-consent a {
    color: inherit;
    text-decoration: underline;
}

.shop-card-element {
    padding: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    /*border-radius: 8px;*/
    background: #fff;
}

.shop-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.shop-toast {
    position: fixed;
    z-index: 2147483002;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    max-width: calc(100vw - 2rem);
    padding: 0.9rem 2.6rem 0.9rem 1.4rem;
    /*border-radius: 999px;*/
    background: black;
    border: 1px solid pink;
    color: white;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.shop-toast-link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: pink;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.shop-toast-link:hover {
    color: #faf6e9;
}

.shop-toast-close {
    position: absolute;
    top: 0.15rem;
    right: 0.35rem;
    padding: 0.1rem 0.3rem;
    border: 0;
    background: none;
    color: white;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.shop-toast-close:hover {
    color: pink;
}

[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .shop-card {
        flex-direction: column;
    }

    .shop-card-image {
        width: 100%;
        min-width: 0;
        align-self: auto;
    }

    .shop-card-body {
        padding: 1.3rem;
    }

    .shop-card:not(.shop-card-expanded) .shop-card-desc-rest {
        display: none;
    }

    .shop-card-more {
        display: inline-block;
        align-self: flex-start;
        padding: 0.35rem 1.1rem;
        border: 1px solid pink;
        background: thistle;
        color: #231858;
        font: inherit;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .shop-card-more:hover {
        background: #101436;
        color: #faf6e9;
    }
}

@media (max-width: 620px) {
    .gh-shop {
        padding: 2rem 1rem 4rem;
    }

    .shop-toolbar {
        position: static;
        margin-bottom: 1.6rem;
    }

    .shop-field-row {
        grid-template-columns: 1fr;
    }
}

