/*
 * com_elallas frontend styles
 * Author: Kovács Péter <info@joomlaspecialista.hu>
 */

.elallas {
    max-width: 720px;
    margin: 0 auto;
}

.elallas-own .elallas-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.elallas-title {
    margin-bottom: .35em;
    margin-top: 0;
}

.elallas-intro,
.elallas-hint {
    color: #6b7280;
}

.elallas-hint {
    font-size: .9em;
    margin-top: .5rem;
}

.elallas-required {
    color: #d33;
}

/* ---- Own design ---- */
.elallas-own .elallas-group {
    margin-bottom: 1.1rem;
}

.elallas-own .elallas-label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

.elallas-own .elallas-input {
    width: 100%;
    box-sizing: border-box;
    padding: .55rem .7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    color: #111;
}

.elallas-own .elallas-input:focus {
    border-color: #2a7ae2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 122, 226, .15);
}

.elallas-own .elallas-textarea {
    min-height: 90px;
}

.elallas-own .elallas-meta {
    display: block;
    color: #6b7280;
    font-size: .85em;
    margin-top: .25rem;
}

.elallas-own .elallas-btn {
    display: inline-block;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: .6rem 1.2rem;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

.elallas-own .elallas-btn-primary {
    background: #2a7ae2;
    color: #fff;
}

.elallas-own .elallas-btn-primary:hover {
    background: #1f5fbf;
}

.elallas-own .elallas-btn-ghost {
    background: #fff;
    border-color: #cbd5e1;
    color: #374151;
}

.elallas-own .elallas-btn-small {
    padding: .3rem .7rem;
    font-size: .85rem;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #374151;
}

.elallas-own .elallas-table {
    width: 100%;
    border-collapse: collapse;
}

.elallas-own .elallas-table th,
.elallas-own .elallas-table td {
    border: 1px solid #e5e7eb;
    padding: .55rem .7rem;
    text-align: left;
    vertical-align: top;
}

.elallas-own .elallas-table th {
    width: 38%;
    background: #f8fafc;
}

.elallas-own .elallas-alert {
    border-radius: 6px;
    padding: 1rem 1.2rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

/* Shared (design agnostic) ---- */
.elallas [hidden] {
    display: none !important;
}

.elallas-item-row {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
    align-items: center;
}

.elallas-item-product {
    flex: 2 1 auto;
}

.elallas-item-qty {
    flex: 0 0 110px;
    max-width: 130px;
}

.elallas-item-remove {
    flex: 0 0 auto;
    line-height: 1;
}

.elallas-items-block {
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 1rem;
}

.elallas-actions {
    margin-top: 1.4rem;
}

.elallas-actions-split {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.elallas-inline-form {
    display: inline;
    margin: 0;
}

.elallas-alert-success {
    border-color: #86efac;
    background: #f0fdf4;
}

.elallas-alert-error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.elallas-alert-info {
    border-color: #93c5fd;
    background: #eff6ff;
}

.elallas-summary-items {
    margin: 0;
    padding-left: 1.1rem;
}

.elallas-captcha {
    margin: 1rem 0;
}
