/* WooCommerce My Account - Address Blocks */

.mpp-addresses-heading {
    margin-top: 24px;
    margin-bottom: 10px;
}

.mpp-address-card {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 2px solid #ccc;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.mpp-address-clickable {
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.mpp-address-clickable:hover {
    border-color: #2196f3 !important;
    background: #f0f7ff !important;
}

.mpp-address-clickable:hover .mpp-set-default-hint {
    color: #2196f3;
}

.mpp-address-card.is-default {
    border-color: #4caf50;
    background: #f0fff0;
}

.mpp-address-content {
    flex: 1;
    min-width: 0;
}

.mpp-address-actions {
    flex-shrink: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mpp-default-badge {
    font-size: 12px;
    font-weight: 600;
    color: #4caf50;
}

.mpp-set-default-hint {
    font-size: 11px;
    color: #888;
}

.mpp-address-spinner {
    font-size: 12px;
    color: #666;
}

/* --- MPP Checkout Address Selector Blocks --- */
.mpp-checkout-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    position: relative;
}

.mpp-checkout-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    padding-left: 4px;
}

.mpp-checkout-billing-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.mpp-checkout-address-card {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.mpp-checkout-address-card.is-selected {
    border: 2px solid #007cba;
    background-color: #f8faff;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.1);
}

.mpp-checkout-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-top: 4px;
    margin-right: 16px;
    cursor: pointer;
    display: grid;
    place-content: center;
    background-color: #fff;
    transition: all 0.2s ease;
}

.mpp-checkout-radio.is-selected {
    border-color: #007cba;
}

.mpp-checkout-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #007cba;
}

.mpp-checkout-details {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
}

.mpp-checkout-form-container {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mpp-checkout-form-container:not(.is-open) {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.mpp-checkout-form-container.is-open {
    max-height: 800px;
    opacity: 1;
    margin-top: 15px;
}

.mpp-checkout-form-inner {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
}

.mpp-checkout-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.mpp-checkout-input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mpp-checkout-input.is-invalid {
    border: 1.5px solid #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.mpp-checkout-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.mpp-checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(1px);
    cursor: wait;
}

.mpp-checkout-overlay-text {
    padding: 8px 16px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #007cba;
}

.mpp-checkout-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.mpp-checkout-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007cba;
    flex-shrink: 0;
    margin: 0;
}

.mpp-checkout-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mpp-checkout-flex-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mpp-checkout-lines-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Spinner (billing & shipping form) ─────────────────────────────────────── */
@keyframes mpp-spin {
    to {
        transform: rotate(360deg);
    }
}

.mpp-spinner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    font-size: 13px;
    color: #64748b;
}

.mpp-spinner-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: #007cba;
    border-radius: 50%;
    animation: mpp-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ── No-addresses prompt (checkout block) ──────────────────────────────────── */
.mpp-no-addresses-prompt {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    font-size: 14px;
    color: #475569;
}

.mpp-no-addresses-prompt a {
    color: #007cba;
    text-decoration: underline;
    font-weight: 600;
}

.mpp-no-addresses-prompt a:hover {
    color: #005a8c;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 20%
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 78%
}