.mpc-checkout-addons {
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

.mpc-checkout-addons__heading {
    margin-bottom: 18px;
}

.mpc-checkout-addons__heading h3 {
    margin: 0 0 7px;
    font-size: 21px;
    line-height: 1.4;
    color: #171717;
}

.mpc-checkout-addons__heading p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}

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

.mpc-checkout-addon-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.mpc-checkout-addon-card.is-selected {
    border-color: #166144;
    background: #f6fbf8;
    box-shadow: 0 5px 18px rgba(22, 97, 68, .09);
}

.mpc-checkout-addon-card.is-unavailable {
    opacity: .65;
}

.mpc-checkout-addon-card__image {
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 11px;
    background: #f7f7f7;
}

.mpc-checkout-addon-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.mpc-checkout-addon-card__content {
    min-width: 0;
}

.mpc-checkout-addon-card__content h4 {
    margin: 0 0 7px;
    color: #171717;
    font-size: 15px;
    line-height: 1.55;
}

.mpc-checkout-addon-card__price {
    margin-bottom: 12px;
    color: #166144;
    font-weight: 700;
    font-size: 14px;
}

.mpc-checkout-addon-card__price del {
    color: #9ca3af;
    font-weight: 400;
}

.mpc-checkout-addon-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.mpc-addon-check,
.mpc-addon-quantity {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 13px;
    color: #374151;
}

.mpc-addon-check {
    cursor: pointer;
    font-weight: 700;
}

.mpc-addon-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #166144;
}

.mpc-addon-quantity input {
    width: 68px;
    min-height: 38px;
    margin: 0;
    padding: 5px 8px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}

.mpc-addon-quantity input:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.mpc-checkout-addon-card__unavailable {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .mpc-checkout-addons__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .mpc-checkout-addons {
        padding: 16px;
        border-radius: 14px;
    }

    .mpc-checkout-addon-card {
        grid-template-columns: 74px minmax(0, 1fr);
        padding: 11px;
    }

    .mpc-checkout-addon-card__image {
        width: 74px;
        height: 74px;
    }

    .mpc-checkout-addon-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.mpc-checkout-addon-card.is-updating {
    opacity: .72;
    pointer-events: none;
    position: relative;
}

.mpc-checkout-addon-card.is-updating::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    inset-inline-end: 12px;
    top: 12px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: mpc-addon-spin .7s linear infinite;
}

.mpc-addon-message {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.mpc-addon-message.is-error {
    background: #fff1f2;
    color: #b42318;
}

.mpc-addon-message.is-success {
    background: #ecfdf3;
    color: #067647;
}

@keyframes mpc-addon-spin {
    to { transform: rotate(360deg); }
}

/* Shipping region status row (v5.2) */
.woocommerce-checkout-review-order-table tr.mpc-region-shipping-status th,
.woocommerce-checkout-review-order-table tr.mpc-region-shipping-status td {
    vertical-align: middle;
}

.mpc-region-shipping-message {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-weight: 700;
    line-height: 1.5;
}

.mpc-region-shipping-message img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 28px;
}

.mpc-region-shipping-status.is-free .mpc-region-shipping-message {
    color: #166144;
}

.mpc-region-shipping-status.is-out .mpc-region-shipping-message {
    color: #9f2d2d;
}

html[lang^="en"] .mpc-region-shipping-message {
    justify-content: flex-start;
}
