.boclips-player-container { .error { position: absolute; top: 0; left: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 100%; padding: 20px; color: #FFFFFF; font-family: Heebo, Helvetica, Arial, sans-serif; background-color: #3D4564; .icon { flex: 1 1 auto; max-width: 100px; max-height: 100px; margin-bottom: 10px; } .title { margin: 0; color: #FAFAFF; font-weight: bold; font-size: 20px; line-height: 24px; } .body { margin-top: 5px; margin-bottom: 0; color: #FAFAFF; font-size: 18px; line-height: 18px; } * { text-align: center; } } &.medium-player { .error { .title { font-size: 16px; } .body { font-size: 14px; } } } &.small-player { .error { .title { font-size: 16px; } .icon, .body { display: none; } } } }