/* WooCommerce Currency Converter - Add to Cart Styles */

/* Product Container Base Styles */
.wcc-product-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wcc-product-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Product Image */
.wcc-product-image {
    overflow: hidden;
    border-radius: 8px;
}

.wcc-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.wcc-product-image:hover img {
    transform: scale(1.05);
}

/* Product Title */
.wcc-product-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.wcc-product-title a {
    color: #1d2327;
    text-decoration: none;
    transition: color 0.2s;
}

.wcc-product-title a:hover {
    color: #2271b1;
}

/* Product Price */
.wcc-product-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcc-original-price {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}

/* Add to Cart Button Base */
.wcc-ajax-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-width: 150px;
}

.wcc-ajax-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wcc-ajax-add-to-cart:active {
    transform: translateY(0);
}

.wcc-ajax-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wcc-ajax-add-to-cart.wcc-added {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    animation: wcc-pulse 0.5s ease;
}

/* Loading Spinner */
.wcc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wcc-spin 0.6s linear infinite;
}

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

@keyframes wcc-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Disabled Button */
.wcc-ajax-add-to-cart.wcc-disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.wcc-ajax-add-to-cart.wcc-disabled:hover {
    transform: none;
}

/* Messages */
.wcc-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    animation: wcc-slide-down 0.3s ease;
}

.wcc-message.wcc-success {
    background: #d7f0db;
    border-left: 4px solid #00a32a;
    color: #1e4620;
}

.wcc-message.wcc-error {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #3c1518;
}

.wcc-message-icon {
    font-size: 18px;
    font-weight: bold;
}

.wcc-success-icon {
    color: #00a32a;
}

.wcc-error-icon {
    color: #d63638;
}

.wcc-message-text {
    flex: 1;
}

.wcc-message-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.wcc-message-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

@keyframes wcc-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style Variations */

/* Default Style */
.wcc-style-default {
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

/* Minimal Style */
.wcc-style-minimal {
    padding: 0;
    background: transparent;
    border: none;
}

.wcc-style-minimal .wcc-ajax-add-to-cart {
    background: #1d2327;
}

.wcc-style-minimal .wcc-ajax-add-to-cart:hover {
    background: #2271b1;
}

/* Card Style */
.wcc-style-card {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wcc-style-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.wcc-style-card .wcc-product-image {
    margin: -24px -24px 20px;
    border-radius: 12px 12px 0 0;
}

/* Custom Style (for user overrides) */
.wcc-style-custom {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcc-product-title {
        font-size: 16px;
    }

    .wcc-original-price {
        font-size: 20px;
    }

    .wcc-ajax-add-to-cart {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .wcc-style-card,
    .wcc-style-default {
        padding: 16px;
    }
}

/* Thrive Architect Compatibility */
.thrv_wrapper .wcc-product-container {
    width: 100%;
}

.thrv_wrapper .wcc-ajax-add-to-cart {
    width: 100%;
}

/* Elementor Compatibility */
.elementor-widget-container .wcc-product-container {
    width: 100%;
}

.elementor-widget-container .wcc-ajax-add-to-cart {
    width: 100%;
}

/* Grid Layout Support */
.wcc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.wcc-products-grid .wcc-product-container {
    margin: 0;
}

/* Flex Layout Support */
.wcc-products-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0;
}

.wcc-products-flex .wcc-product-container {
    flex: 1 1 280px;
    margin: 0;
}

/* Button Color Variations */
.wcc-button-green .wcc-ajax-add-to-cart {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.wcc-button-blue .wcc-ajax-add-to-cart {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wcc-button-orange .wcc-ajax-add-to-cart {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.wcc-button-red .wcc-ajax-add-to-cart {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.wcc-button-dark .wcc-ajax-add-to-cart {
    background: linear-gradient(135deg, #1d2327 0%, #3c434a 100%);
}

/* Accessibility */
.wcc-ajax-add-to-cart:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.wcc-message:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .wcc-ajax-add-to-cart,
    .wcc-message {
        display: none;
    }
}