/* Order Now Elementor Widget Styles */

/* Main Button Styles */
.order-now-button {
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    background-color: var(--order-now-button-color, var(--order-now-primary-color, #007cba));
    color: var(--order-now-secondary-color, #ffffff);
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.order-now-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.order-now-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Button Sizes */
.order-now-button-small {
    padding: 8px 16px;
    font-size: 12px;
}

.order-now-button-medium {
    padding: 12px 24px;
    font-size: 14px;
}

.order-now-button-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Overlay */
.order-now-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-now-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar */
.order-now-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    transition: right 0.3s ease, width 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Remove scroll from sidebar itself */
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.order-now-sidebar.active {
    right: 0;
}

/* Expanded sidebar for pharmacy tab */
.order-now-sidebar.expanded {
    width: 1100px;
    right: -1100px;
}

.order-now-sidebar.expanded.active {
    right: 0;
}

.order-now-sidebar-content {
    padding: 0;
    height: 100vh; /* Force exact viewport height */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent any overflow */
}

.order-now-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    background-color: #f8f9fa;
    flex-shrink: 0; /* Don't shrink header */
}

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

.order-now-close:hover {
    background-color: #e9ecef;
    color: #333;
}

/* Disclaimer Styles */
.order-now-disclaimer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-top: auto;
    flex-shrink: 0; /* Don't shrink disclaimer */
}

.order-now-disclaimer-content {
    padding-right: 30px;
}

.order-now-disclaimer-content a {
    color: var(--order-now-primary-color, #007cba);
    text-decoration: none;
}

.order-now-disclaimer-content a:hover {
    text-decoration: underline;
}

.order-now-disclaimer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.order-now-disclaimer-close:hover {
    background-color: #e9ecef;
    color: #333;
}

.order-now-disclaimer.hidden {
    display: none;
}

/* Tabs */
.order-now-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.order-now-tab-buttons {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    flex-shrink: 0; /* Don't shrink tab buttons */
}

.order-now-tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #666;
    border-bottom: 3px solid transparent;
}

.order-now-tab-button:hover {
    background-color: #e9ecef;
    color: #333;
}

.order-now-tab-button.active {
    color: var(--order-now-primary-color, #007cba);
    border-bottom-color: var(--order-now-primary-color, #007cba);
    background-color: #ffffff;
}

/* Tab Content */
.order-now-tab-content {
    flex: 1;
    position: relative;
    min-height: 0; /* Allow flex child to shrink */
    overflow: hidden; /* Prevent overflow */
}

.order-now-tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden; /* No scroll on the panel itself */
}

.order-now-tab-panel.active {
    opacity: 1;
    visibility: visible;
}

/* Order Tab Styles */
.order-now-order-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto; /* Allow scroll only for order content if needed */
}

.order-links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* New Card Styles - Horizontal Layout (Bepanthenol Style) */
.order-link-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    padding: 16px;
    gap: 16px;
}

.order-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--order-now-primary-color, #007cba);
    text-decoration: none;
}

.order-link-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.order-link-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.order-link-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 0;
    gap: 16px;
}

.order-link-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    line-height: 1.3;
}

.order-link-button {
    background: var(--order-now-primary-color, #007cba);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.order-link-card:hover .order-link-button {
    background: var(--order-now-primary-color, #007cba);
    opacity: 0.9;
    transform: scale(1.02);
}

/* Fallback Button Styles (for links without images) */
.order-link {
    display: block;
    padding: 15px 20px;
    background-color: var(--order-now-primary-color, #007cba);
    color: var(--order-now-secondary-color, #ffffff);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.order-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
    color: var(--order-now-secondary-color, #ffffff);
    text-decoration: none;
}

/* Pharmacy Tab Styles */
.order-now-pharmacy-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent scroll on the main content */
}

.pharmacy-search {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    flex-shrink: 0; /* Don't shrink search bar */
}

.pharmacy-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.pharmacy-search button {
    padding: 8px 16px;
    border: none;
    background-color: var(--order-now-primary-color, #007cba);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.pharmacy-search button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pharmacy-geolocate-button {
    background-color: #28a745;
}

/* Map and List Container */
.pharmacy-map-container {
    flex: 1;
    display: flex;
    gap: 15px;
    min-height: 0;
    overflow: hidden; /* Prevent scroll on container */
    height: 100%; /* Use full available height */
}

/* Map Styles */
.pharmacy-map {
    flex: 1;
    min-height: 300px;
    height: 100%; /* Use full available height */
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.pharmacy-map .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
}

/* Pharmacy List */
.pharmacy-list {
    flex: 1;
    overflow-y: auto; /* Only the pharmacy list scrolls */
    max-height: 100%;
    min-height: 0; /* Allow flex item to shrink */
}

.pharmacy-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pharmacy-item:hover {
    border-color: var(--order-now-primary-color, #007cba);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pharmacy-item.selected {
    border-color: var(--order-now-primary-color, #007cba);
    background-color: #f0f8ff;
    box-shadow: 0 2px 12px rgba(0, 123, 186, 0.2);
}

.pharmacy-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.pharmacy-address {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.pharmacy-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.pharmacy-rating .stars {
    color: #ffc107;
}

.pharmacy-rating .rating-count {
    color: #888;
    font-size: 12px;
}

.pharmacy-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 5px;
}

.pharmacy-status.open {
    background-color: #d4edda;
    color: #155724;
}

.pharmacy-status.closed {
    background-color: #f8d7da;
    color: #721c24;
}

.pharmacy-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.pharmacy-directions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--order-now-primary-color, #007cba);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pharmacy-directions:hover {
    color: var(--order-now-primary-color, #007cba);
    text-decoration: underline;
    opacity: 0.8;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--order-now-primary-color, #007cba);
    animation: spin 1s ease-in-out infinite;
}

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

.error-message {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive Design */

/* Full screen sidebar for all devices up to 1025px */
@media (max-width: 1025px) {
    .order-now-sidebar {
        width: 100% !important;
        right: -100% !important;
    }
    
    .order-now-sidebar.expanded {
        width: 100% !important;
        right: -100% !important;
    }
    
    .order-now-sidebar.active {
        right: 0 !important;
        width: 100% !important;
    }
    
    .order-now-sidebar.expanded.active {
        right: 0 !important;
        width: 100% !important;
    }
    
    /* Ensure overlay works properly on all small devices */
    .order-now-overlay.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9998;
    }
    
    /* Prevent body scroll when sidebar is open */
    body.order-now-sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better touch targets */
    .order-now-close {
        min-width: 44px;
        min-height: 44px;
        font-size: 20px;
    }
    
    .order-now-tab-button {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .pharmacy-search button {
        min-height: 44px;
        padding: 12px 16px;
        touch-action: manipulation;
    }
    
    /* Mobile optimized layout for pharmacy finder */
    .pharmacy-map-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .pharmacy-map {
        min-height: 250px;
        height: 250px; /* Fixed height on mobile */
        order: 1;
        flex: none; /* Don't grow/shrink on mobile */
    }
    
    .pharmacy-list {
        max-height: 300px;
        flex: 1; /* Take remaining space */
        order: 2;
    }
    
    /* Responsive text and spacing */
    .order-now-sidebar-header {
        padding: 15px;
    }
    
    .order-now-order-content,
    .order-now-pharmacy-content {
        padding: 15px;
    }
    
    .pharmacy-search {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .pharmacy-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    /* Improved button spacing on smaller screens */
    .pharmacy-search input {
        margin-bottom: 12px;
    }
    
    .pharmacy-search button {
        margin-right: 8px;
        margin-bottom: 8px;
        width: auto;
        min-width: 120px;
    }
}

/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
    .order-now-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .order-now-sidebar.expanded {
        width: 100%;
        right: -100%;
    }
    
    .order-now-tab-button {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .order-now-sidebar-header {
        padding: 15px;
    }
    
    .order-now-order-content,
    .order-now-pharmacy-content {
        padding: 15px;
    }
    
    .pharmacy-map-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .pharmacy-map {
        min-height: 200px;
        height: 200px; /* Fixed height on small mobile */
        flex: none;
    }
    
    .pharmacy-list {
        max-height: 200px;
        flex: 1;
    }
    
    .pharmacy-search {
        padding: 12px;
    }
    
    .pharmacy-item {
        padding: 12px;
    }
    
    /* Responsive card styles - Small Mobile (mantieni layout orizzontale) */
    .order-link-card {
        padding: 12px;
        gap: 12px;
    }
    
    .order-link-image {
        width: 50px;
        height: 50px;
    }
    
    .order-link-content {
        gap: 12px;
    }
    
    .order-link-title {
        font-size: 15px;
        flex: 1;
    }
    
    .order-link-button {
        font-size: 13px;
        padding: 8px 14px;
        border-radius: 20px;
    }
}

/* Very small mobile devices (up to 360px) - Layout orizzontale compatto */
@media (max-width: 360px) {
    .order-link-card {
        padding: 10px;
        gap: 8px;
    }
    
    .order-link-image {
        width: 40px;
        height: 40px;
    }
    
    .order-link-content {
        gap: 8px;
    }
    
    .order-link-title {
        font-size: 14px;
        flex: 1;
        line-height: 1.2;
    }
    
    .order-link-button {
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 18px;
        white-space: nowrap;
    }
}

/* Mobile devices and small tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .order-now-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .order-now-sidebar.expanded {
        width: 100%;
        right: -100%;
    }
    
    .order-now-tab-button {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .pharmacy-map-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .pharmacy-map {
        min-height: 200px;
        height: 200px; /* Fixed height on medium mobile */
        flex: none;
    }
    
    .pharmacy-list {
        max-height: 250px;
        flex: 1;
    }
    
    /* Responsive card styles for tablets */
    .order-link-card {
        padding: 14px;
        gap: 14px;
    }
    
    .order-link-image {
        width: 55px;
        height: 55px;
    }
    
    .order-link-content {
        gap: 14px;
    }
    
    .order-link-title {
        font-size: 16px;
    }
    
    .order-link-button {
        font-size: 13px;
        padding: 9px 16px;
    }
}

/* Tablets and small laptops (769px - 1025px) - Full screen sidebar */
@media (min-width: 769px) and (max-width: 1025px) {
    .order-now-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .order-now-sidebar.expanded {
        width: 100%;
        right: -100%;
    }
    
    .order-now-sidebar.active {
        right: 0;
        width: 100%;
    }
    
    .pharmacy-map-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .pharmacy-map {
        min-height: 250px;
        height: 250px; /* Fixed height on tablets */
        flex: none;
    }
    
    .pharmacy-list {
        max-height: 300px;
        flex: 1;
    }
}

/* Medium tablets and laptops (1026px - 1200px) */
@media (min-width: 1026px) and (max-width: 1200px) {
    .order-now-sidebar {
        width: 500px;
        right: -500px;
    }
    
    .order-now-sidebar.expanded {
        width: 800px;
        right: -800px;
    }
}

/* Large laptops (1201px - 1400px) */
@media (min-width: 1201px) and (max-width: 1400px) {
    .order-now-sidebar {
        width: 500px;
        right: -500px;
    }
    
    .order-now-sidebar.expanded {
        width: 900px;
        right: -900px;
    }
}

/* Extra large screens (1401px and up) */
@media (min-width: 1401px) {
    .order-now-sidebar {
        width: 500px;
        right: -500px;
    }
    
    .order-now-sidebar.expanded {
        width: 1100px;
        right: -1100px;
    }
}

/* Additional mobile optimizations - Extended to include tablets up to 1025px */
@media (max-width: 1025px) {
    /* Ensure overlay covers everything on mobile */
    .order-now-overlay.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9998;
    }
    
    /* Ensure sidebar is fully accessible */
    .order-now-sidebar.active {
        right: 0;
        width: 100%;
    }
    
    /* Prevent horizontal scroll when sidebar is open */
    body.order-now-sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better touch targets for mobile */
    .order-now-close {
        min-width: 44px;
        min-height: 44px;
        font-size: 20px;
    }
    
    .order-now-tab-button {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .pharmacy-search button {
        min-height: 44px;
        padding: 12px 16px;
        touch-action: manipulation;
    }
}

/* Landscape mobile optimization - Extended to tablets */
@media (max-width: 1025px) and (orientation: landscape) {
    .pharmacy-map {
        min-height: 150px;
        height: 150px; /* Fixed height in landscape */
        flex: none;
    }
    
    .pharmacy-list {
        max-height: 150px;
        flex: 1;
    }
}

/* Custom scrollbar for sidebar and pharmacy list */
.order-now-sidebar::-webkit-scrollbar,
.pharmacy-list::-webkit-scrollbar,
.order-now-order-content::-webkit-scrollbar {
    width: 6px;
}

.order-now-sidebar::-webkit-scrollbar-track,
.pharmacy-list::-webkit-scrollbar-track,
.order-now-order-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.order-now-sidebar::-webkit-scrollbar-thumb,
.pharmacy-list::-webkit-scrollbar-thumb,
.order-now-order-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.order-now-sidebar::-webkit-scrollbar-thumb:hover,
.pharmacy-list::-webkit-scrollbar-thumb:hover,
.order-now-order-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Styles for when only pharmacy tab is visible */
.order-now-tabs:not(:has(.order-now-tab-buttons *)) .order-now-tab-buttons,
.order-now-tabs .order-now-tab-buttons:empty {
    display: none;
}

/* Ensure pharmacy tab content takes full height when tabs are hidden */
.order-now-tabs:not(:has(.order-now-tab-buttons *)) .order-now-tab-content,
.order-now-tabs:has(.order-now-tab-buttons:empty) .order-now-tab-content {
    height: calc(100vh - 60px); /* Subtract header height */
}

.order-now-tabs:not(:has(.order-now-tab-buttons *)) .order-now-tab-panel,
.order-now-tabs:has(.order-now-tab-buttons:empty) .order-now-tab-panel {
    position: static;
    height: 100%;
    opacity: 1;
    visibility: visible;
} 

/* Ensure Google Places autocomplete suggestions are visible above the sidebar */
.pac-container {
    z-index: 10050 !important; /* higher than .order-now-sidebar (9999) and overlay (9998) */
}

/* Minimal Pharmacy Popup Styles */
.pharmacy-popup {
    min-width: 240px;
    max-width: 280px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    line-height: 1.3;
    border: 1px solid #e0e0e0;
}

.pharmacy-popup-header {
    background: var(--order-now-primary-color, #007cba);
    color: white;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pharmacy-popup-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pharmacy-popup-status {
    margin-left: 8px;
}

.pharmacy-popup-status .pharmacy-status {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pharmacy-popup-status .pharmacy-status.open {
    background: #28a745;
    color: white;
}

.pharmacy-popup-status .pharmacy-status.closed {
    background: #dc3545;
    color: white;
}

.pharmacy-popup-address {
    padding: 10px 14px;
    color: #666;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.pharmacy-popup-rating {
    padding: 8px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.pharmacy-popup-rating .pharmacy-rating {
    margin: 0;
    justify-content: flex-start;
    font-size: 12px;
}

.pharmacy-popup-rating .stars {
    color: #ffc107;
    font-size: 12px;
}

.pharmacy-popup-rating .rating-count {
    color: #999;
    font-size: 11px;
    margin-left: 4px;
}

.pharmacy-popup-actions {
    padding: 12px 14px;
    background: #ffffff;
}

.popup-directions-btn {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    background: var(--order-now-primary-color, #007cba);
    color: white;
}

.popup-directions-btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

.popup-directions-btn span {
    font-size: 12px;
}

/* Override Google Maps InfoWindow default styles */
.gm-style-iw-d {
    overflow: visible !important;
    padding: 0 !important;
}

.gm-style-iw-c {
    padding: 0 !important;
}

.gm-style-iw-ch {
    padding: 0 !important;
}

/* Remove all default padding from Google Maps InfoWindow */
.gm-style-iw .gm-style-iw-d,
.gm-style-iw-c .gm-style-iw-d,
.gm-style-iw-chr .gm-style-iw-d {
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile responsive popup */
@media (max-width: 480px) {
    .pharmacy-popup {
        min-width: 220px;
        max-width: 260px;
    }
    
    .pharmacy-popup-name {
        font-size: 14px;
    }
    
    .popup-directions-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}