/* EDD Password Protect Styles */
.edd-pwd-container {
    max-width: 450px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.edd-pwd-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.edd-pwd-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.edd-pwd-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}

.edd-pwd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button Styles */
.edd-pwd-blue {
    background-color: #2271b1;
    color: white;
}

.edd-pwd-blue:hover {
    background-color: #135e96;
}

.edd-pwd-green {
    background-color: #00a32a;
    color: white;
}

.edd-pwd-green:hover {
    background-color: #008a20;
}

.edd-pwd-red {
    background-color: #d63638;
    color: white;
}

.edd-pwd-red:hover {
    background-color: #b32d2e;
}

.edd-pwd-purple {
    background-color: #8c5af2;
    color: white;
}

.edd-pwd-purple:hover {
    background-color: #7542e6;
}

.edd-pwd-orange {
    background-color: #ff6d00;
    color: white;
}

.edd-pwd-orange:hover {
    background-color: #dd5d00;
}

/* Button Sizes */
.edd-pwd-small {
    font-size: 12px;
    padding: 6px 12px;
}

.edd-pwd-medium {
    font-size: 14px;
    padding: 10px 16px;
}

.edd-pwd-large {
    font-size: 16px;
    padding: 12px 24px;
}

/* Icons */
[class^="edd-pwd-icon-"] {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: text-bottom;
}

.edd-pwd-icon-download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.edd-pwd-icon-lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.edd-pwd-icon-key {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E");
}

.edd-pwd-icon-file {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
}

/* Message */
.edd-pwd-message {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.edd-pwd-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.edd-pwd-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

/* Loading Indicator */
.edd-pwd-loading .edd-pwd-button:after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: edd-pwd-spin 1s linear infinite;
}

@keyframes edd-pwd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button disabled state */
.edd-pwd-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Animation */
.edd-pwd-success {
    animation: edd-pwd-pulse 1.5s ease-in-out;
}

@keyframes edd-pwd-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
    .edd-pwd-input-wrapper {
        flex-direction: column;
    }
    
    .edd-pwd-button {
        width: 100%;
    }
}