/* 
 Theme Name:   Coolpinguin Child Theme
 Theme URI:    #
 Description:  #
 Author:       Jazmove
 Author URI:   #
 Template:     coolpinguin
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

:root {
    --color-blue-50: #f0faff;
    --color-blue-100: #e0f3fe;
    --color-blue-200: #bae9fd;
    --color-blue-300: #7ed9fb;
    --color-blue-400: #0fafe8;
    --color-blue-500: #0470a0;
    --color-blue-600: #085f84;
    --color-blue-700: #083046;
    --color-blue-800: #f18412;
    --color-blue-900: #e36f13;
    --color-blue-950: #2C80B3;
}

small.woocommerce-price-suffix {
	display:none;
}

/* Custom Notyf styling to match theme */
.notyf {
    font-family: inherit;
}

.notyf__toast {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


.notyf__toast--success {
    background: #10b981;
}

.notyf__toast--error {
    background: #ef4444;
}

.notyf__toast--warning {
    background: #f59e0b;
}

.notyf__toast--info {
    background: #3b82f6;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    letter-spacing: 0px !important;
}

.woocommerce-info {
    font-size: 1rem;
    line-height: 1.6em;
}

ul.woocommerce-error {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6rem;
}

ul.woocommerce-error strong {
    font-weight: 500;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__submit {
    font-weight: 500;
    float: left;
    margin-right: 1em;
    font-size: 1rem;
    background: #083046;
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__submit:hover,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit:focus {
    background: #1a9bb9;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 155, 185, 0.15);
}

form.woocommerce-form.woocommerce-form-login.login p {
    margin-bottom: 12px;
    font-size: 1rem;
}


@media (max-width: 768px) {
    .col2-set#customer_details, #order_review.woocommerce-checkout-review-order {
        padding: 0px;
    }

    form.checkout.woocommerce-checkout {
        background: #f8fafc;
    }
}



div#price-summary {
    position: relative;
    z-index: 0;
}

/* Rental Product Specific Styles */
.approach-card {
    transition: all 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.approach-card.active {
    border-color: #085f84;
    border: 1px solid #085f84;
}

.approach-card:not(.active) {
    border-color: #d1d5db;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
}

#period-cards {
    max-height: 400px;
    min-height: auto;
}

.approach-card:not(.active) h4 {
    color: #3a3a3a;
}

div#price-summary {
    position: relative;
    z-index: 0;
}

.approach-card:not(.active) p {
    color: #66696e;
}

/* Quantity with stock styles */
#stock-indicator.in-stock {
    background-color: #dcfce7;
    color: #166534;
}

#stock-indicator.limited-stock {
    background-color: #fef3c7;
    color: #92400e;
}

#stock-indicator.out-of-stock {
    background-color: #fee2e2;
    color: #991b1b;
}

.period-card {
    box-shadow: none;
}

.rental-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.rental-type-badge.rental {
    color: #1e40af;
    background-color: #dbeafe;
}

.quantity {
    height: 100% !important;
    margin: 0px !important;
}

@media (max-width: 767px) {
    .addons-class {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Global Styles for All Products */
.swiper-button-next, .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    width: 40px !important;
    height: 40px !important;
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2)) !important;
    z-index: 10 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: 700 !important;
}

nav.woocommerce-breadcrumb {
    margin-bottom: 22px;
}
	
.product-video-container {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.product-video-container video,
.product-video-container iframe {
    width: 100%;
    height: auto;
    display: block;
}

.product-video-container .video-description {
    padding: 0.75rem;
    background: #f9fafb;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.specification-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.specification-item i {
    margin-right: 0.625rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.specification-item .fallback-icon {
    color: #000;
    margin-right: 0.625rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.no-specifications {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 2px dashed #d1d5db;
    color: #6b7280;
}

@media (max-width: 768px) {
    .grid-cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.swiper-main {
    height: auto;
    margin-bottom: 16px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
}

.swiper-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.swiper-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-thumbs {
    height: 100px;
}

.swiper-thumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    overflow: hidden;
}

.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.swiper-thumbs .swiper-slide:hover {
    opacity: 0.9;
}

.swiper-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Thumbnail Overlay */
.video-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-thumb-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.video-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.video-thumb-overlay:hover .video-play-icon {
    transform: scale(1.1);
}

.video-play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
}

/* Video Popup */
.video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-popup.active {
    opacity: 1;
    visibility: visible;
}

.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-popup.active .video-popup-content {
    transform: scale(1);
}

.video-popup video,
.video-popup iframe {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 0.5rem;
}

.video-popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgb(255 255 255 / 13%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-popup-close svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Custom Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

/* Zoom Effect */
.swiper-main .swiper-slide.zoom-active img {
    cursor: zoom-out;
    transform: scale(2);
    transition: transform 0.3s ease;
}

.swiper-main .swiper-slide img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Loading Animation */
.gallery-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
	
small.price-period {
    font-size: var(--text-sm);
}	

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .swiper-main {
        height: 350px;
    }
    
    .swiper-thumbs {
        height: 70px;
    }
    
    .video-play-icon {
        width: 50px;
        height: 50px;
    }
}

/* Standard Quantity Controls */
.standard-quantity {
    height: 100% !important;
    margin: 0px !important;
}

input:disabled {
    background: #ededed;
}

select:disabled {
    background: #ededed;
}

/* Remove any old alert container styles since we're using Notyf */
#alert-container,
#standard-alert-container {
    display: none !important;
}

.woocommerce-privacy-policy-text p {
    font-size: 1rem;
    font-weight: 400;
}


                /* Accordion styles */
                .cart_item .product-name {
                    position: relative;
                    padding-right: 35px !important;
                }
                .cart_item .variation {
                    max-height: 500px;
                    overflow: hidden;
                    transition: all 0.3s ease;
                    margin-top: 10px !important;
                    margin-bottom: 5px !important;
                    border-left: 0px solid #e5e7eb;
                    padding-left: 0px !important;
                }
                .cart_item.collapsed .variation {
                    max-height: 0;
                    opacity: 0;
                    margin: 0 !important;
                    padding: 0 !important;
                }
                .cpss-toggle-btn {
                    position: absolute;
                    top: 50%;
                    right: 8px;
                    transform: translateY(-50%);
                    width: 22px;
                    height: 22px;
                    border-radius: 50%;
                    background: #f3f4f6;
                    border: 1px solid #e5e7eb;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                }
                .cpss-toggle-icon {
                    position: relative;
                    width: 10px;
                    height: 10px;
                }
                .cpss-toggle-icon:before, .cpss-toggle-icon:after {
                    content: '';
                    position: absolute;
                    background: #4b5563;
                    display: block;
                }
                .cpss-toggle-icon:before {
                    width: 10px;
                    height: 2px;
                    top: 4px;
                    left: 0;
                    border-radius: 1px;
                }
                .cpss-toggle-icon:after {
                    width: 2px;
                    height: 10px;
                    left: 4px;
                    top: 0;
                    border-radius: 1px;
                    transition: transform 0.3s;
                }
                .cart_item.collapsed .cpss-toggle-icon:after {
                    transform: rotate(0deg);
                }
                .cpss-hidden-text {
                    display: none;
                    font-size: 12px;
                    color: #6b7280;
                    font-style: italic;
                    margin-top: 5px;
                }
                .cart_item.collapsed .cpss-hidden-text {
                    display: block;
                }


                .woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
                    float: right;
                    width: 100%;
                    text-transform: uppercase !important;
                }

                .woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
                    float: right;
                    width: 100%;
                    text-transform: uppercase !important;
                }