/* Font & base layout ispirati a uno stile pulito e moderno */
/* Puoi sostituire il font-family con quello che usi sul tuo tema,
   qui usiamo una combinazione generica simile a un ambiente SaaS. */

.bmp-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
}

.bmp-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.bmp-subtitle,
.bmp-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.bmp-two-columns {
    display: flex;
    gap: 40px;
}

.bmp-columns-balance .bmp-col:first-child {
    flex: 1.1;
}
.bmp-columns-balance .bmp-col:last-child {
    flex: 0.9;
}

.bmp-col {
    flex: 1;
}

/* Pulsanti */

.bmp-btn-primary,
.bmp-btn-secondary {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.bmp-btn-primary {
    background: #1354a3;
    color: #fff !important;
}

.bmp-btn-primary:hover {
    background: #0f407d;
}

.bmp-btn-secondary {
    background: #fff;
    color: #1354a3 !important;
    border: 1px solid #1354a3;
}

.bmp-btn-secondary:hover {
    background: #f3f6fb;
}

/* Lista profili */

.bmp-list .bmp-empty {
    margin-top: 40px;
    text-align: center;
    padding: 40px 20px;
    border-radius: 6px;
    border: 1px dashed #c8d2e3;
    background: #f8fafc;
}

.bmp-header-actions {
    margin: 25px 0;
    text-align: right;
}

.bmp-table {
    width: 100%;
}

/* Card metodi */

.bmp-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bmp-method-card {
    border-radius: 6px;
    border: 1px solid #e3e6ec;
    padding: 24px 24px 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.bmp-method-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.bmp-method-card ul {
    padding-left: 18px;
    margin-bottom: 18px;
}

.bmp-method-card li {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Form layout */

.bmp-form-page .bmp-form-layout {
    align-items: flex-start;
}

.bmp-form-page .bmp-tutorial {
    border-right: 1px solid #e5e8f0;
    padding-right: 40px;
}

.bmp-form-page .bmp-form {
    padding-left: 10px;
}

.bmp-form-row {
    margin-bottom: 18px;
}

.bmp-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.bmp-form-row input[type="text"] {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #cdd4e0;
    padding: 8px 10px;
    font-size: 14px;
}

.bmp-units span {
    margin-right: 10px;
    font-size: 13px;
}

.bmp-units label {
    margin-right: 18px;
    font-size: 13px;
}

/* Grid misure */

.bmp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
    margin-top: 10px;
}

.bmp-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.bmp-field input[type="number"],
.bmp-field textarea {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #cdd4e0;
    padding: 7px 10px;
    font-size: 14px;
}

.bmp-field textarea {
    resize: vertical;
}

.bmp-notes {
    grid-column: 1 / -1;
}

.bmp-submit-row {
    margin-top: 24px;
    text-align: right;
}

/* Icona info / tutorial */

.bmp-info-trigger,
.bmp-info-icon-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    border: 1px solid #9aa4ba;
    color: #4b5563;
    margin-left: 6px;
    cursor: pointer;
}

.bmp-info-icon-static {
    cursor: default;
}

/* Box tutorial */

.bmp-tutorial-box {
    margin-top: 24px;
    padding: 20px 20px 18px;
    border-radius: 6px;
    border: 1px solid #e0e5f0;
    background: #f9fbff;
}

#bmp-tutorial-title {
    font-size: 17px;
    margin-bottom: 10px;
}

#bmp-tutorial-text {
    font-size: 14px;
    padding-left: 18px;
    margin-bottom: 12px;
}

#bmp-tutorial-video {
    margin-top: 8px;
}

#bmp-tutorial-video iframe,
#bmp-tutorial-video video {
    width: 100%;
    border-radius: 4px;
}

/* Info box */

.bmp-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #0f3f7a;
    color: #fff;
    font-size: 13px;
}

/* Modal */

.bmp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bmp-modal {
    background: #fff;
    max-width: 520px;
    width: 92%;
    padding: 28px 26px 22px;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.bmp-modal h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.bmp-modal ol {
    margin-left: 18px;
    margin-bottom: 14px;
    font-size: 14px;
}

.bmp-modal p {
    font-size: 14px;
    margin-bottom: 16px;
}

.bmp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Link */

.bmp-link {
    color: #1354a3;
    text-decoration: none;
    font-weight: 500;
}

.bmp-link:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
    .bmp-two-columns {
        flex-direction: column;
        gap: 28px;
    }

    .bmp-form-page .bmp-tutorial {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e5e8f0;
        padding-bottom: 24px;
        margin-bottom: 18px;
    }

    .bmp-form-page .bmp-form {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .bmp-wrapper {
        padding: 24px 15px 40px;
    }

    .bmp-title {
        font-size: 24px;
    }

    .bmp-grid {
        grid-template-columns: 1fr;
    }

    .bmp-header-actions {
        text-align: left;
    }

    .shop_table.bmp-table thead {
        display: none;
    }

    .shop_table.bmp-table tr {
        display: block;
        margin-bottom: 12px;
        border-bottom: 1px solid #e5e8f0;
    }

    .shop_table.bmp-table td {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        padding: 6px 0;
    }

    .shop_table.bmp-table td::before {
        content: attr(data-title);
        font-weight: 600;
        margin-right: 12px;
        color: #555;
    }
}

/* Stile sezione ordine */

.woocommerce-order-details .bmp-order-profile {
    margin-top: 24px;
}
