/**
 * Pretpot Currency Converter Widget Styles
 */

/* Container */
.pretpot-currency-converter {
    position: relative;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Info Icon */
.pretpot-currency-converter__info-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    font-family: Georgia, serif;
    border: none;
    z-index: 10;
}

.pretpot-currency-converter__info-icon:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(1.1);
}

/* Heading */
.pretpot-currency-converter__heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.2;
}

.pretpot-currency-converter__subheading {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

/* Labels */
.pretpot-currency-converter__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Amount Input */
.pretpot-currency-converter__amount-wrapper {
    margin-bottom: 24px;
}

.pretpot-currency-converter__amount-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 24px;
    font-weight: 500;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.pretpot-currency-converter__amount-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Currency Row - ALWAYS INLINE */
.pretpot-currency-converter__currency-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
}

.pretpot-currency-converter__currency-group {
    flex: 1;
    min-width: 0;
}

.pretpot-currency-converter__currency-select-wrapper {
    position: relative;
}

.pretpot-currency-converter__currency-select {
    width: 100%;
    padding: 14px 32px 14px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pretpot-currency-converter__currency-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pretpot-currency-converter__select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 10px;
}

/* Swap Button - ENFORCED ICON VISIBILITY */
.pretpot-currency-converter__swap-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: #000000 !important;
    color: #ffffff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.pretpot-currency-converter__swap-btn:hover {
    transform: rotate(180deg);
    background: #333333 !important;
}

/* FORCE ICON VISIBILITY - ALL SELECTORS */
.pretpot-currency-converter__swap-btn svg,
.pretpot-currency-converter__swap-btn i,
.pretpot-currency-converter__swap-btn .eicon,
.pretpot-currency-converter__swap-btn [class*="icon"],
.pretpot-currency-converter__swap-btn [class*="fa-"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Specific SVG enforcement */
.pretpot-currency-converter__swap-btn svg {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
}

/* Font Awesome enforcement */
.pretpot-currency-converter__swap-btn i,
.pretpot-currency-converter__swap-btn .fas,
.pretpot-currency-converter__swap-btn .far,
.pretpot-currency-converter__swap-btn .fab {
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
    text-align: center !important;
}

/* Elementor icon enforcement */
.pretpot-currency-converter__swap-btn .eicon {
    font-family: "eicons" !important;
}

/* Result Display */
.pretpot-currency-converter__result {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.pretpot-currency-converter__result-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pretpot-currency-converter__result-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.pretpot-currency-converter__result-rate {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

/* Convert Button */
.pretpot-currency-converter__convert-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #4f46e5;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.pretpot-currency-converter__convert-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.pretpot-currency-converter__convert-btn:active {
    transform: translateY(0);
}

/* Footer Text */
.pretpot-currency-converter__footer-text {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Modal */
.pretpot-currency-converter__modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pretpot-currency-converter__modal.active {
    display: flex;
}

.pretpot-currency-converter__modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.pretpot-currency-converter__modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.pretpot-currency-converter__modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

.pretpot-currency-converter__modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-right: 40px;
}

.pretpot-currency-converter__modal-body {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.pretpot-currency-converter__modal-body p {
    margin-bottom: 12px;
}

/* Loading State */
.pretpot-currency-converter__convert-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pretpot-currency-converter__convert-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: pretpot-spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* Responsive - MAINTAIN INLINE LAYOUT */
@media (max-width: 480px) {
    .pretpot-currency-converter {
        padding: 24px;
        max-width: 100%;
    }
    
    .pretpot-currency-converter__heading {
        font-size: 24px;
    }
    
    .pretpot-currency-converter__currency-row {
        flex-direction: row;
        gap: 8px;
    }
    
    .pretpot-currency-converter__currency-select {
        padding: 12px 28px 12px 10px;
        font-size: 13px;
    }
    
    .pretpot-currency-converter__swap-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .pretpot-currency-converter__swap-btn svg,
    .pretpot-currency-converter__swap-btn i,
    .pretpot-currency-converter__swap-btn .eicon,
    .pretpot-currency-converter__swap-btn [class*="icon"],
    .pretpot-currency-converter__swap-btn [class*="fa-"] {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        font-size: 16px !important;
    }
    
    .pretpot-currency-converter__result-value {
        font-size: 24px;
    }
}