/* Multiple Address - red theme */
.ma-wrap {
    --ma-red: #ed1c24;
    --ma-red-dark: #c90008;
    --ma-black: #202020;
    --ma-border: #eeeeee;
    --ma-muted: #777777;
    --ma-soft-red: #fff3f3;

    direction: rtl;
    width: calc(100% - 30px);
    max-width: 1170px;
    margin: 32px auto;
    padding: 0;
    font-family: inherit;
    color: var(--ma-black);
}

.ma-wrap *,
.ma-wrap *::before,
.ma-wrap *::after {
    box-sizing: border-box;
}

.ma-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ma-border);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(237, 28, 36, .07);
}

.ma-head h2,
.ma-form-title h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ma-black);
}

.ma-head p {
    margin: 0;
    color: var(--ma-muted);
    font-size: 14px;
}

.ma-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.ma-card {
    position: relative;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ma-border);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .035);
    transition: .2s ease;
}

.ma-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(237, 28, 36, .08);
}

.ma-card.is-selected {
    border-color: var(--ma-red);
    box-shadow: 0 18px 45px rgba(237, 28, 36, .13);
}

.ma-card.is-selected::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ma-red);
    box-shadow: 0 0 0 5px rgba(237, 28, 36, .12);
}

.ma-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ma-card-top strong {
    font-size: 16px;
    color: var(--ma-black);
}

.ma-card-top strong span {
    color: var(--ma-red);
    font-weight: 800;
}

.ma-address-line {
    min-height: 48px;
    margin: 0 0 12px;
    color: #333;
    font-size: 14px;
    line-height: 1.9;
}

.ma-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 14px;
    color: var(--ma-muted);
}

.ma-meta small {
    font-size: 12px;
}

.ma-actions,
.ma-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ma-actions form {
    margin: 0;
}

.ma-btn,
.ma-wrap a.ma-btn,
.ma-wrap button.ma-btn {
    width: auto !important;
    min-width: unset !important;
    height: 38px !important;
    min-height: 38px !important;
    line-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: .2s ease !important;
    white-space: nowrap;
    font-family: inherit !important;
}

.ma-btn-primary,
.ma-wrap button.ma-btn-primary,
.ma-wrap a.ma-btn-primary {
    background: var(--ma-red) !important;
    border-color: var(--ma-red) !important;
    color: #fff !important;
}

.ma-btn-primary:hover,
.ma-wrap button.ma-btn-primary:hover,
.ma-wrap a.ma-btn-primary:hover {
    background: var(--ma-red-dark) !important;
    border-color: var(--ma-red-dark) !important;
    color: #fff !important;
}

.ma-btn-outline,
.ma-wrap button.ma-btn-outline,
.ma-wrap a.ma-btn-outline {
    background: #fff !important;
    color: var(--ma-red) !important;
    border-color: rgba(237, 28, 36, .35) !important;
}

.ma-btn-outline:hover,
.ma-wrap button.ma-btn-outline:hover,
.ma-wrap a.ma-btn-outline:hover {
    background: var(--ma-red) !important;
    color: #fff !important;
    border-color: var(--ma-red) !important;
}

.ma-btn-soft,
.ma-wrap button.ma-btn-soft,
.ma-wrap a.ma-btn-soft {
    background: var(--ma-soft-red) !important;
    color: var(--ma-red-dark) !important;
    border-color: #ffd7d9 !important;
}

.ma-btn-soft:hover,
.ma-wrap button.ma-btn-soft:hover,
.ma-wrap a.ma-btn-soft:hover {
    background: #ffe6e7 !important;
    color: var(--ma-red-dark) !important;
}

.ma-btn-danger,
.ma-wrap button.ma-btn-danger {
    background: #fff !important;
    color: #b3261e !important;
    border-color: #f1c9c9 !important;
}

.ma-btn-danger:hover,
.ma-wrap button.ma-btn-danger:hover {
    background: #b3261e !important;
    color: #fff !important;
    border-color: #b3261e !important;
}

.ma-empty,
.ma-notice {
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
}

.ma-empty {
    background: #fff7f7;
    border: 1px solid #ffd9db;
    color: #8f1117;
}

.ma-notice-success {
    background: #f2fff8;
    border: 1px solid #bae7cf;
    color: #167a46;
}

.ma-notice-error {
    background: #fff4f4;
    border: 1px solid #f0c6c6;
    color: #b3261e;
}

.ma-form {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ma-border);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(237, 28, 36, .07);
}

.ma-form[hidden] {
    display: none !important;
}

.ma-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.ma-form-close {
    border: 0;
    background: transparent;
    color: var(--ma-red);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.ma-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ma-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

.ma-field-wide {
    grid-column: span 2;
}

.ma-field span {
    color: #333;
    font-size: 13px;
    font-weight: 800;
}

.ma-field input,
.ma-field textarea,
.ma-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--ma-border);
    border-radius: 10px;
    color: var(--ma-black);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: .2s ease;
}

.ma-field select {
    cursor: pointer;
}

.ma-field textarea {
    min-height: 92px;
    resize: vertical;
    line-height: 1.9;
}

.ma-field input:focus,
.ma-field textarea:focus,
.ma-field select:focus {
    border-color: var(--ma-red);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, .12);
}

.ma-guest {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ma-border);
    border-radius: 16px;
    text-align: center;
}

.ma-form-note {
    margin: 16px 0;
    padding: 12px 14px;
    background: #fff7f7;
    border: 1px solid #ffd9db;
    border-radius: 12px;
    color: #8f1117;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .ma-wrap {
        width: calc(100% - 24px);
        margin: 18px auto;
    }

    .ma-head,
    .ma-form-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .ma-grid,
    .ma-fields {
        grid-template-columns: 1fr;
    }

    .ma-field-wide {
        grid-column: span 1;
    }

    .ma-actions,
    .ma-form-actions {
        align-items: stretch;
    }

    .ma-actions .ma-btn,
    .ma-actions form,
    .ma-form-actions .ma-btn {
        width: 100% !important;
    }

    .ma-btn,
    .ma-wrap a.ma-btn,
    .ma-wrap button.ma-btn {
        height: 36px !important;
        min-height: 36px !important;
        line-height: 36px !important;
        padding: 0 13px !important;
        font-size: 12px !important;
    }
}
