/* Make the wrapper flex to keep h1/h2/p and button on same line */
.ctc-wrapper--inside_top_right {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
}

/* Reset the heading to not take full width */
.ctc-wrapper--inside_top_right h1,
.ctc-wrapper--inside_top_right h2,
.ctc-wrapper--inside_top_right p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-grow: 0 !important;
}

/* For buttons next to H1 */
.ctc-wrapper--inside_top_right h1 ~ .ctc-copy-btn--button,
.ctc-wrapper--inside_top_right h1 ~ .ctc-copy-btn--icon {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: translateY(-1.2em) !important;
}

/* For buttons next to H2 */
.ctc-wrapper--inside_top_right h2 ~ .ctc-copy-btn--button,
.ctc-wrapper--inside_top_right h2 ~ .ctc-copy-btn--icon {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: translateY(-0.8em) !important;
}

/* For buttons next to paragraphs */
.ctc-wrapper--inside_top_right p ~ .ctc-copy-btn--button,
.ctc-wrapper--inside_top_right p ~ .ctc-copy-btn--icon {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: translateY(-0.1em) !important;
}

/* Fix WP7.0 accidental border color */
.ctc-wrapper {
  border: 0 !important;
}