/* Custom styles for Ultimate Raffle Extension */

/* Timer container - remove default green background and set base font-size for scaling */
.asp-rfw-raffle-duration-timer-shop {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: auto;
    color: #000000 !important;
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    /* Base font-size scales with container - responsive scaling based on container width */
    font-size: clamp(0.625rem, 2.5vw, 1rem); /* Scales between 10px and 16px, responsive to viewport */
}

/* Scale timer based on product card width for better container-relative sizing */
.woocommerce ul.products li.product .asp-rfw-raffle-duration-timer-shop {
    font-size: clamp(0.625rem, 2.5vw, 1rem);
}

/* Alternative: Scale based on container width using percentage (if container has defined width) */
@supports (container-type: inline-size) {
    .woocommerce ul.products li.product {
        container-type: inline-size;
    }
    .woocommerce ul.products li.product .asp-rfw-raffle-duration-timer-shop {
        font-size: clamp(0.625rem, 8cqw, 1rem); /* 8% of container width, capped at 16px */
    }
}

/* Each timer element (Days, Hours, Minutes, Seconds) as individual card */
.asp-rfw-raffle-duration-timer-shop .asp-rfw-duration-timer-type {
    margin: 0 0.4em !important; /* 4px equivalent at base size */
    font-size: 1em !important; /* Relative to parent */
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: top;
    box-sizing: border-box;
    min-width: 5em; /* 50px equivalent at base size */
    color: #000000;
}

/* Hide the <br/> tag between number cards and labels */
.asp-rfw-raffle-duration-timer-shop .asp-rfw-duration-timer-type br {
    display: none !important;
}

/* Add spacing between timer cards */
.asp-rfw-raffle-duration-timer-shop .asp-rfw-duration-timer-type:not(:last-child) {
    margin-right: 0.8em !important; /* 8px equivalent at base size */
}

/* Container for multiple digits */
.asp-rfw-raffle-duration-timer-shop .flip-digits-container {
    display: inline-flex;
    gap: 0.2em; /* 2px equivalent at base size */
    margin-bottom: 0.6em; /* 6px equivalent at base size */
    align-items: flex-start;
}

/* Flip Counter Wrapper - one per digit */
.asp-rfw-raffle-duration-timer-shop .flip-counter-wrapper {
    display: inline-block;
    width: auto;
    min-width: 3.5em; /* 35px equivalent at base size */
    margin-bottom: 0.6em; /* 6px equivalent at base size */
    perspective: 100em; /* Scales with font-size */
    height: 6em; /* 60px equivalent at base size */
    position: relative;
}

/* Flip Counter Card Container */
.asp-rfw-raffle-duration-timer-shop .flip-counter-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Bottom half of the flip card - stays still */
.asp-rfw-raffle-duration-timer-shop .flip-counter-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background-color: #ffffff !important;
    border: 0.2em solid #000000 !important; /* 2px equivalent */
    border-top: 0.1em solid #000000 !important; /* 1px equivalent */
    border-radius: 0 0 0.8em 0.8em !important; /* 8px equivalent */
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.2em; /* 2px equivalent */
    box-sizing: border-box;
    z-index: 1;
}

/* Top half of the flip card - flips down */
.asp-rfw-raffle-duration-timer-shop .flip-counter-top {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background-color: #ffffff !important;
    border: 0.2em solid #000000 !important; /* 2px equivalent */
    border-bottom: 0.1em solid #000000 !important; /* 1px equivalent */
    border-radius: 0.8em 0.8em 0 0 !important; /* 8px equivalent */
    overflow: hidden;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    box-sizing: border-box;
    z-index: 3;
    transition: transform 0.6s ease-in-out;
}

/* Front face of top half */
.asp-rfw-raffle-duration-timer-shop .flip-counter-top-front {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transform: rotateX(0deg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.2em; /* 2px equivalent */
    box-sizing: border-box;
}

/* Back face of top half - shows next number during flip */
.asp-rfw-raffle-duration-timer-shop .flip-counter-top-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transform: rotateX(180deg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.2em; /* 2px equivalent */
    box-sizing: border-box;
}

/* Flip animation - top half rotates all the way down (180deg) */
.asp-rfw-raffle-duration-timer-shop .flip-counter-card.flip .flip-counter-top {
    transform: rotateX(-180deg);
}

/* Inner content for top half - shows only top half of digit */
.asp-rfw-raffle-duration-timer-shop .flip-counter-top-inner {
    font-weight: 600;
    font-size: 2.8em !important; /* 28px equivalent at base size */
    line-height: 1;
    color: #000000;
    width: 100%;
    text-align: center;
    position: relative;
    height: 5.6em; /* 56px equivalent at base size */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: inset(0 0 50% 0);
    margin-bottom: -2.8em; /* -28px equivalent */
}

/* Inner content for bottom half - shows only bottom half of digit */
.asp-rfw-raffle-duration-timer-shop .flip-counter-bottom-inner {
    font-weight: 600;
    font-size: 2.8em !important; /* 28px equivalent at base size */
    line-height: 1;
    color: #000000;
    width: 100%;
    text-align: center;
    position: relative;
    height: 5.6em; /* 56px equivalent at base size */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: inset(50% 0 0 0);
    margin-top: -2.8em; /* -28px equivalent */
}

/* Shadow/divider line in the middle */
.asp-rfw-raffle-duration-timer-shop .flip-counter-shadow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0.2em; /* 2px equivalent */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

/* Hide original number spans when flip counter is active */
.asp-rfw-raffle-duration-timer-shop .flip-counter-wrapper + .asp-rfw-days-span,
.asp-rfw-raffle-duration-timer-shop .flip-counter-wrapper + .asp-rfw-hours-span,
.asp-rfw-raffle-duration-timer-shop .flip-counter-wrapper + .asp-rfw-minutes-span,
.asp-rfw-raffle-duration-timer-shop .flip-counter-wrapper + .asp-rfw-seconds-span {
    display: none !important;
}

/* Fallback for numbers not yet wrapped in flip structure */
.asp-rfw-raffle-duration-timer-shop .asp-rfw-duration-timer-type .asp-rfw-days-span:not(:has(+ .flip-counter-wrapper)),
.asp-rfw-raffle-duration-timer-shop .asp-rfw-duration-timer-type .asp-rfw-hours-span:not(:has(+ .flip-counter-wrapper)),
.asp-rfw-raffle-duration-timer-shop .asp-rfw-duration-timer-type .asp-rfw-minutes-span:not(:has(+ .flip-counter-wrapper)),
.asp-rfw-raffle-duration-timer-shop .asp-rfw-duration-timer-type .asp-rfw-seconds-span:not(:has(+ .flip-counter-wrapper)) {
    display: block;
    font-weight: 600;
    font-size: 2.8em !important; /* 28px equivalent at base size */
    line-height: 1.2;
    background-color: #ffffff !important;
    border: 0.2em solid #000000 !important; /* 2px equivalent */
    border-radius: 0.8em !important; /* 8px equivalent */
    padding: 1.2em 0.8em !important; /* 12px 8px equivalent */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.6em; /* 6px equivalent */
}

/* Hide competition status when timer is running (only show when finished) */
/* JavaScript will add a class to handle this, but CSS fallback: */
.woocommerce ul.products li.product .asp-rfw-raffle-status-shop:not(.finished) {
    display: none !important;
}

/* Show status when finished */
.woocommerce ul.products li.product .asp-rfw-raffle-status-shop.finished {
    display: block !important;
}

/* Hide star ratings - multiple selectors to catch all variations */
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .woocommerce-product-rating,
.woocommerce ul.products li.product .woocommerce .star-rating,
.woocommerce ul.products li.product .woocommerce-loop-product__rating,
.woocommerce ul.products li.product .woocommerce-loop-product__title + .star-rating,
.woocommerce ul.products li.product .woocommerce-loop-product__title ~ .star-rating {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Product image container - make it relative for sticker positioning */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    position: relative;
    display: block;
}

/* Product image - make it relative for sticker positioning */
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img.wp-post-image,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
    position: relative;
    display: block;
}

/* Hide price sticker on product image */
.woocommerce ul.products li.product .price-sticker,
.woocommerce ul.products li.product .woocommerce-loop-product__link .price,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link .price,
.woocommerce ul.products li.product img + .price {
    display: none !important;
}


/* Hide price in its original location */
.woocommerce ul.products li.product .woocommerce-loop-product__title + .price,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title + .price,
.woocommerce ul.products li.product .woocommerce-loop-product__title ~ .price:not(.price-sticker) {
    display: none !important;
}

/* Remove padding on product items */
.woocommerce ul.products li.product {
    padding: 0 !important;
}

/* Product card wrapper/details area */
.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product .product-wrapper,
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    padding: 5px !important;
}

/* Product summary/details section */
.woocommerce ul.products li.product .summary,
.woocommerce ul.products li.product .product-details-wrapper,
.woocommerce ul.products li.product .product_meta {
    padding: 5px !important;
}

/* Details container - hide completely (contains duplicate price) */
.woocommerce ul.products li.product .details-container {
    display: none !important;
}

/* Hide shopping cart overlay button on product image */
.woocommerce ul.products li.product .overlay-components,
.woocommerce ul.products li.product .overlay-container,
.woocommerce ul.products li.product .thumbnail-overlay,
.woocommerce ul.products li.product .component.add-to-cart,
.woocommerce ul.products li.product a.add_to_cart_button {
    display: none !important;
}

/* Sale badge - corner ribbon at 45 degree angle */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product span.onsale,
.woocommerce span.onsale {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background: #940000 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 5px 0px !important;
    margin: 0 !important;
    z-index: 20 !important;
    transform: rotate(-45deg) translate(-30%, -50%) !important;
    transform-origin: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    border-radius: 0 !important;
    min-width: 80px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    clip: auto !important;
    width: auto !important;
    height: auto !important;
}

/* Ribbon effect - create the folded corner look with triangles */
.woocommerce ul.products li.product .onsale::before,
.woocommerce ul.products li.product span.onsale::before,
.woocommerce span.onsale::before {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 0 !important;
    border-top: 6px solid #6d0000 !important;
    transform: rotate(45deg) !important;
    transform-origin: top left !important;
}

.woocommerce ul.products li.product .onsale::after,
.woocommerce ul.products li.product span.onsale::after,
.woocommerce span.onsale::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border-right: 4px solid transparent !important;
    border-left: 0 !important;
    border-top: 6px solid #6d0000 !important;
    transform: rotate(-45deg) !important;
    transform-origin: top right !important;
}

/* Ensure product image container is positioned relative for absolute positioning */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    position: relative !important;
    overflow: hidden !important;
}

/* Product grid container - set width to 1320px on desktop */
/* Target all possible container elements to ensure 1320px width */
body.woocommerce-page .container,
.woocommerce-page .container,
.container {
    max-width: 1320px !important;
}

@media (min-width: 1200px) {
    body.woocommerce-page,
    body.woocommerce-page .site,
    body.woocommerce-page .site-content,
    body.woocommerce-page .content-area,
    body.woocommerce-page .site-main,
    body.woocommerce-page .woocommerce,
    body.woocommerce-page .woocommerce-page,
    .woocommerce-page .woocommerce,
    .woocommerce-page .entry-content,
    .woocommerce-page .wp-block-group,
    body.woocommerce-page .woocommerce-products-header + ul.products,
    body.woocommerce-page .woocommerce-products-header ~ ul.products,
    .woocommerce-page .wrapper,
    .woocommerce-page .content-wrapper,
    body.woocommerce-page .main-content,
    body.woocommerce-page #main,
    body.woocommerce-page #content,
    body.woocommerce-page .page-content {
        max-width: 1320px !important;
    }
}

/* Ensure the products list itself is 1320px and display in 4 columns */
.woocommerce ul.products {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important; /* Maximum 10px gap */
}

/* Ensure product items take up proper width in 4-column grid */
.woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Reduce padding on woocommerce-loop-product-content from 30px to 10px */
.woocommerce ul.products li.product .woocommerce-loop-product-content,
.woocommerce-loop-product-content {
    padding: 10px !important;
}

/* Responsive adjustments - maintain 4 columns on larger screens */
@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Tablet - 2 columns */
@media (max-width: 1199px) and (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   CUSTOM SHOP CARD LAYOUT STYLES
   ============================================ */

/* Main wrapper for shop card content */
.ur-ext-shop-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

/* Timer Section - Red button with timer and Auto/Live Draw button */
/* Positioned directly below image, before title (matching Pristine Competitions) */
.ur-ext-shop-timer-section {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin: 12px 0 8px 0 !important; /* Space below image and before title */
    padding: 0 5px !important; /* Small padding so buttons don't touch container edges */
    order: -1; /* Ensure it appears early in flex order if needed */
}

/* Ensure timer appears after image link in product card */
.woocommerce ul.products li.product a.woocommerce-loop-product__link + .ur-ext-shop-timer-section,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link + .ur-ext-shop-timer-section {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}

/* Red pill-shaped timer bubble */
.ur-ext-shop-timer-pill {
    background-color: #dc2626 !important; /* Red */
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important; /* 8px border radius */
    padding: 4px !important; /* 4px all around */
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center the content */
    gap: 8px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3) !important;
    line-height: 1.2;
    text-align: center; /* Center text */
}

.ur-ext-timer-label {
    font-weight: 700;
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: #ffffff !important;
}

/* Simple timer display DD:HH:MM:SS - horizontal text at 0.6em */
.ur-ext-timer-display {
    font-weight: 700;
    font-size: 0.6em;
    color: #ffffff !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    display: inline;
}

.ur-ext-timer-display span {
    color: #ffffff !important;
}

/* Auto Draw / Live Draw button */
.ur-ext-shop-draw-button {
    background-color: #f3f4f6 !important; /* Light grey */
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 4px !important; /* 4px all around */
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.ur-ext-shop-draw-button:hover {
    background-color: #e5e7eb !important;
    border-color: #9ca3af !important;
}

.ur-ext-shop-draw-button.live-draw {
    background-color: #fef3c7 !important; /* Light yellow for live draw */
    border-color: #fbbf24 !important;
    color: #92400e !important;
}

.ur-ext-shop-draw-button.live-draw:hover {
    background-color: #fde68a !important;
}

.ur-ext-draw-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Cash Alternative */
.ur-ext-shop-cash-alternative {
    font-size: 14px;
    color: #374151;
    margin: 0;
}

.ur-ext-shop-cash-alternative strong {
    font-weight: 700;
    color: #000000;
}

/* Entry Section */
.ur-ext-shop-entry-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Quantity selector styling - text box with +/- buttons */
/* Seamless joined component matching Pristine Competitions */
.woocommerce ul.products li.product .quantity,
.ur-ext-shop-entry-section .quantity,
.ur-ext-shop-entry-section .asp-rfw-quantity-range-slider {
    display: block !important;
    margin: 0 auto !important;
    margin-bottom: 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    width: fit-content !important;
}

/* Wrapper div for quantity controls */
.ur-quantity-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
    justify-content: center !important;
    width: fit-content !important;
    margin: 0 auto !important;
}

.ur-quantity-wrapper input[type="number"],
.ur-quantity-wrapper .qty,
.woocommerce ul.products li.product .quantity input[type="number"],
.woocommerce ul.products li.product .quantity .qty,
.ur-ext-shop-entry-section .quantity input[type="number"],
.ur-ext-shop-entry-section .quantity .qty {
    width: 80px !important;
    min-width: 80px !important;
    height: 48px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    border-top: 2px solid #000000 !important;
    border-bottom: 2px solid #000000 !important;
    border-left: 1px solid #d1d5db !important; /* Subtle divider from minus button */
    border-right: 1px solid #d1d5db !important; /* Subtle divider from plus button */
    border-radius: 0 !important; /* No radius on input */
    appearance: textfield; /* Remove spinner arrows */
    -moz-appearance: textfield; /* Remove spinner arrows in Firefox */
    display: block !important;
    visibility: visible !important;
    margin: 0 !important;
    box-sizing: border-box;
    position: relative !important; /* Ensure not positioned absolutely */
    flex-shrink: 0;
    flex-grow: 0;
    z-index: 1;
}

.woocommerce ul.products li.product .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce ul.products li.product .quantity input[type="number"]::-webkit-inner-spin-button,
.ur-ext-shop-entry-section .quantity input[type="number"]::-webkit-outer-spin-button,
.ur-ext-shop-entry-section .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Remove spinner arrows in Chrome/Safari */
    margin: 0;
}

/* +/- buttons - same height as input, joined seamlessly */
.ur-quantity-wrapper .minus,
.ur-quantity-wrapper .plus,
.woocommerce ul.products li.product .quantity .minus,
.woocommerce ul.products li.product .quantity .plus,
.ur-ext-shop-entry-section .quantity .minus,
.ur-ext-shop-entry-section .quantity .plus {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border: 2px solid #000000 !important;
    background-color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0 !important;
    flex-shrink: 0;
    flex-grow: 0;
    margin: 0 !important;
    box-sizing: border-box;
    position: relative !important; /* Ensure not positioned absolutely */
    z-index: 1;
}

/* Minus button - rounded left corners, no right border */
.ur-quantity-wrapper .minus,
.woocommerce ul.products li.product .quantity .minus,
.ur-ext-shop-entry-section .quantity .minus {
    border-radius: 6px 0 0 6px !important;
    border-right: none !important; /* Seamless join with input */
}

/* Plus button - rounded right corners, no left border */
.ur-quantity-wrapper .plus,
.woocommerce ul.products li.product .quantity .plus,
.ur-ext-shop-entry-section .quantity .plus {
    border-radius: 0 6px 6px 0 !important;
    border-left: none !important; /* Seamless join with input */
}

.woocommerce ul.products li.product .quantity .minus:hover,
.woocommerce ul.products li.product .quantity .plus:hover,
.ur-ext-shop-entry-section .quantity .minus:hover,
.ur-ext-shop-entry-section .quantity .plus:hover {
    background-color: #f3f4f6 !important;
}

/* Price per entry - simple black text */
.ur-ext-shop-price-per-entry {
    text-align: center;
    font-size: 14px;
    color: #000000;
    font-weight: 400;
    margin: 8px 0;
}

.ur-ext-shop-price-per-entry .ur-ext-price-amount {
    font-weight: 600;
    color: #000000;
}

.ur-ext-shop-price-per-entry .ur-ext-per-entry-text {
    color: #000000;
    font-weight: 400;
}

/* Progress bar styling */
.ur-ext-shop-entry-section .asp-rfw-progress-bar-wrapper,
.ur-ext-shop-entry-section .asp-rfw-progress-bar-wrapper-shop {
    margin: 0 !important;
}

.ur-ext-shop-entry-section .asp-rfw-progress-bar {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.ur-ext-shop-entry-section .asp-rfw-progress-bar::-webkit-progress-bar {
    background-color: #e5e7eb;
    border-radius: 10px;
}

.ur-ext-shop-entry-section .asp-rfw-progress-bar::-webkit-progress-value {
    background-color: #B0955B; /* Gold */
    border-radius: 10px;
    transition: width 0.3s ease;
}

.ur-ext-shop-entry-section .asp-rfw-progress-bar::-moz-progress-bar {
    background-color: #B0955B; /* Gold */
    border-radius: 10px;
}

.ur-ext-shop-entry-section .asp-rfw-progress-bar-content-span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Enter Now button */
.ur-ext-shop-enter-button {
    width: 100% !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px !important;
}

.ur-ext-shop-enter-button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Alternative Postal Entry link */
.ur-ext-shop-postal-entry {
    text-align: center;
    margin-top: 4px;
}

.ur-ext-shop-postal-entry .ur-ext-postal-entry-link {
    color: #6b7280;
    font-size: 12px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ur-ext-shop-postal-entry .ur-ext-postal-entry-link:hover {
    color: #374151;
}

/* Hide default shop loop elements we're replacing */
.woocommerce ul.products li.product .asp-rfw-raffle-status-shop {
    display: none !important;
}

/* Responsive adjustments for shop cards */
@media (max-width: 768px) {
    .ur-ext-shop-timer-section {
        flex-direction: column;
    }
    
    .ur-ext-shop-timer-button,
    .ur-ext-shop-draw-button {
        width: 100%;
    }
}


