/* ==========================================================================
   e-wehikul Theme - Modern Bootstrap 5 overlay
   Loaded AFTER style/forms.css and style/main.css for backward compatibility.
   Overrides layout-level rules, adds responsive design and CSS-only animations.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --ewh-dark-blue: #03438A;
    --ewh-medium-blue: #4182C4;
    --ewh-light-blue: #aedfe5;
    --ewh-green: #B4C554;
    --ewh-green-dark: #7BA22B;
    --ewh-orange: #ED9800;
    --ewh-sky-blue: #aedfe5;
    --ewh-gray-light: #f0f6fa;
    --ewh-border-blue: #B9DCF0;
    --ewh-red: #bb171d;
    --ewh-cta-pastel: #9dcfbd;
    --ewh-cta-pastel-hover: #b4ddcf;
    --ewh-cta-pastel-text: #1f4d5d;
}

/* --------------------------------------------------------------------------
   1b. Bootstrap compatibility fixes
   Bootstrap 5 introduces global resets that break the old Yii views.
   These rules neutralize the conflicts.
   -------------------------------------------------------------------------- */

/* Bootstrap sets .row to display:flex which breaks div.form .row (label+input pairs) */
div.form .row {
    display: block !important;
    flex-wrap: unset;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 10px;
}

div.form .row > * {
    flex-shrink: unset;
    width: auto;
    max-width: unset;
    padding-right: 0;
    padding-left: 0;
}

/* Prevent Bootstrap from changing body font/color (old CSS already loaded) */
body {
    font-family: arial, sans-serif;
    font-size: 12px;
    color: #4182C4;
    background-color: #FFFFFF;
}

/* Restore old link colors (Bootstrap overrides with --bs-link-color) */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
    text-decoration: underline;
}

/* Specific link color contexts */
.ewh-nav li a { color: var(--ewh-green) !important; }
.ewh-nav li a:hover,
.ewh-nav li.active a { color: #fff !important; }
.blue, a.blue { color: #4182C4 !important; }
.darkBlue, a.darkBlue { color: #03438A !important; }
.gold { color: #ED9800; }
.green { color: #B4C554; }
.ourGreen { color: #7BA22B; }
.red { color: #FF0000; }

/* Bootstrap resets table borders - restore old table.inline */
.form table.inline {
    border-collapse: collapse;
}
.form table.inline tr td {
    padding: 5px;
    border: none;
}

/* Fix Bootstrap's hr, small, etc. that might appear in old views */
hr {
    margin: 1rem 0;
    border-top: 1px solid #e5e5e5;
    opacity: 1;
}

/* Old greenButtonMain from views */
.greenButtonMain {
    display: block;
    width: 231px;
    max-width: 100%;
    height: auto;
    padding: 10px 20px;
    text-align: center;
    color: var(--ewh-cta-pastel-text) !important;
    font-size: 13px;
    font-weight: bold;
    background: var(--ewh-cta-pastel) !important;
    background-image: none !important;
    border: 1px solid rgba(31, 77, 93, 0.16);
    border-radius: 0.375rem;
    margin: 20px auto 0;
}

.greenButtonMain:hover {
    background: var(--ewh-cta-pastel-hover) !important;
    background-image: none !important;
    color: #173b47 !important;
    text-decoration: none;
}

/* Ensure old list styles work (Bootstrap resets list-style and padding) */
.mainMenu ul,
.operations,
.menuFaq ul,
.chooseColor ul,
.ewh-nav {
    padding-left: 0;
}

/* Bootstrap img vertical-align: middle can shift layout */
img {
    vertical-align: baseline;
    border: 0;
}

/* Prevent Bootstrap from adding bottom-margin to p/h1-h6 everywhere */
.tabsHolder p,
.tabsHolder h1,
.tabsHolder h2,
.tabsHolder h3,
.mailList p,
.mailListReklama p,
.mailDetails p,
div.form p,
.staticMainPage p,
.listDoSiebie p {
    margin-bottom: 0;
}

/* Old * reset was: * { margin: 0; padding: 0; }
   Bootstrap .container needs its padding back */
.container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Tab images fill their box */
.tabInsideBox img,
.tabInsideBoxLast img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   2. Override old fixed-width layout
   -------------------------------------------------------------------------- */

/* Old .content was 980px fixed. Now fluid with max-width. */
.content {
    width: 100% !important;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Old #top100 was fixed 84px height */
#top100 {
    height: auto !important;
    width: 100%;
}

/* Old fixed-width elements */
.shadow980Top,
.shadow980Bottom {
    width: 100% !important;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

div.formTop,
div.formBottom {
    width: 100% !important;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

div.form {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Old tabsHolder was 980px */
.tabsHolder {
    width: 100% !important;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.tabsBox .tabInsideBox,
.tabsBox .tabInsideBoxLast {
    width: calc(33.333% - 12px) !important;
    max-width: 304px;
    box-sizing: border-box;
    height: 209px;
    overflow: hidden;
    position: relative;
}

/* Fix hover overlays inside tab boxes (border-box changes offsets) */
.tabsBox .tabInsideTextBox {
    box-sizing: border-box;
}

/* Old #footer from views (not layout footer) */
#footer {
    width: 100% !important;
    border-top: 1px solid #e5e5e5;
    margin-top: 30px;
    text-align: center;
}

#footer .greenButtonMain {
    width: 340px;
    max-width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0.9rem 1.6rem;
    margin: 18px auto 0;
    border-radius: 999px;
    border: 1px solid rgba(25, 70, 86, 0.18);
    background: linear-gradient(135deg, #ffdca2 0%, #ffd1c2 42%, #c8ebdf 100%) !important;
    color: #143f4e !important;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(53, 103, 131, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#footer .greenButtonMain::after {
    content: "→";
    font-size: 1.08rem;
    line-height: 1;
    transform: translateY(-1px);
}

#footer .greenButtonMain:hover {
    background: linear-gradient(135deg, #ffe8ba 0%, #ffd9cc 42%, #d8f1e9 100%) !important;
    color: #123643 !important;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 34px rgba(53, 103, 131, 0.3);
    filter: saturate(1.06);
}

/* Old mail list was fixed width */
.mailList,
.mailListReklama {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
}

.mailDetails {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Old column layout (column2.php) */
.span-19 {
    float: left;
    width: 74%;
}

.span-5 {
    float: left;
    width: 24%;
    margin-left: 2%;
}

.span-5.last {
    float: right;
    margin-left: 0;
}

/* Old send mail form layout */
.sendMailLeft {
    width: 237px;
    float: left;
    padding-right: 35px;
    border-right: 1px solid var(--ewh-border-blue);
}

.sendMailRight {
    width: auto !important;
    float: none !important;
    margin-left: 300px;
    padding-left: 30px;
    padding-right: 5px;
}

/* --------------------------------------------------------------------------
   3. Navbar (replaces old .mainMenu)
   -------------------------------------------------------------------------- */
.ewh-navbar {
    /* background: linear-gradient(to bottom, #04478f, #035099); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.ewh-navbar .navbar-brand img {
    height: 36px;
    width: auto;
}

.ewh-navbar .navbar-toggler {
    border-color: rgba(180, 197, 84, 0.4);
}

.ewh-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(180,197,84,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* CMenu output styled as nav */
.ewh-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.ewh-nav li a {
    color: var(--ewh-green) !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    display: block;
    text-decoration: none !important;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.ewh-nav li a:hover,
.ewh-nav li.active a {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 991.98px) {
    .ewh-nav {
        flex-direction: column;
        gap: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .ewh-nav li a {
        padding: 0.55rem 1rem;
        border-radius: 0;
    }
}

/* Hide the old .mainMenu (it's replaced by .ewh-navbar) */
.mainMenu {
    display: none !important;
}

/* --------------------------------------------------------------------------
   4. Movie Animation (CSS-only, replaces jQuery Spritely)
   -------------------------------------------------------------------------- */

/* Override old #movie styles */
#movie,
.ewh-movie {
    position: relative;
    height: 145px;
    overflow: hidden;
    background-color: var(--ewh-sky-blue);
    width: 100%;
}

/* Hide old Spritely elements */
#movie #stage,
#movie #tap,
#movie #bg,
#movie #clouds,
#movie #hill1,
#movie #bird {
    display: none !important;
}

/* New animation layers */
.ewh-movie-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 145px;
}

/* Sky */
.ewh-sky {
    background: var(--ewh-sky-blue) url('../img/movie/niebo.jpg') repeat-x 0 0;
    z-index: 1;
}

/* Clouds: slow pan left (1067px tile) */
.ewh-clouds {
    background: transparent url('../img/movie/chmury.png') repeat-x 0 15px;
    z-index: 2;
    animation: ewh-pan-clouds 80s linear infinite;
}

@keyframes ewh-pan-clouds {
    from { background-position-x: 0; }
    to   { background-position-x: -1067px; }
}

/* Hills: faster pan left (4267px tile) */
.ewh-hill {
    background: transparent url('../img/movie/tlo.png') repeat-x 0 15px;
    z-index: 3;
    animation: ewh-pan-hill 25s linear infinite;
}

@keyframes ewh-pan-hill {
    from { background-position-x: 0; }
    to   { background-position-x: -4267px; }
}

/* Bird: sprite + floating */
.ewh-bird {
    position: absolute;
    width: 50px;
    height: 45px;
    z-index: 10;
    background: transparent url('../img/movie/ptak.png') 0 0 no-repeat;
    animation:
        ewh-bird-flap 0.333s steps(3) infinite,
        ewh-bird-float 14s ease-in-out infinite alternate;
}

@keyframes ewh-bird-flap {
    from { background-position-x: 0; }
    to   { background-position-x: -150px; }
}

@keyframes ewh-bird-float {
    0%   { top: 25px; left: 12%; }
    8%   { top: 15px; left: 22%; }
    18%  { top: 50px; left: 38%; }
    28%  { top: 20px; left: 55%; }
    40%  { top: 45px; left: 42%; }
    52%  { top: 12px; left: 65%; }
    64%  { top: 55px; left: 50%; }
    76%  { top: 18px; left: 75%; }
    88%  { top: 40px; left: 30%; }
    100% { top: 22px; left: 60%; }
}

/* Accessibility: pause animations */
@media (prefers-reduced-motion: reduce) {
    .ewh-clouds,
    .ewh-hill,
    .ewh-bird {
        animation-play-state: paused;
    }
    .ewh-bird {
        top: 30px;
        left: 50%;
    }
}

/* --------------------------------------------------------------------------
   5. Footer enhancement
   -------------------------------------------------------------------------- */
.ewh-footer {
    /* background: var(--ewh-dark-blue); */
    color: #aab;
    border-top: 3px solid var(--ewh-green);
    font-size: 0.85rem;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.ewh-footer a {
    color: var(--ewh-light-blue);
    text-decoration: none;
}

.ewh-footer a:hover {
    color: #fff;
}

.ewh-footer .sendedMails {
    float: none;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.ewh-footer .sendedMails span {
    font-size: 1.3rem;
    color: var(--ewh-orange);
}

/* --------------------------------------------------------------------------
   6. Content area improvements
   -------------------------------------------------------------------------- */

/* contentBackground from old CSS - make responsive */
.contentBackground {
    width: auto !important;
    max-width: 950px;
    margin: 40px auto 0;
    padding: 15px;
    box-sizing: border-box;
}

/* Portlet (sidebar widgets) */
.portlet {
    margin-bottom: 1.25rem;
}

.portlet .portlet-decoration {
    background: var(--ewh-dark-blue);
    border-left: 4px solid var(--ewh-green);
    padding: 0.4rem 0.7rem;
    border-radius: 0.25rem 0.25rem 0 0;
}

.portlet .portlet-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0;
}

.portlet .portlet-content {
    background: #fff;
    padding: 0.65rem;
    border: 1px solid var(--ewh-border-blue);
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    font-size: 0.88em;
}

.portlet .portlet-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portlet .portlet-content li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.portlet .portlet-content li:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   7. Flash messages (modern look)
   -------------------------------------------------------------------------- */
div.flash-error,
div.flash-notice,
div.flash-success {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.9em;
}

div.flash-error {
    background: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

div.flash-notice {
    background: #fff3cd;
    color: #664d03;
    border-color: #ffecb5;
}

div.flash-success {
    background: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

/* --------------------------------------------------------------------------
   8. Form improvements (on top of old forms.css)
   -------------------------------------------------------------------------- */
div.form input[type=submit],
.greenSubmitButton,
.greenSubmitButtonHover {
    background: var(--ewh-green-dark) !important;
    background-image: none !important;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: auto;
    text-align: center;
}

div.form input[type=submit]:hover,
.greenSubmitButton:hover {
    background: var(--ewh-green) !important;
}

/* Modern button styles for old .btnGreen/.btnRed/.btnGray */
.btnGreen a,
.btnGreen button {
    background: var(--ewh-green-dark) !important;
    background-image: none !important;
    border-radius: 0.375rem;
    padding: 0.35rem 1rem;
    transition: background-color 0.2s;
}

.btnGreen a:hover,
.btnGreen button:hover {
    background: var(--ewh-green) !important;
}

.btnGreen,
.btnRed,
.btnGray {
    background-image: none !important;
    padding-left: 0 !important;
}

.btnGreen span,
.btnRed span,
.btnGray span {
    display: none;
}

.btnRed a {
    background: #dc3545 !important;
    background-image: none !important;
    border-radius: 0.375rem;
    padding: 0.35rem 1rem;
}

.btnRed a:hover {
    background: #bb2d3b !important;
}

.btnGray a {
    background: #6c757d !important;
    background-image: none !important;
    border-radius: 0.375rem;
    padding: 0.35rem 1rem;
}

.btnGray a:hover {
    background: #5c636a !important;
}

/* Error summary modernized */
.errorSummary {
    background: #f8d7da !important;
    background-image: none !important;
    border-color: #f5c2c7 !important;
    color: #842029;
    padding: 0.85rem 1rem !important;
    border-radius: 0.375rem;
}

/* --------------------------------------------------------------------------
   9. Pagination (Yii CListView pager)
   -------------------------------------------------------------------------- */
ul.yiiPager {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    gap: 0.25rem;
    justify-content: center;
}

ul.yiiPager li {
    border-bottom: none !important;
    padding: 0 !important;
}

ul.yiiPager a {
    display: block;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--ewh-green-dark);
    border-radius: 0.25rem;
    color: var(--ewh-green-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
    background: none !important;
}

ul.yiiPager a:hover,
ul.yiiPager .selected a {
    background: var(--ewh-green-dark) !important;
    color: #fff;
}

/* --------------------------------------------------------------------------
   10. FAQ sticky menu improvements
   -------------------------------------------------------------------------- */
.menuFaq {
    float: left;
    width: 250px;
}

.textFaq {
    width: auto !important;
    margin-left: 270px;
    float: none !important;
}

/* --------------------------------------------------------------------------
   11. Static pages
   -------------------------------------------------------------------------- */
.staticMainPage {
    width: auto !important;
    max-width: 940px;
    margin: -10px auto 0;
    padding: 20px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   12. Comments improvements
   -------------------------------------------------------------------------- */
.comments {
    width: auto !important;
    margin-left: 0 !important;
    border-radius: 0.375rem;
}

.viewComments {
    width: auto !important;
    margin-left: 0 !important;
    border-radius: 0.375rem;
}

/* --------------------------------------------------------------------------
   13. Facebook widget - keep but improve positioning
   -------------------------------------------------------------------------- */
#facebook {
    display: none; /* Hidden by default, shown via JS in scriptIndex */
}

@media (max-width: 991.98px) {
    #facebook {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   14a. Additional form polish
   -------------------------------------------------------------------------- */

/* Modern date shortcut buttons (replace background image) */
.btnGrayDate {
    background: #e9ecef !important;
    background-image: none !important;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    text-decoration: none !important;
    display: inline-block;
    float: left;
    margin: 2px 4px 2px 0;
    height: auto;
    width: auto;
    transition: background-color 0.15s, color 0.15s;
    text-shadow: none;
}
.btnGrayDate:hover {
    background: var(--ewh-orange) !important;
    color: #fff;
    border-color: var(--ewh-orange);
}

/* Bigger text inputs */
.bigInput {
    border: 1px solid #B9DCF0;
    border-radius: 0.25rem;
    padding: 6px 8px;
    font-size: 13px;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.bigInput:focus {
    border-color: var(--ewh-medium-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(65, 130, 196, 0.15);
}

/* Info box (green border) */
.ourInfoBox {
    background: #f0f9e8;
    border-color: var(--ewh-green-dark);
    color: var(--ewh-green-dark);
    font-size: 12px;
    line-height: 1.5;
}

/* Hide logo info box styling */
.infoUkryjLogo {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* Button from main boxes (hover overlays on homepage) */
a.buttonFromMainBoxes {
    background: var(--ewh-green-dark) !important;
    background-image: none !important;
    border-radius: 0.25rem;
    padding: 5px 15px;
    font-size: 11px;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-block;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    width: auto;
    height: auto;
    text-align: center;
    transition: background-color 0.2s;
}
a.buttonFromMainBoxes:hover {
    background: var(--ewh-green) !important;
    background-position: unset;
}

/* TinyMCE container */
.txtEditor {
    width: 100% !important;
    box-sizing: border-box;
}

/* Ajax upload button */
.qq-upload-button {
    background: var(--ewh-green-dark) !important;
    border-radius: 0.25rem;
    color: #fff;
    padding: 5px 15px;
}

/* --------------------------------------------------------------------------
   14. Responsive Design
   -------------------------------------------------------------------------- */

/* Large screens */
@media (min-width: 1200px) {
    .content {
        max-width: 1140px;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .ewh-movie,
    #movie {
        height: 120px;
    }
    .ewh-movie-layer {
        height: 120px;
    }
    .ewh-hill {
        background-position-y: 0;
    }
    .ewh-clouds {
        background-position-y: 10px;
    }

    /* Stack column2 layout */
    .span-19,
    .span-5,
    .span-5.last {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    .span-5 {
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid #dee2e6;
    }

    /* TabsHolder: responsive width */
    .tabsHolder {
        width: 100% !important;
        margin-top: 20px !important;
    }
    .tabsHolder .tabsBox {
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box;
    }

    /* Tab boxes: 3 columns but flexible */
    .tabsBox .tabInsideBox,
    .tabsBox .tabInsideBoxLast {
        width: calc(33.333% - 10px) !important;
        max-width: none;
        height: 180px;
    }

    /* FAQ layout stack */
    .menuFaq {
        float: none;
        width: 100%;
        margin-bottom: 1rem;
    }
    .textFaq {
        margin-left: 0;
    }

    /* View details mail */
    .viewDetailsMailLeft {
        width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
        background: none !important;
    }
    .viewDetailsMailRight {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        margin-top: 1rem;
    }
}

/* Mobile landscape */
@media (max-width: 767.98px) {
    .ewh-movie,
    #movie {
        height: 100px;
    }
    .ewh-movie-layer {
        height: 100px;
    }
    .ewh-bird {
        transform: scale(0.75);
    }
    .ewh-hill {
        background-position-y: 0;
    }
    .ewh-clouds {
        background-position-y: 5px;
    }

    /* Tabs: 2 columns on mobile landscape, shorter boxes */
    .tabsBox {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px !important;
    }
    .tabsBox .tabInsideBox,
    .tabsBox .tabInsideBoxLast {
        width: calc(50% - 4px) !important;
        max-width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 0;
        height: 140px !important;
        overflow: hidden !important;
    }

    /* Hide hover overlays on touch (no hover on mobile) */
    .tabInsideTextBox {
        display: none !important;
    }

    /* Tab navigation: override absolute positioning from main.css */
    .tabsBG {
        width: 100% !important;
        position: relative !important;
        top: auto !important;
        height: auto !important;
        display: flex !important;
        flex-wrap: wrap;
        background: var(--ewh-dark-blue) !important;
        border-radius: 0.375rem;
        padding: 4px !important;
        gap: 2px;
    }
    .tabsBG a,
    .tabsBG .tab1,
    .tabsBG .tab2,
    .tabsBG .tab3,
    .tabsBG .tab4 {
        position: static !important;
        left: auto !important;
        top: auto !important;
        flex: 1 1 auto;
        text-align: center;
        padding: 6px 8px;
        font-size: 11px;
        width: auto !important;
        height: auto !important;
        color: var(--ewh-green) !important;
        border-radius: 0.25rem;
    }
    .tabsBG a:hover,
    .tabsBG .active {
        background: rgba(255,255,255,0.15) !important;
        color: var(--ewh-orange) !important;
    }

    /* TabsHolder: remove fixed background on mobile */
    .tabsHolder {
        margin-top: 15px !important;
        background: none !important;
    }

    /* Send mail form: stack left/right */
    .sendMailLeft {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        padding-right: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--ewh-border-blue);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .sendMailRight {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    /* Google ads responsiveness */
    .googleImg,
    .googleImgBottom,
    .googleReklamaTop,
    .googleImgKwadrat {
        width: 100% !important;
        max-width: 100%;
        overflow: hidden;
    }
}

/* Mobile portrait */
@media (max-width: 575.98px) {
    .ewh-movie,
    #movie {
        height: 75px;
    }
    .ewh-movie-layer {
        height: 75px;
    }
    .ewh-bird {
        transform: scale(0.55);
    }

    h1 { font-size: 16px !important; }
    h2 { font-size: 14px !important; }

    div.form {
        padding: 8px !important;
    }

    /* Tabs: single column on narrow mobile */
    .tabsBox .tabInsideBox,
    .tabsBox .tabInsideBoxLast {
        width: 100% !important;
        height: 120px !important;
    }

    /* Tab nav smaller */
    .tabsBG a {
        font-size: 10px;
        padding: 5px 4px;
    }

    /* Date picker buttons */
    .datePickHolder {
        width: 100%;
    }
    .btnGrayDate {
        width: 100%;
        margin-bottom: 3px;
    }

    /* Content padding */
    .content {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* --------------------------------------------------------------------------
   15. Modern 2026 visual layer (global, non-breaking)
   -------------------------------------------------------------------------- */
.ewh-modern {
    background:
        radial-gradient(1200px 500px at 0% -10%, rgba(95, 160, 255, 0.16), transparent 55%),
        radial-gradient(1100px 440px at 100% -20%, rgba(103, 214, 194, 0.18), transparent 50%),
        linear-gradient(180deg, #f6f8fc 0%, #f1f5fb 35%, #f7fbff 100%);
    color: #1d2a3a;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

.ewh-modern h1,
.ewh-modern h2,
.ewh-modern h3,
.ewh-modern h4,
.ewh-modern .tabsBG a,
.ewh-modern .ewh-nav li a {
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

.ewh-modern a {
    color: #0f5cc8;
    text-decoration: none;
}

.ewh-modern a:hover {
    color: #0b4da8;
}

.ewh-modern .ewh-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(21, 68, 127, 0.1);
    box-shadow: 0 12px 35px rgba(16, 43, 78, 0.12);
    padding: 0.75rem 0;
}

.ewh-modern .ewh-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ewh-modern .ewh-navbar .navbar-brand img {
    height: 40px;
}

.ewh-modern .ewh-navbar-tagline {
    color: #62708a;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ewh-modern .ewh-nav {
    gap: 0.35rem;
}

.ewh-modern .ewh-nav li a {
    color: #27405f !important;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.52rem 0.75rem;
    border-radius: 999px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ewh-modern .ewh-nav li a:hover,
.ewh-modern .ewh-nav li.active a {
    color: #0f5cc8 !important;
    background: rgba(15, 92, 200, 0.12);
    transform: translateY(-1px);
}

.ewh-modern .ewh-movie {
    height: 120px;
    border-radius: 0 0 18px 18px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px rgba(16, 54, 95, 0.1);
}

.ewh-modern .ewh-sky {
    background: linear-gradient(180deg, #dff0ff 0%, #cbe8ff 100%);
}

.ewh-modern .ewh-clouds {
    opacity: 0.75;
}

.ewh-modern .ewh-hill {
    opacity: 0.8;
}

.ewh-modern .ewh-content-wrap {
    margin-top: 1.6rem;
    margin-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
}

.ewh-modern .shadow980Top,
.ewh-modern .shadow980Bottom {
    display: none;
}

.ewh-modern .contentBackground,
.ewh-modern .mailList,
.ewh-modern .mailListReklama,
.ewh-modern .mailDetails,
.ewh-modern .tabsHolder,
.ewh-modern .staticMainPage,
.ewh-modern .listDoSiebie,
.ewh-modern .comments,
.ewh-modern .viewComments,
.ewh-modern div.form,
.ewh-modern .view {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(29, 76, 135, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(18, 54, 96, 0.08);
}

.ewh-modern .contentBackground,
.ewh-modern .staticMainPage,
.ewh-modern .listDoSiebie,
.ewh-modern div.form,
.ewh-modern .mailDetails,
.ewh-modern .comments,
.ewh-modern .viewComments {
    padding: 1.25rem;
}

.ewh-modern .tabsHolder {
    overflow: hidden;
    padding: 1.25rem;
    margin-top: 0;
}

.ewh-modern .tabsBG {
    width: 100% !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
    position: static !important;
    top: auto !important;
    background: transparent !important;
}

.ewh-modern .tabsBG a,
.ewh-modern .tabsBG .tab1,
.ewh-modern .tabsBG .tab2,
.ewh-modern .tabsBG .tab3,
.ewh-modern .tabsBG .tab4 {
    position: static !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    color: #365274 !important;
    background: #eef3fb !important;
    border: 1px solid #d7e2f2;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
}

.ewh-modern .tabsBG a.active,
.ewh-modern .tabsBG a:hover {
    background: #0f5cc8 !important;
    color: #fff !important;
    border-color: #0f5cc8;
}

.ewh-modern .tabsBox {
    width: 100% !important;
    background: transparent !important;
    display: block;
    padding: 0 !important;
}

.ewh-modern .tabsBox .tabDisplay {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* List do siebie is an article-like view, not a card grid */
.ewh-modern .tabsBox #tab-4.listDoSiebie {
    display: block !important;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(21, 73, 132, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.94));
    box-shadow: 0 12px 26px rgba(20, 67, 118, 0.08);
}

.ewh-modern .tabsBox #tab-4.listDoSiebie h1,
.ewh-modern .tabsBox #tab-4.listDoSiebie h2 {
    color: #184c7f;
    letter-spacing: 0.01em;
}

.ewh-modern .tabsBox #tab-4.listDoSiebie p {
    line-height: 1.72;
    color: #2a3f55;
}

.ewh-modern .tabsBox #tab-4.listDoSiebie ul {
    margin: 1rem 0 1.15rem;
    padding-left: 1.25rem;
}

.ewh-modern .tabsBox #tab-4.listDoSiebie ul li {
    margin-bottom: 0.5rem;
}

.ewh-modern .tabsBox #tab-4.listDoSiebie img.floatR,
.ewh-modern .tabsBox #tab-4.listDoSiebie img.floatL {
    max-width: min(42%, 280px);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(17, 58, 103, 0.12);
}

.ewh-modern .tabsBox .tabInsideBox,
.ewh-modern .tabsBox .tabInsideBoxLast {
    width: 100% !important;
    max-width: 100% !important;
    height: 235px !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(10, 42, 85, 0.18);
}

.ewh-modern .tabsBox .tabInsideTextBox {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(12, 30, 58, 0.1) 0%, rgba(12, 30, 58, 0.85) 100%);
    color: #f8fbff;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.ewh-modern .tabsBox .tabInsideBox:hover .tabInsideTextBox,
.ewh-modern .tabsBox .tabInsideBoxLast:hover .tabInsideTextBox {
    opacity: 1;
}

.ewh-modern .tabsBox a.buttonFromMainBoxes {
    position: static;
    transform: none;
    margin-top: 0.75rem;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    background: #53bf7a !important;
}

.ewh-modern .tabsBox a.buttonFromMainBoxes:hover {
    background: #3ba766 !important;
}

.ewh-modern .mailList,
.ewh-modern .mailListReklama,
.ewh-modern .mailDetails,
.ewh-modern .view {
    padding: 1rem;
}

.ewh-modern table,
.ewh-modern .items table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dbe6f4;
    background: #fff;
}

.ewh-modern table th,
.ewh-modern .items table th {
    background: #eef4fc;
    color: #1f3b5d;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ewh-modern table th,
.ewh-modern table td,
.ewh-modern .items table th,
.ewh-modern .items table td {
    padding: 0.65rem 0.7rem;
    border-bottom: 1px solid #e8eff8;
}

.ewh-modern table tr:last-child td,
.ewh-modern .items table tr:last-child td {
    border-bottom: 0;
}

.ewh-modern ul.operations li,
.ewh-modern .operations li {
    border-bottom: 1px solid #ecf2fa;
    padding: 0.25rem 0;
}

.ewh-modern ul.operations li:last-child,
.ewh-modern .operations li:last-child {
    border-bottom: 0;
}

.ewh-modern .errorSummary,
.ewh-modern .flash-error,
.ewh-modern .flash-notice,
.ewh-modern .flash-success {
    border-radius: 12px;
}

.ewh-modern #footer {
    margin-top: 1.4rem;
    border-top: none;
    text-align: center;
}

.ewh-modern .greenButtonMain {
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.72rem 1.4rem;
    box-shadow: 0 10px 22px rgba(77, 126, 155, 0.22);
}

.ewh-modern #footer .greenButtonMain {
    background: linear-gradient(135deg, #ffdca2 0%, #ffd1c2 42%, #c8ebdf 100%) !important;
    color: #143f4e !important;
}

.ewh-modern #footer .greenButtonMain:hover {
    background: linear-gradient(135deg, #ffe8ba 0%, #ffd9cc 42%, #d8f1e9 100%) !important;
    color: #123643 !important;
}

.ewh-modern .ewh-footer {
    background: transparent;
    border-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 1.8rem;
    margin-top: 0.5rem;
}

.ewh-modern .ewh-footer-inner {
    background: rgba(15, 28, 47, 0.92);
    color: #e4ecff;
    border-radius: 14px;
    border: 1px solid rgba(167, 192, 230, 0.25);
    padding: 1.05rem 1.2rem;
}

.ewh-modern .ewh-footer .sendedMails {
    color: #d6e1f6;
    margin-bottom: 0.35rem;
}

.ewh-modern .ewh-footer .sendedMails span {
    color: #7be39c;
}

.ewh-modern .ewh-footer a {
    color: #93c3ff;
}

.ewh-modern .portlet .portlet-decoration {
    background: linear-gradient(125deg, #1c4f90, #2d75c9);
    border-left: 0;
    border-radius: 12px 12px 0 0;
}

.ewh-modern .portlet .portlet-content {
    border: 1px solid rgba(22, 75, 140, 0.16);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, 0.94);
}

.ewh-modern input[type="text"],
.ewh-modern input[type="password"],
.ewh-modern input[type="email"],
.ewh-modern textarea,
.ewh-modern select,
.ewh-modern .bigInput {
    border: 1px solid #cfdced !important;
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    background: #fff;
}

.ewh-modern input[type="text"]:focus,
.ewh-modern input[type="password"]:focus,
.ewh-modern input[type="email"]:focus,
.ewh-modern textarea:focus,
.ewh-modern select:focus,
.ewh-modern .bigInput:focus {
    border-color: #0f5cc8 !important;
    box-shadow: 0 0 0 3px rgba(15, 92, 200, 0.16);
    outline: none;
}

.ewh-modern .ewh-mail-compose {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.ewh-modern #mail-mail-form {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 84, 148, 0.14);
    border-radius: 20px;
    padding: 1.35rem;
    box-shadow: 0 24px 48px rgba(19, 55, 98, 0.1);
}

.ewh-modern #mail-mail-form > .errorSummary {
    margin-bottom: 1rem;
}

.ewh-modern .ewh-compose-shell {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 1.2rem;
}

.ewh-modern #mail-mail-form .sendMailLeft,
.ewh-modern #mail-mail-form .sendMailRight {
    float: none;
    width: auto !important;
    margin: 0 !important;
    padding: 1rem;
    border: 1px solid #dbe7f6;
    border-radius: 16px;
    background: #fdfefe;
}

.ewh-modern #mail-mail-form .sendMailLeft {
    border-right: 1px solid #dbe7f6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.ewh-modern #mail-mail-form .sendMailRight {
    min-width: 0;
}

.ewh-modern .ewh-compose-section-title {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #355173;
    font-weight: 800;
}

.ewh-modern #mail-mail-form .row {
    margin-bottom: 0.9rem;
}

.ewh-modern #mail-mail-form label {
    color: #2c4562;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ewh-modern #mail-mail-form .tip {
    color: #7086a2;
    font-size: 0.74rem;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.ewh-modern #mail-mail-form .bigInput {
    width: 100% !important;
    height: 42px;
    font-size: 0.92rem;
    border-radius: 11px;
    background: #fff;
}

.ewh-modern #mail-mail-form .readonly {
    background: #f5f8fc;
}

.ewh-modern #mail-mail-form .datePickHolder {
    margin-top: 0.35rem;
}

.ewh-modern #mail-mail-form .ewh-quick-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.ewh-modern #ui-datepicker-div,
.ewh-modern .ui-datepicker,
.ewh-modern .ui-datepicker.ui-widget,
.ewh-modern .ui-datepicker.ui-widget-content,
.ewh-modern .ui-timepicker-div,
.ewh-modern .ui-widget-content.ui-datepicker {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1 !important;
    filter: Alpha(Opacity=100) !important;
    border: 1px solid #c9d8ec !important;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(18, 58, 103, 0.22);
    color: #1f3853;
}

.ewh-modern #ui-datepicker-div.ui-widget,
.ewh-modern #ui-datepicker-div.ui-widget-content,
.ewh-modern #ui-datepicker-div .ui-widget-content {
    background: #ffffff !important;
    background-image: none !important;
    opacity: 1 !important;
    filter: Alpha(Opacity=100) !important;
}

.ewh-modern #ui-datepicker-div {
    z-index: 5 !important;
}

.ewh-modern .ui-datepicker .ui-widget-header {
    background: linear-gradient(135deg, #4f8ed8 0%, #3b73bf 100%) !important;
    border: 1px solid #2f64a8 !important;
    color: #ffffff !important;
    border-radius: 10px;
}

.ewh-modern .ui-datepicker .ui-datepicker-title,
.ewh-modern .ui-datepicker .ui-datepicker-title select,
.ewh-modern .ui-datepicker .ui-datepicker-title option {
    color: #ffffff !important;
}

.ewh-modern .ui-datepicker .ui-datepicker-title select.ui-datepicker-month,
.ewh-modern .ui-datepicker .ui-datepicker-title select.ui-datepicker-month option {
    color: #000000 !important;
}

.ewh-modern .ui-datepicker .ui-state-default,
.ewh-modern .ui-datepicker .ui-widget-content .ui-state-default {
    background: #f5f9ff !important;
    border: 1px solid #d2e0f3 !important;
    color: #23486f !important;
}

.ewh-modern .ui-datepicker .ui-state-hover,
.ewh-modern .ui-datepicker .ui-widget-content .ui-state-hover {
    background: #e3efff !important;
    border: 1px solid #b7ceec !important;
    color: #1a3f67 !important;
}

.ewh-modern .ui-datepicker .ui-state-active,
.ewh-modern .ui-datepicker .ui-widget-content .ui-state-active {
    background: linear-gradient(135deg, #8bb53a 0%, #7BA22B 100%) !important;
    border: 1px solid #6c9321 !important;
    color: #ffffff !important;
}

.ewh-modern .ui-datepicker .ui-state-highlight,
.ewh-modern .ui-datepicker .ui-widget-content .ui-state-highlight {
    background: #fff5dc !important;
    border: 1px solid #f3d185 !important;
    color: #6b4d0e !important;
}

.ewh-modern .ui-datepicker td a,
.ewh-modern .ui-datepicker td span {
    text-align: center;
    border-radius: 8px;
    padding: 0.38em 0.2em;
}

.ewh-modern .ui-timepicker-div dl dt,
.ewh-modern .ui-timepicker-div dl dd,
.ewh-modern .ui-timepicker-div .ui-slider,
.ewh-modern .ui-timepicker-div .ui_tpicker_time {
    color: #1f3853;
}

.ewh-modern #mail-mail-form .btnGrayDate {
    width: auto;
    float: none;
    margin: 0;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 9px;
    padding: 0.45rem 0.35rem;
}

.ewh-modern #mail-mail-form .ourInfoBox {
    border: 1px solid #99c97a;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.3rem;
}

.ewh-modern #mail-mail-form .sendMailRight h2 {
    margin: 0 0 0.9rem;
    font-size: 0.98rem;
    color: #22456d;
}

.ewh-modern #mail-mail-form .txtEditor {
    width: 100%;
}

.ewh-modern #mail-mail-form .ewh-editor-row {
    margin-bottom: 1rem;
}

.ewh-modern #mail-mail-form .ewh-uploaded-file {
    display: block;
    margin-top: 0.45rem;
}

.ewh-modern #mail-mail-form .ewh-uploaded-file img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(20, 67, 118, 0.14);
}

.ewh-modern #mail-mail-form .ewh-uploaded-file img[src="/"],
.ewh-modern #mail-mail-form .ewh-uploaded-file img[src=""] {
    display: none;
}

.ewh-modern #mail-mail-form .infoUkryjLogo {
    margin-top: 0.45rem;
    padding: 0.55rem 0.65rem;
    border: 1px dashed #cfddf1;
    border-radius: 10px;
    background: #f9fbff;
}

.ewh-modern #mail-mail-form .ewh-public-label {
    position: relative;
    cursor: help;
    font-weight: 700;
}

.ewh-modern #mail-mail-form .ewh-public-label::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    max-width: 280px;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #305f99 0%, #1f4d81 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 18px rgba(19, 54, 93, 0.24);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 5;
}

.ewh-modern #mail-mail-form .ewh-public-label::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%) translateY(6px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #255285;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 5;
}

.ewh-modern #mail-mail-form .ewh-public-label:hover::after,
.ewh-modern #mail-mail-form .ewh-public-label:hover::before,
.ewh-modern #mail-mail-form #Mail_czyPubliczny:focus + .ewh-public-label::after,
.ewh-modern #mail-mail-form #Mail_czyPubliczny:focus + .ewh-public-label::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ewh-modern #mail-mail-form .ewh-compose-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
    padding: 0.95rem;
    border: 1px solid #dce8f6;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ewh-modern #mail-mail-form .ewh-compose-actions .btnGreen,
.ewh-modern #mail-mail-form .ewh-compose-actions .btnRed,
.ewh-modern #mail-mail-form .ewh-compose-actions .btnGray {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.ewh-modern #mail-mail-form .ewh-compose-actions .btnGreen span,
.ewh-modern #mail-mail-form .ewh-compose-actions .btnRed span,
.ewh-modern #mail-mail-form .ewh-compose-actions .btnGray span {
    display: none;
}

.ewh-modern #mail-mail-form #openDialog,
.ewh-modern #mail-mail-form #submitMailForm,
.ewh-modern #submitLoginForm,
.ewh-modern #submitReminderForm,
.ewh-modern #submitRegisterForm,
.ewh-modern #mail-mail-form #deleteMail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0.62rem 1.15rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.ewh-modern #mail-mail-form #submitMailForm {
    background: linear-gradient(135deg, #8bb53a 0%, #7BA22B 100%);
    color: #fff;
    border: 1px solid rgba(91, 127, 27, 0.55);
    box-shadow: 0 12px 24px rgba(103, 143, 35, 0.34);
}

.ewh-modern #submitLoginForm {
    background: linear-gradient(135deg, #8bb53a 0%, #7BA22B 100%);
    color: #fff;
    border: 1px solid rgba(91, 127, 27, 0.55);
    box-shadow: 0 12px 24px rgba(103, 143, 35, 0.34);
}

.ewh-modern #submitReminderForm {
    background: linear-gradient(135deg, #8bb53a 0%, #7BA22B 100%);
    color: #fff;
    border: 1px solid rgba(91, 127, 27, 0.55);
    box-shadow: 0 12px 24px rgba(103, 143, 35, 0.34);
}

.ewh-modern #submitRegisterForm {
    background: linear-gradient(135deg, #8bb53a 0%, #7BA22B 100%);
    color: #fff;
    border: 1px solid rgba(91, 127, 27, 0.55);
    box-shadow: 0 12px 24px rgba(103, 143, 35, 0.34);
}

.ewh-modern #mail-mail-form #submitMailForm::before {
    content: "✉";
    font-size: 0.88rem;
    margin-right: 0.38rem;
}

.ewh-modern #submitLoginForm::before {
    content: "✉";
    font-size: 0.88rem;
    margin-right: 0.38rem;
}

.ewh-modern #submitReminderForm::before {
    content: "✉";
    font-size: 0.88rem;
    margin-right: 0.38rem;
}

.ewh-modern #submitRegisterForm::before {
    content: "✉";
    font-size: 0.88rem;
    margin-right: 0.38rem;
}

.ewh-modern #mail-mail-form #openDialog {
    background: linear-gradient(135deg, #4f8ed8 0%, #3b73bf 100%);
    color: #fff;
    border: 1px solid #2f64a8;
    box-shadow: 0 8px 16px rgba(50, 96, 154, 0.28);
}

.ewh-modern #mail-mail-form #openDialog::before {
    content: "👁";
    font-size: 0.86rem;
    margin-right: 0.38rem;
}

.ewh-modern #mail-mail-form #deleteMail {
    background: linear-gradient(135deg, #d95f6b 0%, #bf3f4d 100%);
    color: #fff;
    border: 1px solid #a33643;
    box-shadow: 0 8px 16px rgba(163, 61, 75, 0.28);
}

.ewh-modern #mail-mail-form #deleteMail::before {
    content: "🗑";
    font-size: 0.82rem;
    margin-right: 0.34rem;
}

.ewh-modern #mail-mail-form #submitMailForm:hover {
    background: linear-gradient(135deg, #95bf44 0%, #6f9324 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(98, 136, 34, 0.4);
}

.ewh-modern #submitLoginForm:hover {
    background: linear-gradient(135deg, #95bf44 0%, #6f9324 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(98, 136, 34, 0.4);
}

.ewh-modern #submitReminderForm:hover {
    background: linear-gradient(135deg, #95bf44 0%, #6f9324 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(98, 136, 34, 0.4);
}

.ewh-modern #submitRegisterForm:hover {
    background: linear-gradient(135deg, #95bf44 0%, #6f9324 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(98, 136, 34, 0.4);
}

.ewh-modern #mail-mail-form #openDialog:hover {
    background: linear-gradient(135deg, #5a99e0 0%, #356ab1 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(45, 88, 140, 0.34);
}

.ewh-modern #mail-mail-form #deleteMail:hover {
    background: linear-gradient(135deg, #e06975 0%, #b73947 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(152, 48, 62, 0.36);
}

@media (max-width: 991.98px) {
    .ewh-modern .tabsBox {
        display: block !important;
    }

    .ewh-modern .tabsBox .tabDisplay {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ewh-modern .tabsBox #tab-2 {
        display: block !important;
        width: 100% !important;
        flex: 0 0 100%;
    }

    .ewh-modern .tabsBox #tab-2 .jReasons {
        width: 100% !important;
        max-width: 100%;
        height: 220px;
        margin: 0;
        background-size: cover;
        border-radius: 12px;
    }

    .ewh-modern .tabsBox #tab-2 .jReasons > div {
        width: 100% !important;
        height: 100% !important;
        padding: 1rem !important;
        box-sizing: border-box;
    }

    .ewh-modern .ewh-nav li a {
        border-radius: 12px;
        margin-bottom: 0.2rem;
    }

    .ewh-modern .ewh-compose-shell {
        grid-template-columns: 1fr;
    }

    .ewh-modern #mail-mail-form .sendMailLeft,
    .ewh-modern #mail-mail-form .sendMailRight {
        padding: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .ewh-modern .tabsBox {
        display: block !important;
    }

    .ewh-modern .tabsBox .tabDisplay {
        grid-template-columns: 1fr;
    }

    .ewh-modern .tabsBox #tab-2 {
        display: block !important;
        width: 100% !important;
        flex: 0 0 100%;
    }

    .ewh-modern .tabsBox #tab-2 .jReasons {
        width: 100% !important;
        max-width: 100%;
        height: 240px;
        margin: 0;
        background-size: cover;
        border-radius: 12px;
    }

    .ewh-modern .tabsBox #tab-2 .jReasons > div {
        width: 100% !important;
        height: 100% !important;
        padding: 0.9rem 0.85rem !important;
        box-sizing: border-box;
    }

    .ewh-modern .tabsBox #tab-2 .jReasons h2 {
        font-size: 1rem !important;
        line-height: 1.35;
        margin: 0 0 0.3rem;
        padding-left: 0 !important;
        text-align: left !important;
    }

    .ewh-modern .tabsBox #tab-2 .jReasons .padding100L,
    .ewh-modern .tabsBox #tab-2 .jReasons .padding200L,
    .ewh-modern .tabsBox #tab-2 .jReasons .padding300L,
    .ewh-modern .tabsBox #tab-2 .jReasons .padding400L {
        padding-left: 0 !important;
    }

    .ewh-modern .tabsBox #tab-2 .jReasons .tabHolderLast,
    .ewh-modern .tabsBox #tab-2 .jReasons .tabLogoEWehikul {
        width: 100% !important;
        float: none !important;
        margin-top: 0 !important;
    }

    .ewh-modern .tabsBox #tab-2 .jReasons .tabLogoEWehikul {
        background-position: left center;
        margin-top: 0.4rem !important;
    }

    .ewh-modern .tabsBox #tab-4.listDoSiebie {
        padding: 0.95rem 0.85rem;
        border-radius: 12px;
    }

    .ewh-modern .tabsBox #tab-4.listDoSiebie img.floatR,
    .ewh-modern .tabsBox #tab-4.listDoSiebie img.floatL {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0.75rem auto;
    }

    .ewh-modern .tabsBox .tabInsideTextBox {
        opacity: 1;
    }

    .ewh-modern .ewh-movie {
        height: 90px;
        border-radius: 0 0 12px 12px;
    }

    .ewh-modern .ewh-navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }

    .ewh-modern .ewh-content-wrap {
        margin-top: 1rem;
    }

    .ewh-modern #mail-mail-form {
        padding: 0.8rem;
        border-radius: 14px;
    }

    .ewh-modern #mail-mail-form .ewh-quick-dates {
        grid-template-columns: 1fr;
    }

    .ewh-modern #mail-mail-form .ewh-compose-actions {
        gap: 0.45rem;
    }

    .ewh-modern #mail-mail-form #openDialog,
    .ewh-modern #mail-mail-form #submitMailForm,
    .ewh-modern #submitLoginForm,
    .ewh-modern #submitReminderForm,
    .ewh-modern #submitRegisterForm,
    .ewh-modern #mail-mail-form #deleteMail {
        width: 100%;
    }

    .ewh-modern #mail-mail-form .ewh-public-label::after {
        left: 0;
        transform: translateX(0) translateY(6px);
        min-width: 0;
        width: 220px;
    }

    .ewh-modern #mail-mail-form .ewh-public-label::before {
        left: 16px;
        transform: translateX(0) translateY(6px);
    }

    .ewh-modern #mail-mail-form .ewh-public-label:hover::after,
    .ewh-modern #mail-mail-form .ewh-public-label:hover::before,
    .ewh-modern #mail-mail-form #Mail_czyPubliczny:focus + .ewh-public-label::after,
    .ewh-modern #mail-mail-form #Mail_czyPubliczny:focus + .ewh-public-label::before {
        transform: translateX(0) translateY(0);
    }
}

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
    .ewh-navbar,
    .ewh-movie,
    #movie,
    .ewh-footer,
    #facebook,
    .shadow980Top,
    .shadow980Bottom,
    .formTop,
    .formBottom,
    .googleImg,
    .googleImgBottom,
    .googleReklamaTop,
    #sidebar {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }
    a { color: #000; text-decoration: underline; }
    .content {
        max-width: 100% !important;
        padding: 0 !important;
    }
}
