.mc-main-block {
    text-align: left; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mc-charge-confirmation {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    font-size: 14.5px;
    line-height: 1.5;
}

#mc-charge-confirmation.mc-fee-initializing,
.mc-charge-confirmation.mc-fee-initializing {
    opacity: 0;
    pointer-events: none;
}

#mc-charge-confirmation.mc-fee-ready,
.mc-charge-confirmation.mc-fee-ready {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.15s ease;
}

.mc-fee-root--drawer {
    display: block;
    margin: 0.75rem 0 0;
    padding: 0 0.5rem;
}

.mc-fee-root--drawer .mc-charge-confirmation {
    margin: 0.75rem 0;
    padding: 0.875rem;
    font-size: 13.5px;
}

.mc-fee-root--drawer .mc-list-ul {
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
}

.mc-fee-root--drawer .mc-list-li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 13.5px;
}

.mc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    color: #1f2937;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.mc-checkbox-label:hover {
    color: #111827;
}

.mc-checkbox-input-wrap {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.mc-charge-checkbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.mc-checkbox-custom {
    position: absolute;
    inset: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #888;
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}

.mc-checkbox-custom::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.mc-charge-checkbox:checked ~ .mc-checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

.mc-charge-checkbox:checked ~ .mc-checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

/* Text part — single line: label + help icon */
.mc-checkbox-text {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.4;
    min-width: 0;
}

#mc-confirmation-label {
    display: inline;
    white-space: normal;
}

/* Legacy themes — remove duplicate green amount badge */
#mc-fee-amount-badge {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Tooltip (the little "?" circle) */
.mc-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: #555;
    color: #fff;
    text-align: center;
    line-height: 1;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    cursor: help;
    user-select: none;
    position: relative;
    vertical-align: middle;
}

.mc-tooltip[hidden] {
    display: none !important;
}

/* Tooltip content */
.mc-tooltip[tooltip]::after {
    content: attr(tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px 14px;
    min-width: 220px;
    background: #1f2937;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.4;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 1000;
    pointer-events: none;
    white-space: normal;
}

.mc-tooltip[tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 3px;
    border: 7px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.mc-tooltip:hover::after,
.mc-tooltip:hover::before,
.mc-tooltip:focus-within::after,
.mc-tooltip:focus-within::before {
    opacity: 1;
    visibility: visible;
}

/* Fee card - informational display */
.mc-fee-card {
    display: none;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border: 2px solid #2563eb;
    border-radius: 8px;
    font-size: 14px;
}

.mc-fee-card.show {
    display: block;
}

.mc-fee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mc-fee-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    flex: 1;
}

.mc-fee-amount-display {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    min-width: 80px;
    text-align: right;
}

.mc-fee-description {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
}

/* Error message */
.mc-error-message {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    font-size: 13.5px;
}

.mc-error-message.show {
    display: block;
}

/* Optional: disabled checkout button style */
.mc-checkout-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Charge message styling */
.mc-charge-message {
    margin-top: 12px;
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #28a745;
    border-radius: 6px;
    color: #155724;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Side cart / drawer block */
#mc-side-cart-fee-block.mc-fee-initializing:not(.mc-fee-ready) {
    opacity: 0;
    pointer-events: none;
}

#mc-side-cart-fee-block.mc-fee-ready {
    opacity: 1;
    pointer-events: auto;
}

#mc-side-cart-charge-confirmation[hidden],
#mc-side-cart-error-message[hidden],
#mc-side-cart-restriction-message[hidden],
#mc-side-cart-ineligible[hidden] {
    display: none !important;
}

#mc-side-cart-error-message,
#mc-side-cart-restriction-message {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

#mc-side-cart-error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

#mc-side-cart-restriction-message {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.mc-checkout-blocked,
.mc-checkout-disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

#mc-side-cart-charge-checkbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}