.wfcc-v3 {
    width: 100%;
    min-width: 541px;
    max-width: 541px;
    font-family: Poppins, sans-serif;
    overflow: hidden;
    background: #fff;
    
    /* 核心修改：使用双重背景模拟渐变圆角边框 */
    border: 2px solid transparent; /* 预留边框空间 */
    border-radius: 30px;
    background-image: linear-gradient(#fff, #fff), 
                      linear-gradient(180deg, rgba(170, 141, 204, 0) 0%, #AA8DCC 0%, #F42E6D 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.wfcc-v3__exchange-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #F8F8FB;
}

.wfcc-v3__exchange-rate-title {
    color: #90969A;
    font-size: 14px;
    line-height: 1.2;
}

.wfcc-v3__card-title{
color: #484F56;
}


.wfcc-v3__exchange-rate-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.wfcc-v3__flag {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.wfcc-v3__rate-value {
    color: #1F2323;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.wfcc-v3__rate-currency {
    color: #90969A;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.wfcc-v3__rate-loading {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(31,35,35,0.2);
    border-top-color: #1F2323;
    border-radius: 50%;
    display: none;
    animation: wfcc-v3-spin .8s linear infinite;
}

@keyframes wfcc-v3-spin {
    to { transform: rotate(360deg); }
}

.wfcc-v3__body {
    padding: 20px 24px 24px;
}

.wfcc-v3__card + .wfcc-v3__card {
    margin-top: 16px;
}

.wfcc-v3 .cc-module-error-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background-color: #FFF5F8;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.25em;
    letter-spacing: -0.01em;
    color: #FF0051;
    width: 100%;
}

.wfcc-v3 .cc-module-error-notice-group {
    display: none;
    flex-direction: column;
    margin-top: 16px;
    width: 100%;
}

.wfcc-v3__card-title {
    color: #484F56;
    font-size: 14px;
    margin-bottom: 8px;
}

.wfcc-v3__input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 24px;
    border-radius: 8px;
    background: #F8F8FB;
    position: relative;
}

.wfcc-v3__currency-wrap {
    position: relative;
}

.wfcc-v3 .wfcc-v3__currency-trigger,
.wfcc-v3__currency-items button {
    all: unset;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;

    /* all:unset 后补回字体/颜色，避免丢失 */
    font-family: inherit;
    font-size: 18px;
    line-height: 1.2;
    color: #1F2323;
}
.wfcc-v3 .wfcc-v3__currency-wrap button:active,
.wfcc-v3 .wfcc-v3__currency-wrap button:hover,
.wfcc-v3 .wfcc-v3__currency-items button:hover {
    background-color: transparent;

}

.wfcc-v3 .cc-dropbtn:hover {
    cursor: pointer;
}

.wfcc-v3 .cc-dropbtn:focus {
    outline: none;
}

.wfcc-v3__currency-label {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.wfcc-v3__currency-chevron {
    font-size: 12px;
    color: #90969A;
}

.wfcc-v3__currency-options {
    display: none;
    flex-direction: column;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 16.74px rgba(0, 0, 0, 0.2);
    padding-left: 16px;
    padding-top: 16px;
    padding-right: 4px;
    padding-bottom: 16px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .wfcc-v3__currency-options {
        border-radius: 16px;
    }

    .wfcc-v3 .wfcc-v3__currency-trigger img,
    .wfcc-v3__currency-items button img{
        width: 20px;
        height: 20px;
    }
}

.wfcc-v3__currency-options.open {
    display: flex;
    width: 300px;
}

.wfcc-v3__currency-options label {
    padding-right: 12px;
}

.wfcc-v3__currency-search {
    display: flex;
    padding: 20px 24px 16px 16px;
    width: 100%;
    border: none;
    border-radius: 12px;
    background-color: rgba(247, 247, 247, 1);
}

.wfcc-v3__currency-items {
    display: flex;
    flex-direction: column;
    max-height: 275px;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 6px;
}

.wfcc-v3__currency-items::-webkit-scrollbar {
    width: 8px;
}

.wfcc-v3__currency-items::-webkit-scrollbar-track {
    background: transparent;
    border: none;
}

.wfcc-v3__currency-items::-webkit-scrollbar-thumb {
    background: #D9D9D9;
    border-radius: 56px;
    border: none;
}

.wfcc-v3-currency-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 16px 24px 16px 16px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.25em;
    letter-spacing: -0.01em;
    color: #1F2323;
}

.wfcc-v3-currency-option img{
    width: 24px;
    height: 24px;
}

/* Keep v2-like anchor behavior in v3 currency option list */
.wfcc-v3 .currency-items-wrapper a {
    padding: 16px 24px 16px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.25em;
    letter-spacing: -0.01em;
    color: #1F2323;
    text-decoration: none;
    cursor: pointer;
}

.wfcc-v3 .currency-items-wrapper a:visited,
.wfcc-v3 .currency-items-wrapper a:active {
    color: #1F2323;
    text-decoration: none;
}

@media (max-width: 767px) {
    .wfcc-v3 .currency-items-wrapper a {
        padding: 14px 16px;
        font-size: 14px;
    }

    .wfcc-v3-currency-option {
        padding: 14px 16px;
        font-size: 14px;
    }
}

.wfcc-v3-currency-option:hover,
.wfcc-v3 .currency-items-wrapper a:hover {
    background-color: rgba(255, 0, 81, 0.04);
}

.wfcc-v3-currency-option img,
.wfcc-v3 .currency-items-wrapper a img {
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .wfcc-v3-currency-option img,
    .wfcc-v3 .currency-items-wrapper a img {
        width: 16px;
        height: 16px;
    }
}

.wfcc-v3 .cc-country-name {
    color: rgba(168, 174, 181, 1);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25em;
    letter-spacing: -0.01em;
}

@media (max-width: 767px) {
    .wfcc-v3 .cc-country-name {
        font-size: 12px;
    }
}


.wfcc-v3__amount-wrap {
    flex: 1;
}

.wfcc-v3__amount-input {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: right;
    color: #1F2323;
    font-weight: 600;
    font-size: 36px;
    outline: none;
    padding: 0;
}

.wfcc-v3__divider {
    height: 1px;
    background: #D3D3D3;
    margin: 20px 0;
}

.wfcc-v3__fee-wrap {
    padding:16px 24px;
    border-radius: 16px;
    background: #FFF9F9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.wfcc-v3__fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wfcc-v3__fee-label {
    margin-right: auto;
    color: #1F2323;
    font-size: 18px;
    font-weight: 500;
}

.wfcc-v3__fee-value {
    color: #1F2323;
    font-size: 18px;
    font-weight: 600;
}

.wfcc-v3__fee-label {
    line-height: 1.2;
    margin: 0;
    align-self:center!important;
}
.wfcc-v3__fee-view {
    text-align: right;
}
.wfcc-v3__fee-note {
    margin: 4px 0 0 0;
    font-size: 12px;
    line-height: 1.2;
}
.wfcc-v3__fee-currency {
    padding-left: 5px;
    font-size: 18px;
    font-weight: 600;
}

.wfcc-v3__fee-currency,
.wfcc-v3__fee-note {
    color: #90969A;
    
}

.wfcc-v3__fee-note {
    margin-top: 8px;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
}

.wfcc-v3__save-row {
    margin-top: 12px;
    min-height: 42px;
    border-radius: 0;
    background: transparent url("https://mdn.marmot-cloud.com/worldfirst/sites/15/2026/04/20260420210405199.webp") no-repeat center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 16px;
    padding: 0;
}

.wfcc-v3__save-pill {
    background: #fff;
    color: #FF0051;
    border-radius: 4px;
    padding: 4px;
    font-size: 22px;
    font-weight: 600;
    line-height: 22px;
}

@media (max-width: 1024px) {
    .wfcc-v3 {
        max-width: 100%;
        min-width: 541px;
    }

    .wfcc-v3 .wfcc-v3__save-row{
            background-image: url('https://mdn.marmot-cloud.com/worldfirst/sites/15/2026/04/20260420210408812.webp');
        }
    .wfcc-v3__exchange-rate .wfcc-v3__exchange-rate-title{
        font-size:14px;
        font-weight: 500;
    } 

    .wfcc-v3__exchange-rate .wfcc-v3__exchange-rate-row span{
        font-size:14px;
        font-weight: 600;
    }

    .wfcc-v3__flag, .wfcc-v3__exchange-rate .wfcc-v3__flag.wfcc-v3__xr-icon{
        width: 24px;
        height: 24px;
    }

    .wfcc-v3__exchange-rate-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .wfcc-v3 .wfcc-v3__card .wfcc-v3__card-title{
        font-size:14px;
    }

    .wfcc-v3__amount-input {
        font-size: 18px;
    }

    .wfcc-v3__currency-label {
        font-size: 18px;
    }

    .wfcc-v3__input-row {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 41px;
        padding: 8px 24px;
        border-radius: 8px;
        background: #F8F8FB;
        position: relative;
    }

    .wfcc-v3__fee-label, .wfcc-v3__fee-value, .wfcc-v3__fee-currency {
        font-size: 18px;
    }
    .wfcc-v3__fee-value, .wfcc-v3__fee-currency {
        font-weight: 600;
    }
    .wfcc-v3__fee-note{
        font-size: 12px;
        text-align: right;
    }

    .wfcc-v3__fee-wrap {
        padding: 16px 24px;
        border-radius: 16px;
        background: #FFF9F9;
        
    }
    .wfcc-v3__save-text{
        font-size: 16px;
    }
    .wfcc-v3__save-pill{
        font-size: 22px;
        line-height:16.74px;
    }
}

@media (max-width: 767px) {
    .wfcc-v3 {
        min-width: 100%;
        border-radius: 20px;
    max-width: 100%;
    min-width: 100%;
    }

    .wfcc-v3__fee-view {
        width: 172px;
    }
    .wfcc-v3__exchange-rate {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .wfcc-v3__exchange-rate .wfcc-v3__exchange-rate-title, .wfcc-v3__exchange-rate .wfcc-v3__exchange-rate-row span{
        font-size:12px;
    }

    .wfcc-v3__exchange-rate .wfcc-v3__flag.wfcc-v3__xr-icon{
        width: 20px;
        height: 20px;
    }

    .wfcc-v3__exchange-rate-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .wfcc-v3 .wfcc-v3__card .wfcc-v3__card-title{
        font-size:12px;
    }

    .wfcc-v3__amount-input {
        font-size: 16px;
    }

    .wfcc-v3__currency-label {
        font-size: 14px;
    }

    .wfcc-v3__input-row {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 36px;
        padding: 8px 10px;
        border-radius: 8px;
        background: #F8F8FB;
        position: relative;
    }

    .wfcc-v3__fee-label, .wfcc-v3__fee-value, .wfcc-v3__fee-currency {
        font-size: 14px;
    }
    .wfcc-v3__fee-value, .wfcc-v3__fee-currency {
        font-weight: 600;
    }
    .wfcc-v3__fee-note{
        font-size: 8px;
        text-align: right;
    }

    .wfcc-v3__fee-wrap {
        padding: 16px 12px;
        border-radius: 16px;
        background: #FFF9F9;
    }
    .wfcc-v3__save-text{
        font-size: 14px;
    }
    .wfcc-v3__save-pill{
        font-size: 16px;
        line-height:16.74px;
    }
    .wfcc-v3__save-row{
        min-width: 272px;
        max-width:272px;
    }
}

@media (max-width: 374px) {
    .wfcc-v3__save-row{
        min-width: 248px;
        max-width:248px;
        background-image: url('https://mdn.marmot-cloud.com/worldfirst/sites/15/2026/04/20260420210401230.webp');
    }
}
