.fdw-download-buttons {
    margin: 1em 0;
    gap: 10px;
	display: flex;
    flex-wrap: wrap;
}

.fdw-download-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fdw-login-notice,
.fdw-limit-notice {
    padding: 15px;
    margin: 1em 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.fdw-login-notice {
    background-color: #ebeef9;
    border-color: #8787de;
}

.fdw-limit-notice {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
}

.fdw-login-notice a {
    color: #8787de;
    text-decoration: underline;
}

.fdw-login-notice a:hover {
    color: #533582;
}

.fdw-download-wrapper {
    min-height: 42px; /* Height of the button */
}

.fdw-download-wrapper .fdw-limit-notice {
    margin-top: 0;
    z-index: 10;
}

.fdw-download-wrapper .fdw-limit-notice:not(:only-child) {
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
}

/* Loading icon styles */
.fdw-download-button.loading {
    opacity: 0.5;
    position: relative;
    color: transparent !important;
}

.fdw-download-button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    display: block;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: fdw-spin 0.8s infinite linear;
}

@keyframes fdw-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Disabled state */
.fdw-download-button:disabled {
    cursor: not-allowed;
}

.fdw-download-icon {
    vertical-align: middle;
    margin-right: 5px;
    position: relative;
    top: -1px;
}

/* DX Product Table Integration Styles */
.dx-woo-product-table .fdw-dx-table-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dx-woo-product-table .fdw-dx-download-wrapper {
    display: block;
}

.dx-woo-product-table .fdw-dx-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    background: #4f4f50;
    color: #fff;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.dx-woo-product-table .fdw-dx-download-button:hover {
    background: #5f6ef4;
    color: #fff;
    text-decoration: none;
}

/* Loading state for DX table download buttons */
.dx-woo-product-table .fdw-dx-download-button.loading {
    color: transparent !important;
    pointer-events: none;
    opacity: 0.7;
    min-width: fit-content;
    width: auto;
}

.dx-woo-product-table .fdw-dx-download-button.loading svg {
    visibility: hidden;
    opacity: 0;
}

/* Add Shoptimizer-style spinner */
.dx-woo-product-table .fdw-dx-download-button .fdw-dx-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    display: none;
}

.dx-woo-product-table .fdw-dx-download-button .fdw-dx-spinner-inner {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: fdw-dx-spin-smooth 0.8s linear infinite;
}

.dx-woo-product-table .fdw-dx-download-button.loading .fdw-dx-spinner {
    display: block;
}

@keyframes fdw-dx-spin-smooth {
    to {
        transform: rotate(360deg);
    }
}

.dx-woo-product-table .fdw-login-to-download {
    background: #666;
    color: #fff;
    padding: 8px 8px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.dx-woo-product-table .fdw-login-to-download:hover {
    background: #444;
    color: #fff;
    text-decoration: none;
}

.dx-woo-product-table .fdw-limit-notice,
.dx-woo-product-table .fdw-dx-limit-notice {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 14px;
    border: 1px solid #ffeaa7;
    text-align: center;
    margin-top: 5px;
} 