.cf-turnstile {
    padding-bottom: 5px;
    min-width: 400px;
}

.help-inline {
    min-height: 0;
    display: block;
}
.help-inline:empty {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
}
#download-form .input-large {
    width: 100% !important;
    height: 45px !important;
    font-size: 15px !important;
    margin-bottom: 3px !important;
}
#download-form .input-large::-webkit-input-placeholder {
    font-size: 15px !important;
}
#download-form .input-large::-moz-placeholder {
    font-size: 15px !important;
}
#download-form .input-large:-ms-input-placeholder {
    font-size: 15px !important;
}
#download-form .input-large::placeholder {
    font-size: 15px !important;
}
#download-form .form-actions {
    margin: 0 !important;
    padding: 3px 0 !important;
}

.download-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

/* Language selector in footer */
.lang-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 180px;
}
.lang-select-button {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lang-select-button:hover {
    background: #f5f5f5;
}
.lang-option-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-option-content img {
    width: 16px;
    height: 16px;
}
.lang-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-bottom: -1px;
}
.lang-dropdown.active {
    display: block;
}
.lang-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}
.lang-option:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: #333;
}
.lang-option.current {
    background: #e8f4f8;
}
.lang-arrow {
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
}

/* Responsive layout for footer language selector and payments */
@media (max-width: 767px) {
    .choose-language-bottom {
        text-align: center;
        margin-bottom: 20px;
    }
    .lang-select-wrapper {
        margin: 0 auto;
    }
    footer .row-fluid [align="right"] {
        text-align: center !important;
    }
}

/* Fix footer padding on medium and small screens */
@media (max-width: 979px) {
    footer .footerOuter .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Fix nav wrapping on medium screens (768px-979px) */
@media (min-width: 768px) and (max-width: 979px) {
    .navbar .nav > li > a {
        padding: 0 5px !important;
        font-size: 12px !important;
    }
    .navbar .nav > li:first-child a {
        padding: 0 5px !important;
    }
}

#sewist-modal-back {
    display: none;
    width: 100%;
    height: 100%;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    opacity: 0.5;
}
#sewist-modal-window {
    display: none;
    position: absolute;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    padding: 30px 10px;
}
#sewist-modal-window img {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.app-version {
    margin-top: 5px;
    color: #999;
    font-size: 11px;
}

.breadcrumbs-container {
    margin: 0 auto;
}
