/* GHZ Panel Builder v1.1 public entry + persistence */

.ghz-pb-entry-hero {
    white-space: nowrap;
}

.ghz-pb-product-entry {
    margin: 12px 0 4px;
}

.ghz-pb-product-entry__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--porto-primary-color, #0088cc);
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.3;
}

.ghz-pb-product-entry:not(.is-compact)
.ghz-pb-product-entry__button {
    width: 100%;
}

.ghz-pb-product-entry.is-compact {
    margin-top: 8px;
}

.ghz-pb-product-entry.is-compact
.ghz-pb-product-entry__button {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.78rem;
}

.ghz-pb-project-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 12px;
    padding: 12px 16px;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #fff;
}

.ghz-pb-project-toolbar__identity {
    display: grid;
    gap: 2px;
}

.ghz-pb-project-toolbar__identity > strong {
    font-size: 0.95rem;
}

.ghz-pb-project-toolbar__identity > span,
.ghz-pb-project-toolbar > small {
    color: #667085;
    font-size: 0.78rem;
}

.ghz-pb-project-save-status.is-saved {
    color: #087a45;
}

.ghz-pb-project-save-status.is-error {
    color: #b42318;
}

.ghz-pb-project-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.ghz-pb-project-toolbar__actions a {
    font-weight: 650;
}

.ghz-pb-project-toolbar > small {
    flex: 0 0 100%;
}

.ghz-pb-account-projects__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.ghz-pb-account-projects__head h2 {
    margin-bottom: 4px;
}

.ghz-pb-account-projects__head p {
    margin: 0;
    color: #667085;
}

.ghz-pb-account-projects__grid {
    display: grid;
    gap: 14px;
}

.ghz-pb-account-project {
    padding: 16px;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #fff;
}

.ghz-pb-account-project__body {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.ghz-pb-account-project__body > small,
.ghz-pb-account-project__body > span {
    color: #667085;
}

.ghz-pb-account-project__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ghz-pb-account-project__actions form {
    display: flex;
    gap: 6px;
    margin: 0;
}

.ghz-pb-account-project__actions input[type="text"] {
    min-width: 180px;
}

.ghz-pb-account-project__delete {
    color: #b42318 !important;
}

@media (max-width: 767px) {
    .ghz-pb-project-toolbar,
    .ghz-pb-account-projects__head {
        align-items: stretch;
        flex-direction: column;
    }

    .ghz-pb-project-toolbar__actions,
    .ghz-pb-account-project__actions,
    .ghz-pb-account-project__actions form {
        width: 100%;
    }

    .ghz-pb-account-project__actions form {
        flex-wrap: wrap;
    }

    .ghz-pb-account-project__actions input[type="text"] {
        flex: 1 1 180px;
        min-width: 0;
    }
}
