.le-coupon-container {
    display: inline;
    vertical-align: baseline;
    margin-left: 10px;
    margin-right: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.le-coupon-copy-wrapper {
    display: inline-flex;
    flex-flow: row wrap;
    align-items: stretch;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border-radius: 4px;
    /* 勿用 overflow:hidden，否则「显示文本 + 优惠码」在窄栏会被裁切，看起来像优惠码被隐藏 */
    overflow: visible;
    vertical-align: middle;
    line-height: 1;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.le-coupon-text {
    display: inline-block;
    margin: 0;
    padding: 8px 12px;
    vertical-align: middle;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

.le-coupon-code {
    display: inline-block;
    margin: 0;
    padding: 8px 12px;
    vertical-align: middle;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.le-coupon-text + .le-coupon-code {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.le-coupon-copy-btn {
    display: inline-block;
    padding: 8px 12px;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    /* 背景与文字色由后台内联样式设置，此处仅占位 */
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
    align-self: stretch;
}

.le-coupon-copy-btn:hover {
    opacity: 0.8;
}

.le-coupon-copy-btn.copied {
    background-color: #4CAF50;
    color: white !important;
    border-color: #4CAF50;
}

.le-coupon-copy-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
    display: none;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}