#scc-converter-container-v2 {
    width: 100%;
    min-height: 445px;
    margin: 0 auto;
    position: relative;
}

.scc-converter-container {
    max-width: 400px;
    margin: 0 auto;
}

.scc-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.coins-calc-img {
    width: 100%;
    object-fit: cover;
    position: absolute;
    bottom: 20px;
    left: 0px;
    z-index: 1;
}

.scc-wrapper {
    position: relative;
    width: auto;
    padding: 30px 25px;
    background: #EBF1FF;
    border-radius: 20px;
}

.scc-bg-wrapper {
    position: absolute;
    bottom: 20px;
    left: -40px;
    width: calc(100% + 80px);
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    z-index: 0;
}

.scc-title {
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    color: #0F1F6E;
    text-align: center;
}
@media screen and (max-width: 768px) {
    .scc-title {
        font-size: 22px;
    }
}

.css-subtitle {
    font-size: 12px;
    font-weight: bold;
    color: #000071;
    text-align: center;
    padding: 7px 0;
}

@media screen and (max-width: 768px) {
    .css-subtitle {
        font-size: 16px;
    }
}

.scc-quick-buttons {
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: 10px;
    padding: 17px 0 20px;
    /* Always allow wrapping: in narrow layout columns the unwrappable row's
       min-content used to push the calculator past the viewport (h-scroll). */
    flex-wrap: wrap;
}

/* Fiat / crypto button pairs wrap as a unit, never splitting mid-group. */
.scc-quick-group {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}
.scc-quick-buttons button {
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #fff;
    color: #000071;
    padding: 8px 14px;
    border: 2px solid #fff;
    cursor: pointer;
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition: border-color 0.15s ease;
    border: 2px solid #DDE2F0;
}
@media screen and (max-width: 768px) {
    .scc-quick-buttons button {
        font-size: 18px;
    }
}

@media screen and (max-width: 500px) {
    /* Each group takes a full row; the 50% buttons inside keep the 2x2 grid. */
    .scc-quick-group {
        flex: 1 1 100%;
    }

    .scc-quick-buttons button {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }
}

.scc-quick-buttons button.active {
    border-color: #2B65E8;
}

/* ─── Form & swap layout ─── */
.scc-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.scc-input-group {
    position: relative;
}

.scc-input-group:first-child {
    margin-bottom: 0;
}

.scc-input-group:last-child {
    margin-top: 0;
}

/* Swap button – sits between the two input groups */
.scc-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #DDE2F0;
    background: #fff;
    cursor: pointer;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.scc-swap-btn:hover {
    background: #EBF1FF;
    border-color: #2563EB;
}

.scc-swap-btn:active {
    transform: rotate(180deg);
}

.scc-swap-btn svg {
    width: 16px;
    height: 16px;
    color: #2563EB;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* Animate icon on swap */
.scc-swap-btn.swapping svg {
    transform: rotate(180deg);
}

/* ─── Inputs ─── */
.scc-input {
    width: 100%;
    height: 53px;
    padding: 0 15px;
    box-sizing: border-box;
    border: 2px solid rgba(221, 226, 240, 1);
    border-radius: 14px;
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000071;
    background: #fff;
    transition: border-color 0.15s ease;
    outline: none;
}
@media screen and (max-width: 768px) {
    .scc-input {
        font-size: 18px;
    }
}
.scc-input:focus {
    border-color: #2563EB;
}

/* ─── Select button & dropdown ─── */
.scc-select-button {
    display: flex;
    justify-content: space-between;
    min-width: 88px;
    align-items: center;
    background-color: #F0F4FF;
    padding: 11px;
    border: 1px solid #DDE2F0;
    border-radius: 7px;
    cursor: pointer;
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #2563EB;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.scc-select-button:hover {
    background-color: #E0EAFF;
}

.scc-select-button::after {
    content: "";
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 17.5L14.5 12.5L9.5 7.5' stroke='%232B65E8' style='stroke:%232B65E8;stroke:color(display-p3 0.1703 0.3965 0.9083);stroke-opacity:1;' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat;
    height: 20px;
    width: 20px;
    transform: rotateZ(90deg);
    transition: transform 0.2s ease;
}

.scc-select-button.active::after {
    transform: rotate(270deg);
}

.scc-select-wrapper {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.scc-dropdown {
    position: absolute;
    width: 250px;
    top: 65px;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    z-index: 999999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    display: none;
}

.scc-dropdown::-webkit-scrollbar {
    width: 6px;
}

.scc-dropdown::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 3px;
}

.scc-dropdown.active {
    display: block;
}

.scc-dropdown-search {
    padding: 10px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.scc-dropdown-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #000071;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.scc-dropdown-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #000071;
    transition: background 0.1s ease;
}

.scc-dropdown-item:hover {
    background: #eee;
}

.scc-dropdown-item img {
    width: 20px;
    margin-right: 10px;
}

/* ─── Notice, CTA, disclaimers ─── */
.scc-notice {
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    font-weight: normal;
    color: #B0BCD8;
    padding: 14px 0;
}

.scc-cta {
    display: block;
    align-self: center;
    width: 100%;
    background: linear-gradient(180deg, #2563EB 0%, #1a4fc7 100%);
    color: #fff;
    text-align: center;
    padding: 14px 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    filter: drop-shadow(0px 6px 20px rgba(37, 99, 235, 0.4));
    transition: filter 0.2s ease, transform 0.1s ease;
}
@media screen and (max-width: 768px) {
    .scc-cta {
        font-size: 20px;
    }
}

.scc-cta:hover {
    filter: drop-shadow(0px 8px 24px rgba(37, 99, 235, 0.55));
    transform: translateY(-1px);
}

.scc-disclaimers {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    width: 100%;
    gap: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #000071;
}

/* ─── Responsive ─── */
@media screen and (max-width: 768px) {
    .scc-converter-container { min-width: 100%; }
    .scc-bg-wrapper { display: none; }
    .coins-calc-img { display: none; }
    #scc-converter-container-v2 { padding: 0; width: 100%; }
    .scc-wrapper { padding: 20px 10px; }
}
