.mfv {
    --mfv-bg: rgba(17, 24, 39, 0.6);
    --mfv-border: rgba(255, 255, 255, 0.1);
    --mfv-white: #ffffff;
    --mfv-white-70: rgba(255, 255, 255, 0.7);
    --mfv-white-50: rgba(255, 255, 255, 0.5);
    --mfv-white-30: rgba(255, 255, 255, 0.3);
    --mfv-accent: #3b82f6;
    --mfv-success: #22c55e;
    --mfv-error: #ef4444;
    --mfv-radius: 16px;
    --mfv-radius-sm: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--mfv-white);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mfv *, .mfv *::before, .mfv *::after {
    box-sizing: border-box;
}

.mfv-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mfv-services {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mfv-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    background: var(--mfv-bg);
    border: 1px solid var(--mfv-border);
    border-radius: var(--mfv-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 0;
    overflow: hidden;
}

.mfv-item:hover {
    border-color: var(--mfv-white-30);
    background: rgba(17, 24, 39, 0.75);
}

.mfv-item-active {
    border-color: var(--mfv-accent);
    background: rgba(59, 130, 246, 0.15);
}

.mfv-item-active:hover {
    border-color: var(--mfv-accent);
}

.mfv-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 20px;
}

.mfv-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mfv-item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--mfv-white);
}

.mfv-item-desc {
    font-size: 14px;
    color: var(--mfv-white-50);
}

.mfv-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--mfv-white);
    white-space: nowrap;
}

.mfv-item-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    flex-shrink: 0;
    max-width: 100%;
}

.mfv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--mfv-white);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1;
}

.mfv-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    border-radius: 30px;
}

.mfv-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.2);
}

.mfv-qty {
    min-width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mfv-white);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.mfv-qty-input {
    display: none;
}

.mfv-dedication {
    padding: 24px 28px;
    background: var(--mfv-bg);
    border: 1px solid var(--mfv-border);
    border-radius: var(--mfv-radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mfv-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--mfv-white);
    margin-bottom: 14px;
}

.mfv-label span {
    font-weight: 400;
    color: var(--mfv-white-50);
}

.mfv-textarea {
    width: 100%;
    min-height: 110px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--mfv-border);
    border-radius: var(--mfv-radius-sm);
    color: var(--mfv-white);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.mfv-textarea:focus {
    outline: none;
    border-color: var(--mfv-accent);
}

.mfv-textarea::placeholder {
    color: var(--mfv-white-30);
}

.mfv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 28px;
    background: var(--mfv-bg);
    border: 1px solid var(--mfv-border);
    border-radius: var(--mfv-radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mfv-total {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mfv-total-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--mfv-white-50);
}

.mfv-total-row span:last-child {
    font-weight: 500;
    color: var(--mfv-white-70);
}

.mfv-total-main {
    font-size: 16px;
    color: var(--mfv-white);
}

.mfv-total-main span:last-child {
    font-size: 26px;
    font-weight: 700;
    color: var(--mfv-white);
}

.mfv-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    height: 56px;
    padding: 0 32px;
    background: var(--mfv-white);
    border: none;
    border-radius: var(--mfv-radius-sm);
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mfv-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.mfv-submit:active:not(:disabled) {
    transform: translateY(0);
}

.mfv-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.mfv-submit-loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(17, 24, 39, 0.2);
    border-top-color: #111827;
    border-radius: 50%;
    animation: mfv-spin 0.7s linear infinite;
}

.mfv-submit.mfv-loading .mfv-submit-label {
    display: none;
}

.mfv-submit.mfv-loading .mfv-submit-loader {
    display: block;
}

.mfv-submit.mfv-success {
    background: var(--mfv-white);
    color: #111827;
    min-width: auto;
    padding: 0 20px;
}

.mfv-submit.mfv-success .mfv-submit-label {
    display: inline;
    font-size: 13px;
}

.mfv-submit.mfv-success .mfv-submit-loader {
    display: none;
}

.mfv-alert {
    padding: 18px 22px;
    border-radius: var(--mfv-radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin-top: 16px;
}

.mfv-alert-err {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--mfv-error);
}

@media (max-width: 768px) {
    .mfv {
        overflow: hidden;
    }
    
    .mfv-item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        overflow: hidden;
    }
    
    .mfv-item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .mfv-item-controls {
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        padding: 4px;
        box-sizing: border-box;
    }

    .mfv-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .mfv-qty {
        min-width: 40px;
        flex: 1;
        font-size: 20px;
    }
    
    .mfv-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 16px;
    }
    
    .mfv-total {
        text-align: center;
    }
    
    .mfv-total-row {
        justify-content: center;
    }
    
    .mfv-submit {
        width: 100%;
    }
    
    .mfv-dedication {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .mfv-form {
        gap: 12px;
    }
    
    .mfv-services {
        gap: 10px;
    }
    
    .mfv-item {
        padding: 14px;
        border-radius: 12px;
        gap: 12px;
    }
    
    .mfv-item-name {
        font-size: 15px;
    }
    
    .mfv-item-price {
        font-size: 16px;
    }
    
    .mfv-item-desc {
        font-size: 12px;
    }
    
    .mfv-item-controls {
        padding: 3px;
        border-radius: 40px;
        width: calc(100% - 4px);
        margin: 0 auto;
    }
    
    .mfv-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
        min-width: 38px;
    }
    
    .mfv-qty {
        font-size: 18px;
        min-width: 30px;
        padding: 0 4px;
    }
    
    .mfv-footer,
    .mfv-dedication {
        padding: 14px;
        border-radius: 12px;
    }
    
    .mfv-total-main span:last-child {
        font-size: 20px;
    }
    
    .mfv-submit {
        height: 48px;
        font-size: 14px;
        min-width: auto;
        padding: 0 16px;
    }
    
    .mfv-textarea {
        min-height: 80px;
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .mfv-item {
        padding: 12px;
        gap: 10px;
    }
    
    .mfv-item-controls {
        padding: 2px;
        width: calc(100% - 2px);
    }
    
    .mfv-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
        min-width: 34px;
    }
    
    .mfv-qty {
        font-size: 16px;
        min-width: 26px;
        padding: 0 2px;
    }
    
    .mfv-item-name {
        font-size: 14px;
    }
    
    .mfv-item-price {
        font-size: 15px;
    }
    
    .mfv-item-desc {
        font-size: 11px;
    }
    
    .mfv-footer,
    .mfv-dedication {
        padding: 12px;
    }
    
    .mfv-submit {
        height: 44px;
        font-size: 13px;
    }
}

.woocommerce-cart-form__cart-item img,
.woocommerce-checkout-review-order-table img,
.woocommerce table.cart img,
.woocommerce table.shop_table img,
.woocommerce-mini-cart-item img,
.cart_item img,
.order-total img,
.order_item img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.woocommerce-checkout-review-order-table .product-thumbnail,
.woocommerce-cart-form .product-thumbnail {
    width: 80px !important;
}