/* =============================================================================
   PM-CMS COMPONENTS.CSS
   -----------------------------------------------------------------------------
   Pracovní implementace komponent PM-CMS.

   Tato verze vzniká postupně komponentu po komponentě.
   Duplicitní styly jsou v této fázi přípustné.

   Po dokončení všech komponent proběhne:
     1. analýza společných vlastností,
     2. refaktoring,
     3. vytvoření finální architektury,
     4. přesun systémových hodnot do base-theme.css.
============================================================================= */

/* =============================================================================
   INFO BOX
============================================================================= */

.cms-box--info {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;

    background-color: #eef6ff;
    border-left: 6px solid #0d6efd;
    border-radius: 6px;

    color: #222;
}

.cms-box--info p:first-child {
    margin-top: 0;
}

.cms-box--info p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   SUCCESS BOX
============================================================================= */

.cms-box--success {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;

    background-color: #eefaf3;
    border-left: 6px solid #198754;
    border-radius: 6px;

    color: #222;
}

.cms-box--success p:first-child {
    margin-top: 0;
}

.cms-box--success p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   WARNING BOX
============================================================================= */

.cms-box--warning {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;

    background-color: #fff8e8;
    border-left: 6px solid #d97706;
    border-radius: 6px;

    color: #222;
}

.cms-box--warning p:first-child {
    margin-top: 0;
}

.cms-box--warning p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   CTA BUTTON
============================================================================= */

.cms-button-wrap {
    display: inline-block;
    margin: 0 1rem .75rem 0;
}

.cms-button {
    display: inline-block;

    padding: .65rem 1.2rem;
	margin: 0 .75rem .75rem 0;

    background-color: #c0c0c0;
    color: #0000ff;
    border: 1px solid #000000;

    text-decoration: none;
    font-weight: 300;

    border-radius: 6px;

    transition: .2s ease;
}

.cms-button:hover {
    background-color: #d0d0d0;
}

.cms-button:focus {
    outline: none;
}

.cms-button:active {
    transform: translateY(1px);
}

/* =============================================================================
   QUOTE
============================================================================= */

.cms-quote {
    margin: 2rem 0;
    padding: 0 0 0 1.5rem;

    border-left: 4px solid #999;

    font-style: italic;
    color: #555;
}

.cms-quote p:first-child {
    margin-top: 0;
}

.cms-quote p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   DIVIDER
============================================================================= */

.cms-divider {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #cfcfcf;
}

/* =============================================================================
   IMAGE + TEXT
============================================================================= */

.cms-image-text {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

.cms-image-text--left {
    flex-direction: row;
}

.cms-image-text > img {
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}

.cms-image-text__content {
    flex: 1;
    min-width: 320px;
}

/* =============================================================================
   IMAGE FLOAT
============================================================================= */

.cms-image-float {
    display: block;
    margin-bottom: 1rem;
}

.cms-image-float--left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.cms-image-float--right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.cms-image-float-block::after {
    content: "";
    display: block;
    clear: both;
}

/* =============================================================================
   IMAGE + CAPTION INLINE
============================================================================= */

.cms-image-caption-inline {
    width: 100%;
}

.cms-image-caption-inline__content {
    display: inline-block;
}

.cms-image-caption-inline__caption {
    text-align: center;
    font-size: .9rem;
    font-style: italic;
    color: #666;
}

/* =============================================================================
   COLUMNS – 50/50
============================================================================= */

.cms-columns--50-50 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cms-columns--50-50 .cms-columns__column {
    flex: 1 1 320px;
    min-width: 0;
}

/* =============================================================================
   BLOCK END MARKER – FRONTEND
============================================================================= */

hr.end-block {
    display: none !important;
}
