/* Cart/checkout registration overview block */
.mgd-cart-overview {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.mgd-cart-overview-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.mgd-cart-overview-title {
    font-weight: 700;
    color: #0A3D62;
    font-size: 15px;
}

.mgd-cart-overview-info {
    color: #475569;
    font-size: 14px;
}

.mgd-cart-view-registration-btn {
    margin-left: auto;
}

/* Buttons (standalone for cart/checkout pages) */
.mgd-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mgd-btn-primary {
    background: #0A3D62;
    color: #fff;
    border-color: #0A3D62;
}

.mgd-btn-primary:hover {
    background: #145A8D;
    border-color: #145A8D;
    color: #fff;
}

.mgd-btn-ghost {
    background: transparent;
    color: #0A3D62;
    border-color: #0A3D62;
}

.mgd-btn-ghost:hover {
    background: rgba(10, 61, 98, 0.08);
}

.mgd-btn-danger-outline {
    background: transparent;
    color: #b91c1c;
    border-color: #b91c1c;
}

.mgd-btn-danger-outline:hover {
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
}

.mgd-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Modal */
.mgd-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s ease, opacity 0.2s ease;
}

.mgd-cart-modal[aria-hidden="false"].mgd-cart-modal-open {
    visibility: visible;
    opacity: 1;
}

.mgd-cart-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.mgd-cart-modal-dialog {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mgd-cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mgd-cart-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0A3D62;
}

.mgd-cart-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.mgd-cart-modal-close:hover {
    color: #0A3D62;
}

.mgd-cart-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.mgd-cart-modal-reg-info {
    margin-bottom: 16px;
    font-size: 13px;
    color: #475569;
}

.mgd-cart-modal-reg-info p {
    margin: 0 0 4px;
}

.mgd-cart-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mgd-cart-modal-table th,
.mgd-cart-modal-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.mgd-cart-modal-table th {
    font-weight: 600;
    color: #0A3D62;
    background: #f1f5f9;
}

.mgd-cell-order-summary {
    max-width: 240px;
    word-break: break-word;
}

.mgd-cart-modal-total {
    margin: 16px 0 0;
    font-size: 15px;
    color: #0A3D62;
}

.mgd-cart-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mgd-cart-modal-footer .mgd-btn {
    text-decoration: none;
}

body.mgd-cart-modal-body-open {
    overflow: hidden;
}
