/* Get Policy Documents Plugin Styles */

.gpd-container {
    margin: 20px 0;
    text-align: center;
}

.gpd-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.gpd-download-btn {
    background: linear-gradient(135deg, #f15a24 0%, #f15a24 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.4);
    position: relative;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gpd-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 90, 36, 0.6);
    background: linear-gradient(135deg, #d44a1c 0%, #d44a1c 100%);
}

.gpd-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(241, 90, 36, 0.3);
}

.gpd-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.gpd-download-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.4);
}

.gpd-button-text {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.gpd-spinner {
    display: none;
    align-items: center;
    justify-content: center;
}

.gpd-download-btn.loading .gpd-button-text {
    opacity: 0;
}

.gpd-download-btn.loading .gpd-spinner {
    display: flex;
    position: absolute;
}

.gpd-loading-icon {
    width: 20px;
    height: 20px;
    color: white;
    animation: gpd-spin 1s linear infinite;
}

@keyframes gpd-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.gpd-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.gpd-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gpd-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gpd-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.gpd-message.gpd-no-quote {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    margin-top: 0;
}

/* Alternative button styles */
.gpd-button-primary {
    background: #f15a24;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gpd-button-primary:hover {
    background: #d44a1c;
}

.gpd-button-secondary {
    background: #f7931e;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gpd-button-secondary:hover {
    background: #e6821a;
}

/* Document List Styles */
.gpd-document-list {
    margin-top: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gpd-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.gpd-documents {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gpd-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.gpd-document-item:last-child {
    border-bottom: none;
}

.gpd-document-item:hover {
    background-color: #fff;
}

.gpd-document-name {
    font-weight: 500;
    color: #495057;
    flex-grow: 1;
}

.gpd-download-individual {
    background: #f15a24;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.gpd-download-individual:hover {
    background: #d44a1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(241, 90, 36, 0.3);
}

.gpd-download-individual.downloaded {
    background: #28a745;
    transform: none;
}

.gpd-download-icon {
    width: 16px;
    height: 16px;
}

.gpd-download-all-wrapper {
    margin-top: 20px;
    text-align: center;
}

.gpd-download-all-btn {
    background: linear-gradient(135deg, #f15a24 0%, #f15a24 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.4);
}

.gpd-download-all-btn:hover {
    background: linear-gradient(135deg, #d44a1c 0%, #d44a1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 90, 36, 0.6);
}

.gpd-download-all-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Document type icons */
.gpd-document-item[data-type="document"] .gpd-document-name::before {
    content: "📋";
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .gpd-download-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .gpd-message {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .gpd-document-item {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .gpd-document-name {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .gpd-download-individual {
        width: 100%;
        justify-content: center;
    }
    
    .gpd-list-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gpd-download-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 160px;
    }
    
    .gpd-container {
        margin: 15px 0;
    }
    
    .gpd-document-list {
        margin-top: 15px;
    }
    
    .gpd-document-item {
        padding: 10px 12px;
    }
    
    .gpd-download-individual {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .gpd-download-all-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
