.cc-517-container {
    font-family: var(--e-global-typography-primary-font_family), sans-serif;
    max-width: 480px;
    margin: 0 auto;
}

.cc-517-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(29, 39, 78, 0.08);
    padding: 32px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-517-header {
    text-align: center;
    margin-bottom: 28px;
}

.cc-517-title {
    color: var(--e-global-color-primary, #1D274E);
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.cc-517-subtitle {
    color: var(--e-global-color-text, #747DA1);
    margin: 0;
    font-size: 14px;
}

.cc-517-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-517-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-517-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-text, #747DA1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-517-input-group {
    position: relative;
    display: flex;
    background: var(--e-global-color-ad41708, #F8F8F8);
    border: 1px solid var(--e-global-color-57a29b1, #D9D9D9);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cc-517-input-group:focus-within {
    border-color: var(--e-global-color-secondary, #F94C30);
    box-shadow: 0 0 0 3px rgba(249, 76, 48, 0.1);
}

.cc-517-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(29, 39, 78, 0.04);
    border-right: 1px solid var(--e-global-color-57a29b1, #D9D9D9);
    min-width: 120px;
}

.cc-517-source-select-wrapper {
    min-width: 80px;
}

.cc-517-select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 16px 36px 16px 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--e-global-color-primary, #1D274E);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.cc-517-select:disabled {
    cursor: default;
    opacity: 1;
}

.cc-517-dropdown-icon {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: var(--e-global-color-primary, #1D274E);
}

.cc-517-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px;
    font-size: 28px; /* Increased from 20px */
    font-weight: 800; /* Increased from 600 */
    color: var(--e-global-color-primary, #1D274E); /* Darker color */
    outline: none;
    width: 100%;
    text-align: right;
}

.cc-517-result-input {
    color: var(--e-global-color-secondary, #F94C30); /* Highlight result */
}

.cc-517-input::-webkit-outer-spin-button,
.cc-517-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cc-517-divider {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 8px 0;
}

.cc-517-swap-btn {
    background: var(--e-global-color-secondary, #F94C30);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(249, 76, 48, 0.3);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cc-517-swap-btn:hover {
    background: var(--e-global-color-fc28385, #B4260F);
    transform: scale(1.05);
}

.cc-517-swap-btn.rotating svg {
    animation: spin-half 0.3s ease-in-out;
}

@keyframes spin-half {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

.cc-517-result-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--e-global-color-d345fd2, #A7A7A7);
    text-align: center;
}

.cc-517-rate-info {
    font-size: 14px;
    color: var(--e-global-color-text, #747DA1);
    font-weight: 500;
}

.cc-517-current-rate {
    color: var(--e-global-color-primary, #1D274E);
    font-weight: 700;
}