/**
 * WooCommerce Download Monitor Integration Styles
 */

/* Main Container */
.wc-dm-integration {
    margin: 2em 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #23282D;
}

/* Section Title */
.wc-dm-integration-title {
    font-size: 1.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

/* Downloads List */
.wc-dm-integration-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Download Item */
.wc-dm-integration-item {
    margin-bottom: 1.5em;
    padding: 16px;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.wc-dm-integration-item:hover {
    border-color: #CCCCCC;
}

/* Download Link */
.wc-dm-integration-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-decoration: none;
    color: #23282D;
}

.wc-dm-integration-link:hover {
    color: #23282D;
}

.wc-dm-integration-link .wc-dm-integration-title {
    flex: 1 0 100%;
    margin: 0 0 0.5em 0;
    padding: 0;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
}

.wc-dm-integration-version {
    margin-right: 1em;
    color: #555;
    font-size: 0.9em;
}

.wc-dm-integration-filesize {
    margin-right: 1em;
    color: #555;
    font-size: 0.9em;
}

/* Download Button */
.wc-dm-integration-download-button {
    display: inline-block;
    margin-left: auto;
    padding: 8px 16px;
    background-color: #0073AA;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.wc-dm-integration-link:hover .wc-dm-integration-download-button {
    background-color: #005177;
}

/* Description */
.wc-dm-integration-description {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #F0F0F0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Error and Empty notices */
.wc-dm-integration-error,
.wc-dm-integration-empty {
    margin: 1em 0;
    padding: 12px;
    border-radius: 4px;
}

.wc-dm-integration-error {
    border-left: 4px solid #dc3232;
    background-color: #fbeaea;
}

.wc-dm-integration-empty {
    border-left: 4px solid #00a0d2;
    background-color: #f0f6fb;
}

/* Option styles */

/* No box style */
.wc-dm-integration-item.no-box {
    padding: 8px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #F0F0F0;
    border-radius: 0;
}

.wc-dm-integration-item.no-box:last-child {
    border-bottom: none;
}

.wc-dm-integration-item.no-box:hover {
    border-color: #CCCCCC;
}

/* Fullwidth button */
.wc-dm-integration-download-button.fullwidth {
    display: block;
    margin: 0.8em 0 0 0;
    width: 100%;
    text-align: center;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .wc-dm-integration-item {
        padding: 12px;
    }
    
    .wc-dm-integration-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wc-dm-integration-download-button {
        margin: 0.8em 0 0 0;
        align-self: flex-start;
    }
    
    .wc-dm-integration-download-button.fullwidth {
        width: 100%;
        align-self: stretch;
    }
    
    .wc-dm-integration-version,
    .wc-dm-integration-filesize {
        margin-bottom: 0.5em;
    }
}
