
.kobo-gift-top-banner {
    border: 2px solid #0052cc;
    background-color: #ffffff;
    color: #333333;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-align: left;
}

.kobo-gifts-wrapper {
    margin: 30px 0;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
}

.kobo-gifts-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222222;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kobo-gifts-grid{
    display: none ;
}

.kobo-gifts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.kobo-gift-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    width: 220px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kobo-gift-image img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 15px;
}

.kobo-gift-name {
    font-size: 14px;
    font-weight: 600;
    color: #444444;
    margin: 10px 0 15px 0;
    min-height: 40px;
    line-height: 1.4;
}

.button.kobo-select-gift-btn {
    background-color: #ccc !important;
    color: #333333 !important;
    font-weight: bold !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px !important;
    width: 100%;
}

.button.kobo-select-gift-btn:hover {
    background-color: #d4d4d4 !important;
}

.kobo-gifts-wrapper.mini-cart {
    border-top: 1px solid #e0e0e0;
    padding: 15px 10px;
    margin: 15px 0;
}
.kobo-gifts-wrapper.mini-cart .kobo-gift-card {
    width: 100%;
    max-width: 100%;
}

.kobo-product-thresholds-box {
    border: 1px solid #ffccd5;
    background-color: #fff9fa;
    border-radius: 4px;
    padding: 20px;
    margin: 25px 0;
    font-family: inherit;
}

.kobo-thresholds-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.kobo-thresholds-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 25px;
    padding: 0 10px;
}

.kobo-timeline-item {
    text-align: center;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.kobo-timeline-item.achieved {
    opacity: 1;
}

.kobo-timeline-img img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 3px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.kobo-timeline-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin-bottom: 8px;
    z-index: 2;
}

.kobo-timeline-item.achieved .kobo-timeline-dot {
    background-color: #ff4d6d;
}

.kobo-timeline-label {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.kobo-thresholds-footer-notice {
    text-align: center;
    font-size: 13px;
    color: #444;
    border-top: 1px dashed #ffccd5;
    padding-top: 15px;
}

.kobo-old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 4px;
}

.kobo-gifts-wrapper.kobo-context-cart-page {
    border-top: 1px solid #e0e0e0 !important;
    padding: 0 5px !important;
    margin: 0 0 !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.kobo-gifts-wrapper.kobo-context-cart-page .kobo-gifts-grid {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding: 5px 2px 15px 2px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff4d6d #f0f0f0;
}

.kobo-gifts-wrapper.kobo-context-cart-page .kobo-gifts-grid::-webkit-scrollbar {
    height: 5px;
}
.kobo-gifts-wrapper.kobo-context-cart-page .kobo-gifts-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.kobo-gifts-wrapper.kobo-context-cart-page .kobo-gifts-grid::-webkit-scrollbar-thumb {
    background: #ff4d6d;
    border-radius: 10px;
}

.kobo-gifts-wrapper.kobo-context-cart-page .kobo-gift-card {
    flex: 0 0 40% !important;
    width: 40% !important;
    max-width: 40% !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    margin-bottom: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.kobo-gifts-wrapper.kobo-context-cart-page .kobo-gift-image {
    margin-bottom: 8px !important;
    display: block !important;
    text-align: center !important;
}

.kobo-gifts-wrapper.kobo-context-cart-page .kobo-gift-image img {
    max-height: 100px !important;
    width: auto !important;
    display: inline-block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.kobo-gifts-wrapper.kobo-context-cart-page .kobo-gift-name {
    font-size: 12px !important;
    line-height: 1.3 !important;
    min-height: 34px !important;
    margin: 5px 0 10px 0 !important;
    display: block !important;
}

.kobo-gifts-wrapper.mini-cart .button.kobo-select-gift-btn {
    padding: 8px 15px !important;
    font-size: 12px !important;
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
}



.kobo-thresholds-timeline.kobo-carousel-active {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 15px !important;
    padding: 15px 5px 20px 5px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff4d6d #f0f0f0;
    position: relative !important;
}

.kobo-thresholds-timeline.kobo-carousel-active::-webkit-scrollbar {
    height: 5px;
}
.kobo-thresholds-timeline.kobo-carousel-active::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.kobo-thresholds-timeline.kobo-carousel-active::-webkit-scrollbar-thumb {
    background: #ff4d6d;
    border-radius: 10px;
}

.kobo-thresholds-timeline.kobo-carousel-active .kobo-timeline-item {
    flex: 0 0 20% !important;
    width: 20% !important;
    max-width: 20% !important;
    scroll-snap-align: start !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.kobo-thresholds-timeline.kobo-carousel-active::before {
    width: max-content !important;
    min-width: 100% !important;
}

.kobo-gift-card .kobo-gift-price-box{
    margin-bottom: 12px; 
    font-size: 13px; 
    text-align: center;
}

.kobo-gift-card .kobo-old-price{
    text-decoration: line-through; 
    opacity: 0.6; 
    margin-right: 6px;
}

.kobo-gift-card .kobo-gift-promo-price{
    color: #000; 
    font-size: 1.1em;
}

.mfn-cart-holder .kobo-gifts-grid {
    display: none;
}

.woocommerce-cart-form .kobo-toggle-icon{
    display: none;
}