.crcpw-block-preview {
    border: 1px solid #dcdcde;
    background: #fff;
    padding: 16px;
}

.crcpw-block-preview:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.crcpw-block-preview__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.crcpw-block-preview__header strong {
    font-size: 14px;
    line-height: 1.4;
}

.crcpw-block-preview__header span {
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

.crcpw-block-preview__frame-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 760px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}

.crcpw-block-preview__live-shell {
    position: relative;
}

.crcpw-block-preview__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 760px;
    min-height: 160px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    color: #646970;
    font-size: 13px;
    line-height: 1.4;
}

.crcpw-block-preview__frame-wrap.is-preloading {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.crcpw-block-preview__frame {
    display: block;
    width: 100%;
    border: 0;
    pointer-events: none;
}

.crcpw-block-preview__frame-shield {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    cursor: pointer;
}

.crcpw-block-preview__card {
    overflow: hidden;
    width: 100%;
    max-width: 760px;
    border-radius: 0;
    color: #1d2327;
}

.crcpw-block-preview__card.has-border {
    border: 1px solid #dcdcde;
}

.crcpw-block-preview__card.is-rounded {
    border-radius: 6px;
}

.crcpw-block-preview__card.has-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.crcpw-block-preview__tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    border-bottom: 1px solid #dcdcde;
    background: rgba(255, 255, 255, 0.92);
}

.crcpw-block-preview__tab {
    min-height: 44px;
    padding: 12px 10px;
    border-right: 1px solid #dcdcde;
    color: #3c434a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.crcpw-block-preview__tab:last-child {
    border-right: 0;
}

.crcpw-block-preview__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
    padding: 10px 14px;
    border-bottom: 1px solid #dcdcde;
    background: rgba(255, 255, 255, 0.96);
}

.crcpw-block-preview__card.is-striped .crcpw-block-preview__row:nth-child(even) {
    background: rgba(246, 247, 247, 0.96);
}

.crcpw-block-preview__asset {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.crcpw-block-preview__asset-icon {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0f6fc;
    color: #135e96;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.crcpw-block-preview__asset strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.2;
}

.crcpw-block-preview__value {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 6px;
    color: #646970;
    font-size: 14px;
    line-height: 1.2;
}

.crcpw-block-preview__price {
    color: #1d2327;
    font-weight: 500;
}

.crcpw-block-preview__change.is-positive {
    color: #008a20;
}

.crcpw-block-preview__change.is-negative {
    color: #b32d2e;
}

.crcpw-block-preview__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.9);
}

.crcpw-block-preview__live,
.crcpw-block-preview__brand {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.crcpw-block-preview__live::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #00a32a;
}

.crcpw-block-preview__signature {
    padding: 8px 12px;
    border-top: 1px solid #dcdcde;
    background: rgba(255, 255, 255, 0.92);
    color: #646970;
    font-size: 12px;
    line-height: 1.3;
    text-align: right;
}

.crcpw-attribution {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: #646970;
    font-size: 11px;
    line-height: 1.4;
}

.crcpw-attribution--editor {
    position: relative;
    z-index: 2;
    padding: 8px 12px;
    border-top: 1px solid #dcdcde;
    background: rgba(255, 255, 255, 0.94);
}

.crcpw-attribution__label {
    color: #8c8f94;
}

.crcpw-attribution__link {
    color: #3c434a;
    font-weight: 600;
    text-decoration: none;
}

.crcpw-attribution__link:hover,
.crcpw-attribution__link:focus {
    color: #135e96;
    text-decoration: underline;
}

.crcpw-block-token-field {
    margin-bottom: 16px;
}

.crcpw-block-token-field .components-base-control__field {
    margin-bottom: 0;
}

.crcpw-block-token-picker {
    position: relative;
}

.crcpw-block-token-picker__selected {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.crcpw-block-token-picker__tokens {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crcpw-block-token-picker__token {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 6px;
    margin: 0;
    padding: 5px 7px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #f6f7f7;
    color: #1d2327;
    line-height: 1;
}

.crcpw-block-token-picker__token-icon,
.crcpw-block-token-picker__suggestion-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

.crcpw-block-token-picker__token-icon--placeholder,
.crcpw-block-token-picker__suggestion-icon--placeholder {
    border: 1px solid #dcdcde;
    background: #f6f7f7;
}

.crcpw-block-token-picker__token-label {
    overflow: hidden;
    max-width: 120px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crcpw-block-token-picker__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    border: 0;
    color: #646970;
    font-size: 16px;
    line-height: 1;
    background: transparent;
    cursor: pointer;
}

.crcpw-block-token-picker__remove:hover,
.crcpw-block-token-picker__remove:focus {
    color: #b32d2e;
    outline: 0;
}

.crcpw-block-token-picker__actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
    white-space: nowrap;
}

.crcpw-block-token-picker__count {
    color: #646970;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.crcpw-block-token-picker__clear.components-button.is-link {
    min-width: auto;
    height: auto;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
}

.crcpw-block-token-picker__search {
    position: relative;
}

.crcpw-block-token-picker__input {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    color: #1d2327;
    line-height: 34px;
    background: #fff;
    box-shadow: none;
}

.crcpw-block-token-picker__input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.crcpw-block-token-picker__suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 260px;
    margin: 0;
    padding: 6px 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.crcpw-block-token-picker__suggestion,
.crcpw-block-token-picker__message {
    margin: 0;
    border-top: 1px solid #f0f0f1;
}

.crcpw-block-token-picker__suggestion:first-child,
.crcpw-block-token-picker__message:first-child {
    border-top: 0;
}

.crcpw-block-token-picker__suggestion-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    border: 0;
    color: #1d2327;
    line-height: 1.4;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.crcpw-block-token-picker__suggestion-button:hover,
.crcpw-block-token-picker__suggestion-button:focus {
    background: #f0f6fc;
    outline: 0;
}

.crcpw-block-token-picker__suggestion-button:disabled {
    color: #646970;
    cursor: default;
    opacity: 1;
}

.crcpw-block-token-picker__suggestion-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.crcpw-block-token-picker__suggestion-symbol {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.crcpw-block-token-picker__suggestion-name,
.crcpw-block-token-picker__suggestion-state,
.crcpw-block-token-picker__message,
.crcpw-block-token-picker__status {
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
}

.crcpw-block-token-picker__suggestion-state {
    flex: 0 0 auto;
}

.crcpw-block-token-picker__message {
    padding: 10px 12px;
}

.crcpw-block-token-picker__status {
    min-height: 17px;
    margin: 6px 0 0;
}

.crcpw-block-token-picker__status.is-warning {
    color: #8a2424;
}

.crcpw-block-token-field__more {
    margin-top: 8px;
}

.crcpw-block-rate {
    padding: 16px;
    border-bottom: 1px solid #dcdcde;
}

.crcpw-block-rate .components-button {
    justify-content: center;
    width: 100%;
}
