/* Inherit theme colors for readable contrast on any background */
.wc-btc-box,
.wc-btc-pay-page {
    color: inherit;
}

.wc-btc-box {
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    padding: 16px;
    border-radius: 6px;
    background: color-mix(in srgb, currentColor 4%, transparent);
    margin: 10px 0;
}

.wc-btc-box-title {
    margin-top: 0;
    color: inherit;
}

.wc-btc-crypto-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

.wc-btc-grid {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.wc-btc-left {
    flex: 0 0 200px;
}

.wc-btc-right {
    flex: 1;
}

.wc-btc-right p {
    color: inherit;
}

.wc-btc-right strong {
    color: inherit;
}

.wc-btc-right code,
.wc-btc-amount,
.wc-btc-address {
    color: inherit;
}

.wc-btc-right code {
    padding: 2px 6px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    border-radius: 4px;
    word-break: break-all;
}

.wc-btc-qr {
    display: inline-block;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    line-height: 0;
}

.wc-btc-qr-image {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.wc-btc-upload {
    margin-top: 16px;
}

.wc-btc-upload h3 {
    color: inherit;
}

.wc-btc-msg {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
}

.wc-btc-msg.success {
    background: color-mix(in srgb, #146c2e 15%, transparent);
    color: inherit;
    border: 1px solid color-mix(in srgb, #146c2e 35%, transparent);
}

.wc-btc-msg.error {
    background: color-mix(in srgb, #b71c1c 12%, transparent);
    color: inherit;
    border: 1px solid color-mix(in srgb, #b71c1c 30%, transparent);
}

.wc-btc-pay-page {
    max-width: 560px;
    margin: 0 auto;
}

.wc-btc-pay-title {
    margin-top: 0;
    color: inherit;
}

.wc-btc-field {
    margin: 14px 0;
}

.wc-btc-field label,
.wc-btc-field strong {
    display: block;
    margin-bottom: 6px;
    color: inherit;
}

.wc-btc-field select,
.wc-btc-field input[type="email"],
.wc-btc-field input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: inherit;
    background: color-mix(in srgb, currentColor 6%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.wc-btc-price-display {
    font-size: 1.25em;
    font-weight: 600;
    margin-left: 6px;
    color: inherit;
}

.wc-btc-actions {
    margin-top: 18px;
}

.wc-btc-pay-error {
    margin-top: 12px;
    padding: 10px;
    border-radius: 4px;
    background: color-mix(in srgb, #b71c1c 12%, transparent);
    color: inherit;
    border: 1px solid color-mix(in srgb, #b71c1c 30%, transparent);
}

@media (max-width: 480px) {
    .wc-btc-left {
        flex: 1 0 100%;
    }
    .wc-btc-right {
        flex: 1 0 100%;
    }
}
