/* Dessly Hub Frontend Styles */

.dessly-quick-buy-form {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
}

.dessly-quick-buy-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
    text-align: center;
}
.dessly-quick-buy-form input{
    width: 100%;
    background: #1A1E41 !important;
    border: 1px solid #5464EB !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 56px;
    width: 100%;
}
.dessly-quick-buy-form select {
    border: 1px solid #5464EB !important;
    border-radius: 12px !important;
    height: 56px;
    background-color: #1A1E41;
    color: #fff;
    padding: 16px 19px !important;
    margin-right: 0 !important;
    width: 100% !important;
}
.dessly-quick-buy-form .dessly-variation-select option{
    color: #fff;
}
.dessly-selected-price .price{
    display: block !important;
}
.dessly-quick-buy-form label{
    display: none !important;
}
.dessly-form .form-group {
    margin-bottom: 20px;
}

.dessly-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.dessly-form input[type="text"],
.dessly-form input[type="email"],
.dessly-form input[type="number"],
.dessly-form select,
.dessly-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.dessly-form input:focus,
.dessly-form select:focus,
.dessly-form textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.dessly-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.dessly-game-info {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
}

.dessly-game-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.dessly-game-info img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
}

.dessly-game-price {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    margin: 15px 0;
}

.dessly-game-price.sale {
    color: #00a32a;
}

.dessly-game-price del {
    font-size: 18px;
    color: #999;
    margin-right: 10px;
}

.form-actions {
    margin-top: 25px;
    text-align: center;
}

.dessly-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.dessly-btn-primary {
    background: #2271b1;
    color: #fff;
}

.dessly-btn-primary:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.dessly-btn-primary:active {
    transform: translateY(0);
}

.dessly-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#dessly-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#dessly-form-message.success {
    background: #d5f4e6;
    border: 1px solid #00a32a;
    color: #00a32a;
}

#dessly-form-message.error {
    background: #fce8e8;
    border: 1px solid #d63638;
    color: #d63638;
}

.dessly-loading {
    text-align: center;
    padding: 40px 20px;
}

.dessly-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Product variations on quick buy */
.dessly-variation-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.dessly-variation-name {
    font-weight: 500;
}

.dessly-variation-price {
    color: #2271b1;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dessly-quick-buy-form {
        padding: 0px;
        margin: 10px 0;
    }

    .dessly-quick-buy-form h3 {
        font-size: 20px;
    }

    .dessly-form input[type="text"],
    .dessly-form input[type="email"],
    .dessly-form input[type="number"],
    .dessly-form select,
    .dessly-form textarea {
        font-size: 16px; /* Предотвращает зум на iOS */
    }

    .dessly-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .dessly-game-price {
        font-size: 20px;
    }
}

/* Checkout fields styling */
#dessly_custom_fields {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

#dessly_custom_fields h3 {
    margin-top: 0;
    color: #333;
}

.dessly-mobile-fields {
    margin: 20px 0;
    border-radius: 4px;
}

.dessly-mobile-fields h4 {
    margin-top: 0;
    color: #2271b1;
}

/* Error states */
.dessly-form input.error,
.dessly-form select.error {
    border-color: #d63638;
}

.dessly-form .error-message {
    display: block;
    margin-top: 5px;
    color: #d63638;
    font-size: 12px;
}

/* Success states */
.dessly-form input.success,
.dessly-form select.success {
    border-color: #00a32a;
}

/* Loading state for form */
.dessly-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.dessly-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Game info block styles */
.dessly-steam-link {
    display: inline-block;
    margin-top: 10px;
}

.dessly-game-instructions {
    margin-top: 15px;
    padding: 10px;
    border-radius: 3px;
}

.dessly-game-instructions ol {
    margin: 10px 0;
    padding-left: 20px;
}

.dessly-game-requirements {
    margin-top: 10px;
    padding: 10px;
    border-radius: 3px;
}

.dessly-game-requirements ul {
    margin: 5px 0;
    padding-left: 20px;
}

