/* Gallery+ — дефолтные кнопки под boxed (#ff5317, radius 10, padding 4×10) */

.galleryplus .btn,
.galleryplus .btn-primary,
.galleryplus .btn-secondary,
.galleryplus .btn-sm,
.galleryplus a.btn,
.galleryplus button.btn,
.galleryplus input.btn,
.galleryplus .galleryplus-btn,
.galleryplus a.galleryplus-btn,
.galleryplus button.galleryplus-btn,
.galleryplus a.galleryplus-btn.galleryplus-upload-btn,
.galleryplus .galleryplus-btn-primary,
.galleryplus a.galleryplus-btn-primary,
.galleryplus button.galleryplus-btn-primary,
.galleryplus input.galleryplus-btn-primary,
.galleryplus .galleryplus-btn-ghost,
.galleryplus a.galleryplus-btn-ghost,
.galleryplus .button-submit,
.galleryplus a.button-submit,
.galleryplus-upload .btn,
.galleryplus-upload .btn-primary,
.galleryplus-upload .btn-secondary,
.galleryplus-upload .btn-sm,
.galleryplus-upload a.btn,
.galleryplus-upload button.btn,
.galleryplus-upload .galleryplus-btn-primary,
.galleryplus-upload input.galleryplus-btn-primary,
.galleryplus-map-modal .button-submit,
.galleryplus-map-modal button.button-submit,
.galleryplus-view .btn,
.galleryplus-view .button-submit,
.galleryplus-view a.button-submit,
.galleryplus-view .galleryplus-view-login-btn,
.galleryplus-view .galleryplus-nav-btn,
.galleryplus-view a.galleryplus-nav-btn,
.galleryplus-view .galleryplus-action-btn,
.galleryplus-view a.galleryplus-action-btn,
.galleryplus-view .galleryplus-action-btn--edit,
.galleryplus-view a.galleryplus-action-btn--edit,
.galleryplus-view .galleryplus-like-btn:not(.galleryplus-like-btn--overlay),
.galleryplus-view button.galleryplus-like-btn:not(.galleryplus-like-btn--overlay),
.galleryplus-view .galleryplus-dl-btn,
.galleryplus-view a.galleryplus-dl-btn {
    background: #ff5317 !important;
    color: #fff !important;
    /* без display:!important — иначе ломает style="display:none" (🗑 Удалить и пр.) */
    padding: 4px 10px !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-color: #ff5317 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.galleryplus-view .galleryplus-action-btn--delete,
.galleryplus-view a.galleryplus-action-btn--delete {
    background: #d32f2f !important;
    color: #fff !important;
    border-color: #d32f2f !important;
}

.galleryplus .btn:hover,
.galleryplus .btn-primary:hover,
.galleryplus .btn-secondary:hover,
.galleryplus .galleryplus-btn:hover,
.galleryplus a.galleryplus-btn:hover,
.galleryplus a.galleryplus-btn.galleryplus-upload-btn:hover,
.galleryplus .galleryplus-btn-primary:hover,
.galleryplus a.galleryplus-btn-primary:hover,
.galleryplus input.galleryplus-btn-primary:hover,
.galleryplus .galleryplus-btn-ghost:hover,
.galleryplus a.galleryplus-btn-ghost:hover,
.galleryplus .button-submit:hover,
.galleryplus a.button-submit:hover,
.galleryplus-upload .btn:hover,
.galleryplus-upload .galleryplus-btn-primary:hover,
.galleryplus-upload input.galleryplus-btn-primary:hover,
.galleryplus-map-modal .button-submit:hover,
.galleryplus-map-modal button.button-submit:hover,
.galleryplus-view .button-submit:hover,
.galleryplus-view a.button-submit:hover,
.galleryplus-view .galleryplus-view-login-btn:hover,
.galleryplus-view .galleryplus-nav-btn:hover,
.galleryplus-view a.galleryplus-nav-btn:hover,
.galleryplus-view .galleryplus-action-btn:hover,
.galleryplus-view a.galleryplus-action-btn:hover,
.galleryplus-view .galleryplus-action-btn--edit:hover,
.galleryplus-view a.galleryplus-action-btn--edit:hover,
.galleryplus-view .galleryplus-like-btn:not(.galleryplus-like-btn--overlay):hover:not(.disabled),
.galleryplus-view button.galleryplus-like-btn:not(.galleryplus-like-btn--overlay):hover:not(.disabled),
.galleryplus-view .galleryplus-dl-btn:hover,
.galleryplus-view a.galleryplus-dl-btn:hover {
    background: #e64a14 !important;
    color: #fff !important;
    border-color: #e64a14 !important;
    text-decoration: none !important;
}

.galleryplus-view .galleryplus-action-btn--delete:hover,
.galleryplus-view a.galleryplus-action-btn--delete:hover {
    background: #b71c1c !important;
    color: #fff !important;
    border-color: #b71c1c !important;
    text-decoration: none !important;
}

/* photo view: ряд кнопок — компактная высота как в toolbar альбомов */
.galleryplus-view .galleryplus-view-nav .galleryplus-nav-btn,
.galleryplus-view .galleryplus-view-actions .galleryplus-action-btn,
.galleryplus-view .galleryplus-view-actions .galleryplus-action-btn--edit,
.galleryplus-view .galleryplus-view-actions .galleryplus-action-btn--delete,
.galleryplus-view .galleryplus-view-actions a.galleryplus-action-btn,
.galleryplus-view .galleryplus-view-actions a.galleryplus-action-btn--edit,
.galleryplus-view .galleryplus-view-actions a.galleryplus-action-btn--delete,
.galleryplus-view .galleryplus-view-actions .galleryplus-like-btn:not(.galleryplus-like-btn--overlay),
.galleryplus-view .galleryplus-view-actions .galleryplus-dl-btn,
.galleryplus-view .galleryplus-view-actions .galleryplus-view-login-btn,
.galleryplus-view .galleryplus-view-actions .button-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    -webkit-tap-highlight-color: transparent;
}

.galleryplus-view .galleryplus-nav-btn:focus,
.galleryplus-view a.galleryplus-nav-btn:focus,
.galleryplus-view .galleryplus-nav-btn:focus-visible,
.galleryplus-view a.galleryplus-nav-btn:focus-visible,
.galleryplus-view .galleryplus-nav-btn:active,
.galleryplus-view a.galleryplus-nav-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 2px rgba(255, 83, 23, 0.55) !important;
    color: #fff !important;
}

.galleryplus-view .galleryplus-like-btn.liked:not(.galleryplus-like-btn--overlay),
.galleryplus-view button.galleryplus-like-btn.liked:not(.galleryplus-like-btn--overlay) {
    background: #a5401c !important;
    color: #fff !important;
    border-color: #a5401c !important;
}

.galleryplus-view .galleryplus-like-btn.disabled:not(.galleryplus-like-btn--overlay),
.galleryplus-view button.galleryplus-like-btn.disabled:not(.galleryplus-like-btn--overlay) {
    opacity: .55 !important;
    cursor: default !important;
}

.galleryplus .galleryplus-btn.active,
.galleryplus a.galleryplus-btn.active,
.galleryplus button.galleryplus-btn.active,
.galleryplus .galleryplus-btn.galleryplus-select-mode-btn.active {
    background: #a5401c !important;
    color: #fff !important;
    border-color: #a5401c !important;
}

/* деструктив — оставляем красным, но в той же геометрии */
.galleryplus .galleryplus-btn-danger,
.galleryplus button.galleryplus-btn-danger,
.galleryplus .galleryplus-delete-btn,
.galleryplus button.galleryplus-delete-btn {
    background: #d32f2f !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
    border: none !important;
}

.galleryplus .galleryplus-selection-bar .galleryplus-delete-btn,
.galleryplus .galleryplus-selection-bar button.galleryplus-delete-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

/* JS/inline hide должен побеждать тему */
#galleryplus-selection-bar[style*="display: none"],
#galleryplus-selection-bar[style*="display:none"],
#galleryplus-delete-btn[style*="display: none"],
#galleryplus-delete-btn[style*="display:none"] {
    display: none !important;
}

.galleryplus .galleryplus-btn-danger:hover,
.galleryplus button.galleryplus-btn-danger:hover,
.galleryplus .galleryplus-delete-btn:hover,
.galleryplus button.galleryplus-delete-btn:hover {
    background: #b71c1c !important;
    color: #fff !important;
}

/* Toolbar: одинаковая компактная высота кнопок (и галерея, и альбомы) */
.galleryplus .galleryplus-toolbar {
    align-items: center;
}
.galleryplus .galleryplus-toolbar-right {
    align-items: center;
}
.galleryplus .galleryplus-tabs:not(:has(.galleryplus-tab)) {
    display: none;
}
.galleryplus .galleryplus-toolbar-right .galleryplus-btn,
.galleryplus .galleryplus-toolbar-right a.galleryplus-btn,
.galleryplus .galleryplus-toolbar-right button.galleryplus-btn,
.galleryplus .galleryplus-toolbar-right a.galleryplus-btn.galleryplus-upload-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 12px !important;
    margin-bottom: 0 !important;
    font-size: 13px !important;
    line-height: 32px !important;
}

/* album cards: без белой обводки в чёрной теме */
body.black-theme .galleryplus-albums-grid .galleryplus-album-card,
body.black-theme .galleryplus-albums-grid .galleryplus-album-card.position-absolute {
    border: none;
}

/* album cards: компактные аватарки автора */
.galleryplus-album-cover .galleryplus-album-author {
    gap: 6px;
}
.galleryplus-album-cover .galleryplus-album-author .galleryplus-view-avatar {
    width: 20px;
    height: 20px;
}
.galleryplus-album-cover .galleryplus-album-author .galleryplus-view-avatar img,
.galleryplus-album-cover .galleryplus-album-author .galleryplus-view-avatar .default_avatar,
.galleryplus-album-cover .galleryplus-album-author .galleryplus-view-avatar .default_avatar img {
    width: 20px;
    height: 20px;
}
.galleryplus-album-cover .galleryplus-album-author .galleryplus-view-avatar .default_avatar {
    line-height: 20px;
    font-size: 10px;
}
.galleryplus-album-cover .galleryplus-album-author a {
    font-size: 12px;
}

/* Map modal (вне .galleryplus-upload — отдельные стили) */
.galleryplus-map-modal .button-submit,
.galleryplus-map-modal button.button-submit {
    background: #ff5317 !important;
    color: #fff !important;
    padding: 7px 14px !important;
    border-radius: 10px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.galleryplus-map-modal .button-submit:hover,
.galleryplus-map-modal button.button-submit:hover {
    background: #e64a14 !important;
}
.galleryplus-map-modal .button-cancel,
.galleryplus-map-modal button.button-cancel {
    background: #6b7280 !important;
    color: #fff !important;
    padding: 7px 14px !important;
    border-radius: 10px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.galleryplus-map-modal .button-cancel:hover,
.galleryplus-map-modal button.button-cancel:hover {
    background: #4b5563 !important;
}
.black-theme .galleryplus-map-modal .button-cancel,
.black-theme .galleryplus-map-modal button.button-cancel {
    background: #3a3a3a !important;
    color: #ddd !important;
}
.black-theme .galleryplus-map-modal .button-cancel:hover,
.black-theme .galleryplus-map-modal button.button-cancel:hover {
    background: #4a4a4a !important;
}
