/* Only apply these styles when slider layout is used */
.hotspot-slider-layout .hotspot-slider-container {
    max-width: 100%;
    margin: 0 auto;
}

.hotspot-slider-layout .shop-by-room-container {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 50px;
}

/* Swiper customization */
.hotspot-slider-layout .shop-by-room-images {
    width: 100%;
}

.hotspot-slider-layout .shop-by-room-image-container {
    transition: transform 0.3s ease;
    background-color: #fff;
    height: auto;
    box-sizing: border-box;
    border: 3px solid #fff;
}

.hotspot-slider-layout .shop-by-room-image-container a {
    display: flex;
    flex-direction: column;
    padding: 10px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Quantity controls inside slides */
.hotspot-slider-layout .slide-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hotspot-slider-layout .slide-qty-input {
    width: 30px;
    text-align: center;
    margin: 0 5px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #0a88a4;
    background-color: transparent;
    text-align: center !important;
}

.hotspot-slider-layout .slide-qty-btn {
    background-color: #eceeef;
    border: 1px solid #ddd;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    color: #333;
}

.hotspot-slider-layout .slide-qty-btn:hover {
    background-color: white !important;
}

/* Match number input spin-button behaviour from main layout */
.hotspot-slider-layout .slide-qty-input::-webkit-inner-spin-button,
.hotspot-slider-layout .slide-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hotspot-slider-layout .slide-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.hotspot-slider-layout .shop-by-room-image-container img {
    width: 100%;
    height: auto;
    max-width: 96px;
    display: block;
    margin: 0 auto;
}

.hotspot-slider-layout .shop-by-room-image-container.active {
    border: 3px solid #0A88A4;
    border-radius: 4px;
    z-index: 1;
    transition: all 0.1s ease;
}

/* Navigation arrows */
.hotspot-slider-layout .swiper-button-prev {
    left: 0;
}

.hotspot-slider-layout .swiper-button-next {
    right: 0;
}

.hotspot-slider-layout .swiper-button-prev,
.hotspot-slider-layout .swiper-button-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.hotspot-slider-layout .swiper-button-prev:hover,
.hotspot-slider-layout .swiper-button-next:hover {
    background: #0A88A4;
    color: #fff;
}

.hotspot-slider-layout .swiper-button-prev:after,
.hotspot-slider-layout .swiper-button-next:after {
    font-size: 16px;
}

.hotspot-slider-layout .swiper-button-disabled {
    opacity: 1;
    pointer-events: auto !important;
    cursor: pointer;
}

/* Hotspots */
.hotspot-slider-layout .room-hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.9);
    border: 0.125rem solid #737373;
    box-shadow: 0 0 0.375rem 0.0625rem #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.1s ease;
    opacity: 0.8;
    z-index: 5;
}

.hotspot-slider-layout .room-hotspot:hover {
    box-shadow: 0 0 0.375rem 0.01rem #fff;
    background: #61a3aa;
    transition: all 300ms linear;
    opacity: 0.7;
}

/* Product info */
.hotspot-slider-layout .product-info {
    padding: 0;
    text-align: center;
}

.hotspot-slider-layout .product-info h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    text-decoration: none;
}

.hotspot-slider-layout a {
    text-decoration: none;
}

.hotspot-slider-layout .product-info .price {
    color: #0A88A4;
    font-weight: bold;
    margin: 5px 0;
}

.hotspot-slider-layout .slider-popup-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.hotspot-popup .add-to-cart-btn {
    background-color: #0A88A4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
}

/* Messages wrapper at top */
.hotspot-slider-layout .slider-messages-wrapper {
    margin-bottom: 20px;
    text-align: center;
    transition: margin-bottom 0.1s ease;
}

.hotspot-slider-layout .slider-messages-wrapper:empty,
.hotspot-slider-layout .slider-messages-wrapper.hidden {
    margin-bottom: 0;
}

/* Add All Products to Cart Button */
.hotspot-slider-layout .slider-add-to-cart-wrapper {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.hotspot-slider-layout .slider-add-all-to-cart-btn {
    background-color: #0A88A4;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.hotspot-slider-layout .slider-add-all-to-cart-btn:hover {
    background-color: #088099;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 136, 164, 0.3);
}

.hotspot-slider-layout .slider-add-all-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hotspot-slider-layout .slider-add-all-form {
    display: inline-block;
    margin: 0;
}

.hotspot-slider-layout .slider-add-to-cart-success {
    margin: 0 auto;
    padding: 12px 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    max-width: 500px;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotspot-slider-layout .slider-add-to-cart-success.show {
    opacity: 1;
    animation: fadeOut 0.3s ease 3s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.hotspot-slider-layout .slider-add-to-cart-success .woocommerce-message {
    margin: 0;
    color: #155724;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.hotspot-slider-layout .slider-add-to-cart-error {
    margin: 0 auto;
    padding: 12px 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    max-width: 500px;
    display: block;
}

.hotspot-slider-layout .slider-add-to-cart-error .woocommerce-error {
    margin: 0;
    color: #721c24;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}