/**
 * WooCommerce External Products Cart Styles
 *
 * Styling für den Partnerprodukte-Warenkorb
 *
 * @package mylandingpageai
 * @version 1.0.0
 */

/* ============================================
   CART SECTION - PARTNERPRODUKTE
   ============================================ */

.mylp-wc-external-cart-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mylp-wc-external-cart-section h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.mylp-external-cart-info {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.95rem;
}

/* Cart Table */
.mylp-external-cart-table {
    margin-bottom: 20px;
}

.mylp-external-cart-table .product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* Platform Badge */
.mylp-platform-badge {
    display: inline-block;
    padding: 3px 8px;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    vertical-align: middle;
}

.mylp-platform-amazon {
    background: #FF9900;
    color: #fff;
}

.mylp-platform-doterra {
    background: #00A0DF;
    color: #fff;
}

.mylp-platform-ds24 {
    background: #4CAF50;
    color: #fff;
}

.mylp-platform-custom {
    background: #9E9E9E;
    color: #fff;
}

/* Quantity Controls */
.mylp-external-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mylp-wc-external-qty-minus,
.mylp-wc-external-qty-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mylp-wc-external-qty-minus:hover,
.mylp-wc-external-qty-plus:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.mylp-external-qty-input {
    width: 50px !important;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px;
}

/* Remove Button */
.mylp-wc-external-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mylp-wc-external-remove:hover {
    background: #ff4444;
    color: #fff;
}

/* Cart Totals */
.mylp-external-cart-totals {
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
}

.mylp-external-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.mylp-external-cart-total-label {
    font-weight: 500;
    color: #333;
}

.mylp-external-cart-total-value {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--e-global-color-primary, #093050);
}

/* Cart Actions */
.mylp-external-cart-actions {
    margin-top: 20px;
    text-align: right;
}

.mylp-external-checkout-btn {
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: var(--e-global-color-primary, #093050) !important;
    border: none !important;
    color: var(--e-global-color-secondary, #FFFFFF) !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(9, 48, 80, 0.3);
}

.mylp-external-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(9, 48, 80, 0.4);
}

/* ============================================
   ADD TO CART BUTTONS - EXTERNE PRODUKTE
   Hohe Spezifität für Theme-Override
   ============================================ */

/* Single Product Page - "In den Warenkorb legen" Button */
body.single-product .mylp-external-add-to-cart-wrap .mylp-wc-external-add-to-cart,
body.single-product .mylp-external-add-to-cart-wrap button.mylp-wc-external-add-to-cart,
body.single-product button.mylp-wc-external-add-to-cart.single_add_to_cart_button,
body.single-product button.single_add_to_cart_button.mylp-wc-external-add-to-cart {
    color: var(--e-global-color-secondary, #FFFFFF) !important;
    background-color: var(--e-global-color-primary, #093050) !important;
    background: var(--e-global-color-primary, #093050) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 15px 30px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

body.single-product .mylp-external-add-to-cart-wrap .mylp-wc-external-add-to-cart:hover,
body.single-product button.mylp-wc-external-add-to-cart.single_add_to_cart_button:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px) !important;
}

/* Loop/Archive Pages - "In den Warenkorb legen" Button */
body.woocommerce ul.products li.product a.mylp-wc-external-add-to-cart,
body.woocommerce ul.products li.product a.button.mylp-wc-external-add-to-cart,
body .woocommerce ul.products li.product a.mylp-wc-external-add-to-cart,
.woocommerce ul.products li.product a.mylp-wc-external-add-to-cart.button {
    color: var(--e-global-color-secondary, #FFFFFF) !important;
    background-color: var(--e-global-color-primary, #093050) !important;
    background: var(--e-global-color-primary, #093050) !important;
    border: none !important;
    border-radius: 6px !important;
}

.mylp-wc-external-add-to-cart {
    position: relative;
    overflow: hidden;
}

.mylp-wc-external-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.mylp-wc-external-add-to-cart.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.mylp-wc-external-add-to-cart.added {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: white !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Häkchen-Icon beim Hinzufügen */
.mylp-wc-external-add-to-cart.added::before {
    content: '✓';
    margin-right: 6px;
    font-weight: bold;
    animation: checkmark-pop 0.3s ease;
}

@keyframes checkmark-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================
   MODAL BASE STYLES
   ============================================ */

.mylp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
}

.mylp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.mylp-modal-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.mylp-modal-close {
    position: absolute;
    top: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
    border: none;
    background: var(--e-global-color-primary, #093050) !important;
    color: var(--e-global-color-secondary, #FFFFFF) !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10;
    padding: 2px !important;
}

.mylp-modal-close:hover {
}

.mylp-modal-header {
    padding: 30px 30px 20px;
    text-align: center;
}

.mylp-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.mylp-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.mylp-modal-body {
    padding: 0 30px 20px;
}

.mylp-modal-subtitle {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: #666;
}

.mylp-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */

.mylp-external-products-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.mylp-checkout-product-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mylp-checkout-product-item:last-child {
    border-bottom: none;
}

.mylp-checkout-product-bullet {
    color: var(--e-global-color-primary, #093050);
    font-size: 1.2rem;
    margin-right: 10px;
}

.mylp-checkout-product-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.mylp-checkout-product-qty {
    color: #888;
    font-size: 0.9rem;
    margin: 0 10px;
}

.mylp-checkout-product-price {
    font-weight: 600;
    color: #333;
}

.mylp-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
}

.mylp-checkout-total-label {
    font-weight: 500;
    color: #666;
}

.mylp-checkout-total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--e-global-color-primary, #093050);
}

/* Checkout Button */
.mylp-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mylp-btn-primary {
    background: var(--e-global-color-primary, #093050) !important;
    color: var(--e-global-color-secondary, #FFFFFF) !important;
    box-shadow: 0 4px 15px rgba(9, 48, 80, 0.3);
}

.mylp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 48, 80, 0.4);
}

.mylp-btn-icon {
    font-size: 1.2rem;
}

.mylp-checkout-hint {
    margin: 15px 0 0 0;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mylp-hint-icon {
    color: var(--e-global-color-primary, #093050);
}

/* ============================================
   MULTI-PLATFORM MODAL
   ============================================ */

.mylp-multiplatform-modal .mylp-modal-icon {
    background: linear-gradient(135deg, var(--e-global-color-primary, #093050) 0%, var(--e-global-color-accent, #5C7A7A) 100%);
}

.mylp-platform-groups {
    max-height: 250px;
    overflow-y: auto;
}

.mylp-platform-group {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.mylp-platform-group:last-child {
    margin-bottom: 0;
}

.mylp-platform-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.mylp-platform-icon {
    font-size: 1.2rem;
}

.mylp-platform-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.mylp-platform-count {
    font-size: 0.85rem;
    color: #888;
}

.mylp-platform-items {
    padding: 10px 15px;
}

.mylp-platform-item {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #555;
}

.mylp-estimated-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
}

.mylp-time-icon {
    font-size: 1.1rem;
}

.mylp-time-text {
    font-size: 0.9rem;
    color: #1976D2;
}

.mylp-multiplatform-info {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.mylp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mylp-loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.mylp-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--e-global-color-primary, #093050);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 25px;
}

.mylp-loading-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.mylp-loading-status {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    color: #666;
}

.mylp-loading-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.mylp-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--e-global-color-primary, #093050) 0%, var(--e-global-color-accent, #5C7A7A) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.mylp-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
}

.mylp-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}

.mylp-success-title {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
}

.mylp-success-text {
    margin: 0 0 25px 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.mylp-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.mylp-btn-retry {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 25px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mylp-btn-retry:hover {
    background: #e8e8e8;
    border-color: #999;
}

.mylp-btn-retry-question {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}

.mylp-btn-retry-action {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--e-global-color-primary, #093050);
}

.mylp-success-actions .mylp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--e-global-color-primary, #093050);
    color: var(--e-global-color-secondary, #FFFFFF);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(9, 48, 80, 0.3);
}

.mylp-success-actions .mylp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 48, 80, 0.4);
}

.mylp-btn-secondary {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mylp-btn-secondary:hover {
    background: #e0e0e0;
}

/* ============================================
   MINI-CART NOTICE
   ============================================ */

.mylp-minicart-external-notice {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mylp-minicart-external-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1976D2;
}

.mylp-minicart-external-total {
    font-weight: 600;
    color: var(--e-global-color-primary, #093050);
}

/* ============================================
   SINGLE PRODUCT NOTICE
   ============================================ */

.mylp-external-cart-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    border: 1px solid #90CAF9;
    border-radius: 10px;
}

.mylp-notice-icon {
    font-size: 1.3rem;
}

.mylp-notice-text {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
}

.mylp-notice-link {
    font-weight: 600;
    color: var(--e-global-color-primary, #093050);
    text-decoration: none;
}

.mylp-notice-link:hover {
    text-decoration: underline;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.mylp-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 100002;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mylp-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mylp-toast-success {
    background: #4CAF50;
    color: #fff;
}

.mylp-toast-error {
    background: #f44336;
    color: #fff;
}

.mylp-toast-warning {
    background: #FF9800;
    color: #fff;
}

.mylp-toast-info {
    background: #2196F3;
    color: #fff;
}

/* ============================================
   FLOATING CART ICON
   Rund mit Primary Color
   ============================================ */

.mylp-external-cart-floating {
    position: fixed;
    right: 20px;
    top: 80px;
    background-color: #003D5C !important;  /* Primary Color */
    background: #003D5C !important;
    color: #FFFFFF !important;
    width: 55px;
    height: 55px;
    border-radius: 50% !important;         /* Komplett rund */
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 61, 92, 0.35);
    transition: all 0.3s ease;
    z-index: 10000;
}

.mylp-external-cart-floating:hover {
    background-color: #00A0DF !important;  /* Accent on hover */
    background: #00A0DF !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 160, 223, 0.4);
}

.mylp-floating-icon {
    font-size: 22px;
    color: #FFFFFF !important;
}

.mylp-floating-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #D9534F;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ============================================
   MINI-CART POPUP (Affiliate-Design)
   Slide-in von rechts wie Affiliate Cart Widget
   ============================================ */

.mylp-minicart-popup {
    position: fixed;
    top: 80px;
    right: -400px;                     /* Versteckt rechts */
    z-index: 9999;
    background: white;
    border-radius: 15px 0 0 15px;      /* Nur links abgerundet */
    padding: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    width: 380px;
    max-height: 80vh;
    overflow: hidden;
    transition: right 0.3s ease;
}

.mylp-minicart-popup.active {
    right: 0;                          /* Sichtbar */
}

/* Reset für alle Buttons im Mini-Cart - überschreibt globale Styles */
.mylp-minicart-popup button,
.mylp-minicart-popup [type="button"] {
    border: none !important;
    background: transparent;
    padding: 0;
    margin: 0;
    white-space: normal;
    text-align: center;
}

.mylp-minicart-content {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.mylp-minicart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 2px solid var(--e-global-color-accent, #00A0DF);
    background: #fff;
}

.mylp-minicart-header h4 {
    margin: 0;
    color: var(--e-global-color-primary, #003D5C);
    font-size: 1.2em;
    font-weight: 600;
}

/* Close Button - Spezifisch überschrieben */
.mylp-minicart-popup .mylp-minicart-close,
.mylp-minicart-popup button.mylp-minicart-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: none !important;
    background: #f5f5f5 !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: normal !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    white-space: normal !important;
    line-height: 1 !important;
}

.mylp-minicart-popup .mylp-minicart-close:hover,
.mylp-minicart-popup button.mylp-minicart-close:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
    border: none !important;
}

/* Mini-Cart Body (Affiliate-Design) */
.mylp-minicart-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(80vh - 200px);
    padding: 15px 20px;
}

/* Mini-Cart Sektionen - ENTFERNT da wir eine einzige Liste nutzen */
.mylp-minicart-wc-section,
.mylp-minicart-external-section {
    padding: 0;
    border-bottom: none;
}

.mylp-minicart-wc-section h5,
.mylp-minicart-external-section h5 {
    display: none; /* Keine separaten Überschriften */
}

/* Mini-Cart Items (Affiliate-Design) - Optimiert für lange Produktnamen */
.mylp-minicart-item {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.mylp-minicart-item:last-child {
    border-bottom: none;
}

/* Bild links, über beide Zeilen */
.mylp-minicart-img {
    grid-row: 1 / 3;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
}

/* Produktname - volle Breite in erster Zeile */
.mylp-minicart-item-info {
    grid-column: 2 / 5;
    grid-row: 1;
    min-width: 0;
}

.mylp-minicart-item-name {
    display: block;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--e-global-color-primary, #003D5C);
    text-decoration: none;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a.mylp-minicart-item-name:hover {
    color: var(--e-global-color-accent, #00A0DF);
}

/* Preis unter dem Namen */
.mylp-minicart-item-qty {
    font-size: 0.85rem;
    color: #888;
    display: inline-block;
    margin-top: 2px;
}

.mylp-minicart-item-price {
    color: var(--e-global-color-accent, #00A0DF);
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 2px;
}

/* Zweite Zeile: Qty Controls, Subtotal, Remove */
.mylp-minicart-qty-controls {
    grid-column: 2;
    grid-row: 2;
}

.mylp-minicart-item-subtotal {
    grid-column: 3;
    grid-row: 2;
    font-weight: 700;
    font-size: 1em;
    white-space: nowrap;
    color: var(--e-global-color-primary, #003D5C);
    text-align: right;
}

/* Remove Button */
.mylp-minicart-remove-wc,
.mylp-minicart-remove-external,
.mylp-minicart-item-remove {
    grid-column: 4;
    grid-row: 2;
}

/* ============================================
   SKELETON LOADER
   ============================================ */
.mylp-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: mylp-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes mylp-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.mylp-skeleton-item {
    pointer-events: none;
}

.mylp-skeleton-img {
    width: 50px;
    height: 50px;
    grid-column: 1;
    grid-row: 1 / span 2;
    border-radius: 8px;
}

.mylp-skeleton-name {
    width: 70%;
    height: 14px;
    margin-bottom: 6px;
}

.mylp-skeleton-price {
    width: 40%;
    height: 12px;
}

.mylp-skeleton-qty {
    width: 80px;
    height: 28px;
    border-radius: 8px;
    grid-column: 2;
    grid-row: 2;
}

.mylp-skeleton-subtotal {
    width: 60px;
    height: 16px;
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
}

.mylp-skeleton-total-value {
    display: inline-block;
    width: 80px;
    height: 20px;
}

/* Mini-Cart Quantity Controls (Affiliate-Design) */
.mylp-minicart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px 8px;
}

/* Quantity Buttons - Spezifisch überschrieben (External + WC) */
.mylp-minicart-popup .mylp-minicart-qty-minus,
.mylp-minicart-popup .mylp-minicart-qty-plus,
.mylp-minicart-popup .mylp-minicart-qty-btn,
.mylp-minicart-popup .mylp-minicart-wc-qty,
.mylp-minicart-popup button.mylp-minicart-qty-minus,
.mylp-minicart-popup button.mylp-minicart-qty-plus,
.mylp-minicart-popup button.mylp-minicart-qty-btn,
.mylp-minicart-popup button.mylp-minicart-wc-qty {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    border: none !important;
    background: var(--e-global-color-accent, #00A0DF) !important;
    color: white !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s;
    white-space: normal !important;
    line-height: 1 !important;
}

.mylp-minicart-popup .mylp-minicart-qty-minus:hover,
.mylp-minicart-popup .mylp-minicart-qty-plus:hover,
.mylp-minicart-popup .mylp-minicart-qty-btn:hover,
.mylp-minicart-popup .mylp-minicart-wc-qty:hover,
.mylp-minicart-popup button.mylp-minicart-qty-minus:hover,
.mylp-minicart-popup button.mylp-minicart-qty-plus:hover,
.mylp-minicart-popup button.mylp-minicart-qty-btn:hover,
.mylp-minicart-popup button.mylp-minicart-wc-qty:hover {
    background: var(--e-global-color-primary, #003D5C) !important;
    border: none !important;
    color: white !important;
}

.mylp-minicart-qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Mini-Cart Remove Buttons (Affiliate-Design) - Spezifisch überschrieben */
.mylp-minicart-popup .mylp-minicart-remove-wc,
.mylp-minicart-popup .mylp-minicart-remove-external,
.mylp-minicart-popup .mylp-minicart-item-remove,
.mylp-minicart-popup button.mylp-minicart-remove-wc,
.mylp-minicart-popup button.mylp-minicart-remove-external,
.mylp-minicart-popup button.mylp-minicart-item-remove {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    border: none !important;
    background: #D9534F !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    font-weight: normal !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1 !important;
}

.mylp-minicart-popup .mylp-minicart-remove-wc:hover,
.mylp-minicart-popup .mylp-minicart-remove-external:hover,
.mylp-minicart-popup .mylp-minicart-item-remove:hover,
.mylp-minicart-popup button.mylp-minicart-remove-wc:hover,
.mylp-minicart-popup button.mylp-minicart-remove-external:hover,
.mylp-minicart-popup button.mylp-minicart-item-remove:hover {
    background: #c0392b !important;
    transform: scale(1.1);
    border: none !important;
    color: white !important;
}

/* Mini-Cart Totals (Affiliate-Design) */
.mylp-minicart-total {
    padding: 15px 20px;
    border-top: 2px solid var(--e-global-color-primary, #003D5C);
    background: #f8f9fa;
}

.mylp-minicart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--e-global-color-primary, #003D5C);
}

.mylp-minicart-wc-total,
.mylp-minicart-external-total {
    display: none; /* Separate Totals versteckt, nutze nur grand total */
}

/* Mini-Cart Checkout Button (Affiliate-Design) */
.mylp-minicart-checkout-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 15px 20px 20px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--e-global-color-primary, #003D5C);
    color: white;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.mylp-minicart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0.95;
    color: white;
}

/* Alte Selektoren für Kompatibilität */
.mylp-minicart-wc-section .mylp-btn,
.mylp-minicart-external-section .mylp-btn {
    display: none; /* Verstecke alte separate Buttons */
}

/* Mini-Cart Empty State */
.mylp-minicart-empty {
    padding: 40px 20px;
    text-align: center;
}

.mylp-minicart-empty .mylp-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.mylp-minicart-empty p {
    margin: 0 0 20px 0;
    color: #888;
    font-size: 0.95rem;
}

.mylp-minicart-empty .mylp-btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: #f5f5f5;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mylp-minicart-empty .mylp-btn-secondary:hover {
    background: #e0e0e0;
}

/* Mini-Cart Footer */
.mylp-minicart-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.mylp-minicart-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.mylp-minicart-grand-total span:first-child {
    font-weight: 500;
    color: #333;
}

.mylp-minicart-grand-total span:last-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--e-global-color-primary, #093050);
}

/* Platform Badge in Mini-Cart */
.mylp-minicart-item .mylp-platform-badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 0;
    margin-top: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 3px;
}

/* Floating Button Styles (Button statt Link) */
button.mylp-external-cart-floating {
    border: none !important;
    cursor: pointer;
    background-color: #003D5C !important;
    background: #003D5C !important;
}

button.mylp-external-cart-floating:focus {
    outline: none;
    background-color: #003D5C !important;
    background: #003D5C !important;
    box-shadow: 0 0 0 3px rgba(0, 61, 92, 0.3), 0 4px 15px rgba(0, 61, 92, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mini-Cart Responsive (Affiliate-Design) */
@media (max-width: 768px) {
    .mylp-minicart-popup {
        top: 60px;
        right: -100%;
        width: 90%;
        max-width: 340px;
    }

    .mylp-minicart-popup.active {
        right: 0;
    }

    .mylp-external-cart-floating {
        top: 60px;
        right: 15px;
        width: 50px;
        height: 50px;
        background-color: #003D5C !important;
        background: #003D5C !important;
    }
}

@media (max-width: 480px) {
    .mylp-minicart-popup {
        top: auto;
        bottom: 0;
        right: 0 !important;
        left: 0;
        width: 100%;
        max-width: 100%;
        max-height: 75vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .mylp-minicart-popup.active {
        transform: translateY(0);
    }

    .mylp-minicart-content {
        max-height: 75vh;
    }

    .mylp-minicart-body {
        max-height: calc(75vh - 180px);
    }

    /* Mobile: Einfacheres Grid-Layout */
    .mylp-minicart-item {
        grid-template-columns: 45px 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 6px 10px;
    }

    .mylp-minicart-img {
        grid-row: 1 / 4;
        width: 45px;
        height: 45px;
    }

    .mylp-minicart-item-info {
        grid-column: 2 / 4;
        grid-row: 1;
    }

    .mylp-minicart-qty-controls {
        grid-column: 2;
        grid-row: 2;
    }

    .mylp-minicart-item-subtotal {
        grid-column: 3;
        grid-row: 2;
        margin-top: 8px;
        margin-left: auto;
    }

    .mylp-minicart-remove-wc,
    .mylp-minicart-remove-external,
    .mylp-minicart-item-remove {
        grid-column: 2 / 4;
        grid-row: 3;
        justify-self: end;
        margin-top: 4px;
    }

    .mylp-external-cart-floating {
        top: auto;
        bottom: 20px;
        right: 20px !important;
        border-radius: 50% !important;
        width: 55px;
        height: 55px;
        background-color: #003D5C !important;
        background: #003D5C !important;
    }
}

@media (max-width: 768px) {
    .mylp-wc-external-cart-section {
        padding: 20px;
    }

    .mylp-floating-icon {
        font-size: 18px;
    }

    .mylp-modal {
        max-width: 95%;
    }

    .mylp-modal-content {
        border-radius: 15px;
    }

    .mylp-modal-header {
        padding: 25px 20px 15px;
    }

    .mylp-modal-body {
        padding: 0 20px 15px;
    }

    .mylp-modal-footer {
        padding: 15px 20px 25px;
    }

    .mylp-checkout-btn {
        width: 100%;
        padding: 14px 25px;
    }

    .mylp-external-cart-table .product-thumbnail img {
        width: 50px;
        height: 50px;
    }

    .mylp-external-quantity {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mylp-success-message {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .mylp-external-cart-table thead {
        display: none;
    }

    .mylp-external-cart-table tbody tr {
        display: block;
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .mylp-external-cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
    }

    .mylp-external-cart-table tbody td::before {
        content: attr(data-title);
        font-weight: 500;
        color: #666;
    }

    .mylp-external-cart-table tbody td.product-remove,
    .mylp-external-cart-table tbody td.product-thumbnail {
        display: none;
    }
}

/* ============================================
   CART PAGE - EXTERNE PRODUKTE SEKTION
   (Injiziert in WooCommerce Block Cart)
   ============================================ */

.mylp-cart-external-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mylp-cart-external-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--e-global-color-accent, #00A0DF);
}

.mylp-cart-external-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--e-global-color-primary, #003D5C);
}

.mylp-cart-external-hint {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Items Container */
.mylp-cart-external-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Single Item */
.mylp-cart-external-item {
    display: grid;
    grid-template-columns: 70px 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.mylp-cart-external-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Item Image */
.mylp-cart-external-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.mylp-cart-external-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item Details */
.mylp-cart-external-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mylp-cart-external-item-name {
    font-weight: 600;
    color: var(--e-global-color-primary, #003D5C);
    font-size: 0.95rem;
    line-height: 1.3;
}

.mylp-cart-external-item-price {
    font-size: 0.85rem;
    color: #666;
}

/* Quantity Controls */
.mylp-cart-external-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px 10px;
}

.mylp-cart-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: var(--e-global-color-accent, #00A0DF);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mylp-cart-qty-btn:hover {
    background: var(--e-global-color-primary, #003D5C);
    transform: scale(1.05);
}

.mylp-cart-qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Item Subtotal */
.mylp-cart-external-item-subtotal {
    font-weight: 700;
    font-size: 1rem;
    color: var(--e-global-color-accent, #00A0DF);
    min-width: 80px;
    text-align: right;
}

/* Remove Button */
.mylp-cart-external-item-remove {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mylp-cart-external-item-remove:hover {
    background: #D9534F;
    color: #fff;
    transform: scale(1.1);
}

/* Subtotal Row */
.mylp-cart-external-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--e-global-color-primary, #003D5C);
}

#mylp-cart-external-subtotal-value {
    font-size: 1.2rem;
    color: var(--e-global-color-accent, #00A0DF);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mylp-cart-external-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }

    .mylp-cart-external-item-image {
        width: 60px;
        height: 60px;
        grid-row: span 2;
    }

    .mylp-cart-external-item-details {
        grid-column: 2;
    }

    .mylp-cart-external-item-qty {
        grid-column: 2;
        justify-self: start;
    }

    .mylp-cart-external-item-subtotal {
        grid-column: 1 / -1;
        text-align: left;
        padding-top: 10px;
        border-top: 1px dashed #e0e0e0;
    }

    .mylp-cart-external-item-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .mylp-cart-external-item {
        position: relative;
        padding-right: 50px;
    }
}

/* ============================================
   FIX: .alignwide Override für Cart Sektion
   Überschreibt globale .alignwide { margin-inline: -80px; }
   ============================================ */
.mylp-cart-external-section {
    margin-inline: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Direkter .alignwide Override im Cart-Kontext */
.mylp-cart-external-section.alignwide,
.alignwide.mylp-cart-external-section,
.wp-block-woocommerce-cart .alignwide,
.wc-block-cart .alignwide,
.wp-block-woocommerce-cart .mylp-cart-external-section,
.wc-block-cart .mylp-cart-external-section {
    margin-inline: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Globaler .alignwide Reset für Warenkorb-Seite */
body.woocommerce-cart .alignwide,
body.woocommerce-cart .wp-block-woocommerce-cart .alignwide {
    margin-inline: 0 !important;
}

/* ============================================
   CHECKOUT BUTTON für Partnerprodukte
   ============================================ */
.mylp-cart-external-actions {
    margin-top: 20px;
    padding-top: 15px;
}

.mylp-cart-external-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--e-global-color-accent, #00A0DF);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mylp-cart-external-checkout-btn:hover {
    background: var(--e-global-color-primary, #003D5C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 160, 223, 0.3);
}

.mylp-cart-external-checkout-btn:active {
    transform: translateY(0);
}

/* ============================================
   "WARENKORB ANSEHEN" LINK NACH ADD-TO-CART
   Öffnet Mini-Cart statt Weiterleitung
   ============================================ */

/* "Warenkorb anzeigen" Link ausblenden - Mini-Cart übernimmt Feedback */
.added_to_cart.mylp-view-cart-link,
a.added_to_cart.wc-forward,
.single-product .added_to_cart,
.woocommerce a.added_to_cart {
    display: none !important;
}

/* Hover und ::after Regeln entfernt - Button ist ausgeblendet */

/* ============================================
   VARIABLE PRODUKTE - VARIANTEN-PREIS STYLING
   Passend zum Elementor Price Widget Design
   ============================================ */

/* Preis-Container mit mehr Abstand */
.woocommerce-variation-price {
    margin-bottom: 20px;
    padding: 15px 0;
}

/* Preis-Styling wie bei normalen Produkten */
.woocommerce-variation-price .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 1.1em;
    line-height: 1.4;
}

/* Durchgestrichener Originalpreis (UVP) */
.woocommerce-variation-price .price del {
    color: #999;
    font-size: 0.9em;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Aktueller Preis (Sale) */
.woocommerce-variation-price .price ins {
    text-decoration: none;
    font-weight: 700;
    color: #00a0df;
    font-size: 1.3em;
}

/* Einzel-Preis ohne Sale */
.woocommerce-variation-price .price > .woocommerce-Price-amount {
    font-weight: 700;
    color: #00a0df;
    font-size: 1.3em;
}

/* Screen-Reader Text verstecken */
.woocommerce-variation-price .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Variation Add-to-Cart Container - besserer Abstand */
.woocommerce-variation-add-to-cart {
    margin-top: 15px;
}

/* Quantity + Button Wrapper */
.woocommerce-variation-add-to-cart .e-atc-qty-button-holder {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Quantity Input styling */
.woocommerce-variation-add-to-cart .quantity input.qty {
    width: 70px;
    height: 44px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Add-to-Cart Button styling */
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    height: 44px;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    background: #00a0df;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    background: #0090c9;
    transform: translateY(-1px);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Fix: Button Padding für Variable Produkte (Coaching) */
.elementor-34000 .elementor-element.elementor-element-50591685 .cart button,
.elementor-34000 .elementor-element.elementor-element-50591685 .cart .button {
    padding: 15px 40px 20px 40px !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .woocommerce-variation-price .price {
        flex-direction: column;
        gap: 4px;
    }

    .woocommerce-variation-add-to-cart .e-atc-qty-button-holder {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-variation-add-to-cart .quantity {
        width: 100%;
    }

    .woocommerce-variation-add-to-cart .quantity input.qty {
        width: 100%;
    }

    .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        width: 100%;
    }
}
