/* Additions to the theme for things the static design did not have (loaded after style-v3.css). */

/* one-time messages from the server (errors / success) */
.flash { border-bottom: 1px solid var(--line); padding: 0.85rem 0; font-size: 0.98rem; }
.flash p { margin: 0; }
.flash-error   { background: #fdecec; color: #8a1c1c; border-bottom-color: #f3c4c4; }
.flash-success { background: var(--green-100); color: var(--green-900); border-bottom-color: #c9e3cf; text-align: center; font-size: 30px;}

/* Text written in the admin panel (CMS) shown inside a page of the new design */
.cms-section { padding: clamp(2rem, 5vw, 4rem) 0; }
.cms-content { max-width: 60rem; }
.cms-content > * + * { margin-top: 1rem; }
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4 { font-family: var(--font-serif); color: var(--ink-900); line-height: 1.25; margin: 1.6rem 0 0.6rem; }
.cms-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cms-content h3 { font-size: 1.3rem; }
.cms-content h4 { font-size: 1.1rem; }
.cms-content p, .cms-content li { color: var(--ink-700); line-height: 1.7; }
.cms-content ul, .cms-content ol { padding-left: 1.4rem; }
.cms-content a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.cms-content img { max-width: 100%; height: auto; border-radius: 10px; }
.cms-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.cms-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.cms-content th, .cms-content td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; }
.cms-entry + .cms-entry { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cms-entry::after { content: ""; display: block; clear: both; }
.cms-entry-image { float: right; width: min(14rem, 40%); margin: 0 0 1rem 1.5rem; }
@media (max-width: 600px) { .cms-entry-image { float: none; width: 100%; margin: 0 0 1rem; } }

/* the old editor content used a 12-column grid (row / col-md-N): a small version of it */
.cms-content .row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.cms-content .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; box-sizing: border-box; }
@media (min-width: 768px) {
  .cms-content .row > .col-md-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .cms-content .row > .col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .cms-content .row > .col-md-3 { flex: 0 0 25.0%; max-width: 25.0%; }
  .cms-content .row > .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .cms-content .row > .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .cms-content .row > .col-md-6 { flex: 0 0 50.0%; max-width: 50.0%; }
  .cms-content .row > .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .cms-content .row > .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .cms-content .row > .col-md-9 { flex: 0 0 75.0%; max-width: 75.0%; }
  .cms-content .row > .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .cms-content .row > .col-md-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .cms-content .row > .col-md-12 { flex: 0 0 100.0%; max-width: 100.0%; }
}
.cms-content .pull-right { float: right; }
.cms-content .center, .cms-content .text-center { text-align: center; }
/* a column used without a row (e.g. a photo block at the top of an entry): float it next to the text */
.cms-entry > [class*="col-md-"] { float: left; width: min(18rem, 35%); margin: 0 1.75rem 1rem 0; }
.cms-entry > [class*="col-md-"] img { width: 100%; }
.cms-entry .clear { clear: both; }
@media (max-width: 600px) { .cms-entry > [class*="col-md-"] { float: none; width: 100%; margin: 0 0 1rem; } }

/* header: keep the account links and the booking button on one line when a customer is signed in */
.nav-actions .nav-login, .nav-actions .nav-login span, .nav-actions .btn { white-space: nowrap; }
