/* Styles for when product engine is unavailable */

/* Error message box */
.engine-unavailable-error {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    background-color: #fee;
    border-radius: 12px;
    border: 2px solid #f00;
    position: relative;
    z-index: 1000;
}

.engine-unavailable-error-title {
    margin: 0;
    color: #c00;
    font-weight: 600;
    font-size: 1.1rem;
}

.engine-unavailable-error-message {
    margin: 0.5rem 0 0 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Reminder box */
.reminder-box {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    background-color: var(--primary-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.reminder-text {
    margin: 0;
    line-height: 1.5;
}

.reminder-text:not(:first-child) {
    margin-top: 0.5rem;
}

/* Ready-made section */
.ready-made-section {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.ready-made-button {
    display: inline-block;
    text-decoration: none;
}

/* Form container when engine is unavailable */
.engine-unavailable .formContainer {
    position: relative;
    z-index: 1;
}

.engine-unavailable .formContainer form {
    pointer-events: none;
}

/* Re-enable all links (they should work normally) */
.engine-unavailable a,
.engine-unavailable .link {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Specifically re-enable links outside the form */
.engine-unavailable .reminder-box a,
.engine-unavailable .reminder-box .link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1001;
}

/* Ready-made section button */
.ready-made-section .ready-made-button {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Disabled form fields */
.engine-unavailable .input-field:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #f5f5f5;
}

/* Disabled buttons - show forbidden cursor (not-allowed) */
.engine-unavailable .button:disabled,
.engine-unavailable button:disabled,
.engine-unavailable button[disabled] {
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none !important;
}

.engine-unavailable .button:disabled:hover,
.engine-unavailable button:disabled:hover,
.engine-unavailable button[disabled]:hover {
    cursor: not-allowed !important;
}

/* Prevent form submission when engine unavailable */
.engine-unavailable .formContainer form {
    pointer-events: none;
}

/* Ensure form submission is blocked */
.engine-unavailable form[method="POST"] {
    pointer-events: none;
}

/* Re-enable links even within forms */
.engine-unavailable form a,
.engine-unavailable .formContainer a {
    pointer-events: auto !important;
    cursor: pointer;
}

