/* Gemensamma regler */
.valign-middle {
    vertical-align: middle !important;
}

table tr td:last-child {
    white-space: nowrap;
    width: 1px;
}

#checkoffer-message {
    text-align: center;
    color: red;
}

#discountInfo {
    margin-top: 5px;
}

#qtyUpdateButton:disabled {
    opacity: 0.5;
}

.boxed {
    border: 1px solid #dddddd;
    border-collapse: separate;
    border-radius: 4px;
}

.qtyAdjustBtn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #d9dde5;
    background: #fff;
    color: #1f2937;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.qtyAdjustBtn:hover {
    background: #f5f7fa;
    border-color: #bfc7d3;
}

.qtyAdjustBtn:active {
    transform: scale(0.94);
}

.qtyAdjustGrid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cpitem {
    min-width: 28px;
    text-align: center;
    font-weight: 500;
    color: #1f2937;
}
.qtyAdjustCol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Checkout Offer - Responsiv och smidig */
.checkoutOffer-carousel {
    max-width: 340px;
    width: 100%;
    margin: auto;
    position: relative;
    margin-bottom: 5px;
    overflow: hidden;
}

.checkoutOffer-frame {
    border: 2px dashed #000;
    padding: 0;
    background: #fff;
    overflow: hidden;
    position: relative;
    height: 350px;
    display: none;
}

.checkoutOffer-content {
    transition: transform 0.4s ease, opacity 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.checkoutOffer-price {
    background: yellow;
    display: inline-block;
    padding: 0.4em 1.2em;
    border-radius: 50px;
    font-size: 2.5rem;
    color: red;
    font-weight: bold;
    max-width: 220px;
    margin: 5px auto 0 auto;
}

.checkoutOffer-btn {
    background-color: #0a0;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0.8em auto 0 auto;
    display: block;
}

.checkoutOffer-btn:disabled {
    background: gray;
    cursor: not-allowed;
}

.checkoutOffer-overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.75);
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.checkoutOffer-overlay img {
    width: 100px;
}

/* Pilar */
.arrow {
    position: absolute;
    top: 47%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 50;
    user-select: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.arrow.left {
    left: 5px;
}

.arrow.right {
    right: 5px;
}

.arrow.dimmed {
    opacity: 0.4;
    pointer-events: none;
}

/* Navigeringsprickar */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.5rem;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bbb;
}

.pagination-dot.active {
    background: #000;
}

/* Extra för små skärmar */
@media (max-width: 400px) {
    .checkoutOffer-price {
        padding: 0.3em 0.8em;
    }

    .checkoutOffer-btn {
        padding: 0.4rem 1rem;
    }

    .arrow {
        padding: 0.3rem 0.5rem;
    }
}
