/* WellCart Iframe Integration Styles */
.wellcart-iframe-container {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

.wellcart-iframe-container[data-theme="minimal"] {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.wellcart-iframe-container[data-theme="card"] {
    border: 2px solid #244EA2;
    border-radius: 15px;
}

.wellcart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    z-index: 10;
}

.wellcart-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #244EA2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: wellcart-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes wellcart-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wellcart-controls {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wellcart-refresh-btn,
.wellcart-fullscreen-btn {
    background: #244EA2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.wellcart-refresh-btn:hover,
.wellcart-fullscreen-btn:hover {
    background: #1a3a7a;
}

.wellcart-status {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.wellcart-status.connected {
    color: #72BF44;
}

.wellcart-status.disconnected {
    color: #D33C37;
}

.wellcart-status.loading {
    color: #244EA2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wellcart-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wellcart-refresh-btn,
    .wellcart-fullscreen-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .wellcart-status {
        text-align: center;
    }
}

/* Fullscreen Mode */
.wellcart-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: white;
}

.wellcart-fullscreen .wellcart-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
}

.wellcart-fullscreen .wellcart-refresh-btn,
.wellcart-fullscreen .wellcart-fullscreen-btn {
    background: rgba(255,255,255,0.2);
    color: white;
}

.wellcart-fullscreen .wellcart-refresh-btn:hover,
.wellcart-fullscreen .wellcart-fullscreen-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Integration with Hands of Hope Theme */
.hands-hope-theme .wellcart-iframe-container {
    border: 2px solid #244EA2;
}

.hands-hope-theme .wellcart-refresh-btn,
.hands-hope-theme .wellcart-fullscreen-btn {
    background: #244EA2;
}

.hands-hope-theme .wellcart-refresh-btn:hover,
.hands-hope-theme .wellcart-fullscreen-btn:hover {
    background: #1a3a7a;
}

.hands-hope-theme .wellcart-status.connected {
    color: #72BF44;
}

/* Apply Hands of Hope branding by default */
.wellcart-iframe-container {
    border: 2px solid #244EA2;
    border-radius: 10px;
}

.wellcart-refresh-btn,
.wellcart-fullscreen-btn {
    background: #244EA2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.wellcart-refresh-btn:hover,
.wellcart-fullscreen-btn:hover {
    background: #1a3a7a;
}

.wellcart-status.connected {
    color: #72BF44;
}

.wellcart-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #244EA2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: wellcart-spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Accessibility */
.wellcart-iframe-container:focus-within {
    outline: 2px solid #244EA2;
    outline-offset: 2px;
}

.wellcart-refresh-btn:focus,
.wellcart-fullscreen-btn:focus {
    outline: 2px solid #244EA2;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .wellcart-controls {
        display: none;
    }
    
    .wellcart-iframe-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
