/* Fly Cart */
.ttsb-show-available-coupons{
    background-color: transparent !important;
    color: #000000 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    gap: 5px;
    font-size: 14px;
}

.ttsb-show-available-coupons:hover {
    opacity: 0.7;
}

/* Available Coupons Popup */
.ttsb-available-coupons-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ttsb-available-coupons-popup-overlay.ttsb-popup-open {
    opacity: 1;
    visibility: visible;
}

.ttsb-coupon-popup-open {
    overflow: hidden;
}

.ttsb-available-coupons-popup {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ttsb-available-coupons-popup-overlay.ttsb-popup-open .ttsb-available-coupons-popup {
    transform: scale(1);
}

.ttsb-available-coupons-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ttsb-available-coupons-popup-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.ttsb-available-coupons-popup-close {
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.ttsb-available-coupons-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.ttsb-available-coupons-popup-close svg {
    width: 20px;
    height: 20px;
}

.ttsb-available-coupons-popup-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.ttsb-available-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ttsb-available-coupon-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.ttsb-available-coupon-item:hover {
    border-color: #0073aa;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.ttsb-available-coupon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.ttsb-available-coupon-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ttsb-available-coupon-expiry {
    font-size: 12px;
    color: #666;
}

.ttsb-available-coupon-code {
    font-size: 16px;
    font-weight: 600;
    font-family: monospace;
    letter-spacing: 1px;
    border: 1px dashed #9d9d9d;
    background-color: #f1f1f1;
    padding: 5px 10px;
    letter-spacing: 1px;
    color: #000000;
    line-height: 1.4;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .ttsb-available-coupons-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .ttsb-available-coupons-popup-header {
        padding: 15px;
    }
    
    .ttsb-available-coupons-popup-content {
        padding: 15px;
    }
    
    .ttsb-available-coupons-popup-title {
        font-size: 18px;
    }
}



/* voice search */

/**
 * Voice Search Styles for Storebooster Pro
 * 
 * @package Storebooster Pro
 * @since 1.0.0
 */

/* Voice Search Button */
.ttsb-voice-search-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0 !important;
    border: none;
    background: transparent !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #666;
    box-shadow: none !important;
}

.ttsb-voice-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.ttsb-voice-search-btn:focus {
    outline: none;
}

/* Voice Search Button States */
.ttsb-voice-search-btn.listening {
    background: #dc3545;
    color: white;
    animation: voice-listening-pulse 1.5s ease-in-out infinite;
}

.ttsb-voice-search-btn.success {
    background: #28a745;
    color: white;
    animation: voice-success-pulse 0.6s ease-in-out;
}

.ttsb-voice-search-btn.error {
    background: #dc3545;
    color: white;
    animation: voice-error-shake 0.5s ease-in-out;
}

/* Voice Pulse Animation */
.voice-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #dc3545;
    border-radius: 50%;
    animation: voice-pulse-animation 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* Voice Search Button Icon */
.ttsb-voice-search-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.ttsb-voice-search-btn.listening svg {
    animation: voice-icon-pulse 1s ease-in-out infinite;
}

/* Voice Search Notifications */
.ttsb-voice-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: voice-notification-slide-in 0.3s ease-out;
}

.ttsb-voice-notification-info {
    border-left: 4px solid #17a2b8;
}

.ttsb-voice-notification-success {
    border-left: 4px solid #28a745;
}

.ttsb-voice-notification-error {
    border-left: 4px solid #dc3545;
}

.ttsb-voice-notification-warning {
    border-left: 4px solid #ffc107;
}

.ttsb-voice-notification-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.ttsb-voice-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ttsb-voice-notification-close:hover {
    background: #f8f9fa;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ttsb-voice-search-btn {
        right: 80px; /* Adjust position for mobile */
        width: 36px;
        height: 36px;
    }
    
    .ttsb-voice-search-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .ttsb-voice-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .ttsb-voice-search-btn {
        right: 70px;
        width: 32px;
        height: 32px;
    }
    
    .ttsb-voice-search-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Animations */
@keyframes voice-listening-pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.5);
    }
}

@keyframes voice-success-pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes voice-error-shake {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    25% {
        transform: translateY(-50%) translateX(-5px);
    }
    75% {
        transform: translateY(-50%) translateX(5px);
    }
}

@keyframes voice-pulse-animation {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes voice-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes voice-notification-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Integration with existing search styles */
.ttsb-search-input-wrapper {
    position: relative;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ttsb-voice-search-btn {
        background: #2d3748;
        color: #e2e8f0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .ttsb-voice-search-btn:hover {
        background: #4a5568;
        color: #f7fafc;
    }
    
    .ttsb-voice-notification {
        background: #2d3748;
        color: #e2e8f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .ttsb-voice-notification-message {
        color: #e2e8f0;
    }
    
    .ttsb-voice-notification-close {
        color: #a0aec0;
    }
    
    .ttsb-voice-notification-close:hover {
        background: #4a5568;
        color: #f7fafc;
    }
}

/* Accessibility improvements */
.ttsb-voice-search-btn:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.ttsb-voice-search-btn[aria-pressed="true"] {
    background: #007cba;
    color: white;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ttsb-voice-search-btn {
        border: 2px solid currentColor;
    }
    
    .ttsb-voice-notification {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ttsb-voice-search-btn,
    .ttsb-voice-search-btn:hover,
    .ttsb-voice-search-btn svg,
    .voice-pulse,
    .ttsb-voice-notification {
        animation: none;
        transition: none;
    }
}


/* Search Bar Styles */
.ttsb-icon-popup-handler svg{
    cursor: pointer;
}
.ttsb-search-wrapper.ttsb-searchbar-layout7 .ttsb-search-container{
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 400ms;
    width: 100%;
    max-width: 1200px;
}
.ttsb-search-open.ttsb-searchbar-layout7 .ttsb-search-container{
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.ttsb-searchbar-layout7 .ttsb-searchinput-wrapper .ttsb-clear-input{
    right: 45px;
}
.ttsb-searchbar-layout7 .ttsb-search-loading{
    right: 45px;
}

.ttsb-searchbar-layout7 .ttsb-searchinput-wrapper .ttsb-search-input{
    border-radius: 30px;
}
.ttsb-searchbar-layout7 .ttsb-searchinput-wrapper .ttsb-search-icon{
    background-color: transparent !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0px;
    z-index: 2;
}

.ttsb-search-wrapper.ttsb-searchbar-layout7 .ttsb-search-result-container{
    left: 0;
    right: 0;
    margin: 0 auto;
    box-shadow: none;
    min-height: 100%;
    overflow-y: visible;
}
.ttsb-search-wrapper.ttsb-searchbar-layout7 .ttsb-default-panel{
    padding: 20px 0;
}
.ttsb-searchbar-layout7 .ttsb-popup-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 95%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 400ms;
}

.ttsb-search-open .ttsb-popup-overlay{
    opacity: 1;
    visibility: visible;
}

.ttsb-searchbar-layout7 .ttsb-popup-overlay .ttsb-overlay-close{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-bar .ttsb-searchbar-layout7 .ttsb-popup-overlay .ttsb-overlay-close{
    top: 52px;
}

.ttsb-searchbar-layout7 .ttsb-popup-overlay .ttsb-overlay-close svg{
    width: 20px;
    height: 20px;
}


/* Button specific styles */
.ttsb-action-button-wishlist.ttsb-wishlist-active {
    background-color: #e91e63;
    border-color: #e91e63;
    color: #ffffff;
}

.ttsb-action-button-wishlist.ttsb-wishlist-active:hover {
    background-color: #c2185b;
    border-color: #c2185b;
}

.ttsb-action-button-quick-buy.ttsb-buy-now-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Form wrapper for buy now button */
.ttsb-buy-now-form-loop {
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Quick view position */
.ttsb-product-popup.quick_view_popup_position_left{
    right: auto;
    left: -100%;
}
.ttsb-show-quick-view-popup .ttsb-product-popup.quick_view_popup_position_left{
    left: 0;
}
.ttsb-product-popup.quick_view_popup_position_center{
    left: auto;
    right: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    width: 80%;
    height: auto;
    max-width: 1000px;
}
.quick_view_popup_position_center .ttsb-product-popup-content{
    height: auto;
}
.ttsb-show-quick-view-popup .ttsb-product-popup.quick_view_popup_position_center{
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.quick_view_popup_position_center .ttsb-product-popup-body div.product div.summary{
    padding: 30px;
}
.quick_view_popup_position_center .ttsb-product-popup-body div.product div.images,
.quick_view_popup_position_center .ttsb-product-popup-body div.product div.summary{
    margin-bottom: 0;
}
.ttsb-product-popup-body .ttsb-variation-swatches {
    display: flex;
    align-items: center;
    gap: 15px;
}
.ttsb-product-popup-body .ttsb-variation-swatches .ttsb-swatch-label{
    margin-bottom: 0;
}
.ttsb-product-popup-body .single-product div.product table.variations .value{
    position: relative;
}
.ttsb-product-popup-body a.reset_variations{
    position: absolute;
    bottom: -24px;
    left: -15px;
}