/*
 Theme Name:   BlingEtsy Child
 Theme URI:    https://example.com/blingetsy-child
 Description:  Child theme for Hello Elementor - Etsy-style seller dashboard (admin only)
 Author:       Homjoys
 Author URI:   https://example.com
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  blingetsy-child
*/

/* Base inherits from parent; dashboard styles in assets/css/dashboard.css */

.blingetsy-btn.blingetsy-btn--secondary {
    background-color: black !important;
    color: white !important;
    padding: 10px 25px;
    border-radius: 6px;
}
#blingetsy-collapse-toggle {
    background-color: black !important;
}
.blingetsy-btn.blingetsy-btn--primary{
    background-color: black !important;
    border-radius: 6px;
    padding: 8px 20px;
}
.media-attachments-filter-heading {
    display: none !important;
}
.media-router button {
    background-color: black !important;
    padding: 10px 18px !important;
}
.media-router button.active {
    background-color: white !important;
    color: black !important;
    font-weight: bold;
}
.blingetsy-filters-card .blingetsy-filters-row.blingetsy-filters-row--primary {
    flex-direction: row-reverse;
}
.blingetsy-product-images__remove{
    padding: 0px !important;
    color: black !important;
    font-weight: 700;
}
.blingetsy-btn.blingetsy-btn--primary {
  display: block !important;
  margin-top: auto !important;
}
.media-modal-close {
    padding: 0 !important;
    color: black !important;
}
.blingetsy-messages__actions button {
    padding: 5px 15px;
    background-color: black;
    color: white;
    border-radius: 6px;
}
.blingetsy-product-tabs button {
    border-radius: 0;
    background-color: #e3e1e1;
}
.blingetsy-listings-filters-sidebar-form {
    margin-top: 25px;
}
.blingetsy-btn + .blingetsy-btn {
    margin-left: 0px !important;
}
.blingetsy-manage-variations__chip-remove {
    padding: 0px !important;
    color: red !important;
    background-color: white !important;
    border-radius: 10px !important;
}
.blingetsy-manage-variations-modal__close {
  padding: 0px !important;
  border-radius: 10px !important;
  color: red !important;
}
.blingetsy-product-tabs__tab:hover {
    background-color: white !important;
    color: black !important;
}
.blingetsy-btn.blingetsy-btn--primary {
    color: white !important;
}
.blingetsy-sales-selected-item__remove {
    display: block;
    padding: 0px !important;
    background-color: red !important;
}
.blingetsy-listings-card__title {
    font-size: 17px;
    margin-top: 10px;
}
.blingetsy-product-tabs__nav {
    background-color: #f7f7f7 !important;
}
.blingetsy-product-tabs button {
    border-radius: 0;
    background-color: #f7f7f7 !important;
    color: black !important;
}
.blingetsy-product-tabs__tab.is-active {
    border-bottom: 2px solid blue !important;
    color: blue !important;
}
.blingetsy-personalization__toggle {
    background-color: transparent !important;
    color: black !important;
    text-decoration: none !important;
    padding-left: 0px !important;
    font-weight: bold !important;
    padding-bottom: 0px !important;
    font-size: 13px !important;
}
.blingetsy-personalization.is-open textarea {
    border-radius: 10px;
    border-color: black !important;
}

.blingetsy-social-links {
    display: block;
}

.blingetsy-social-links__title {
    margin: 0 0 12px;
    font-size: 18px;
    color: #111;
}

.blingetsy-social-links__items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blingetsy-social-links__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.blingetsy-social-links__item:hover {
    transform: translateY(-1px);
    border-color: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.blingetsy-social-links__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.blingetsy-social-links__icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.blingetsy-social-links__label {
    font-weight: 600;
    line-height: 1;
}

.blingetsy-chat-widget {
    margin: 24px 0;
    border: 1px solid #e7e5e4;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 20%);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.blingetsy-chat-widget__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border: 0;
    background: transparent;
    color: #111111;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.blingetsy-chat-widget__toggle-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.blingetsy-chat-widget__toggle-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.blingetsy-chat-widget__toggle-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.blingetsy-chat-widget.is-open .blingetsy-chat-widget__toggle-icon {
    transform: scale(1.04);
}

.blingetsy-chat-widget__panel {
    border-top: 1px solid #efedea;
}

.blingetsy-chat-widget__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 14px;
}

.blingetsy-chat-widget__title {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.2;
    color: #111111;
}

.blingetsy-chat-widget__subtitle {
    margin: 0;
    font-size: 13px;
    color: #57534e;
}

.blingetsy-chat-widget__presence {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.blingetsy-chat-widget__presence::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.blingetsy-chat-widget__status {
    padding: 0 22px;
}

.blingetsy-chat-widget__notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.blingetsy-chat-widget__notice--success {
    background: #ecfdf3;
    color: #166534;
}

.blingetsy-chat-widget__notice--error {
    background: #fef2f2;
    color: #b91c1c;
}

.blingetsy-chat-widget__history {
    max-height: 460px;
    overflow-y: auto;
    padding: 8px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blingetsy-chat-widget__empty,
.blingetsy-chat-widget__empty-text {
    font-size: 14px;
    line-height: 1.6;
    color: #57534e;
}

.blingetsy-chat-widget__empty-text {
    margin: 0;
}

.blingetsy-chat-widget__empty {
    padding: 0 22px 22px;
}

.blingetsy-chat-widget__bubble {
    max-width: min(82%, 560px);
    padding: 14px 16px;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.blingetsy-chat-widget__bubble.is-customer {
    align-self: flex-end;
    background: #111111;
    color: #ffffff;
}

.blingetsy-chat-widget__bubble.is-admin {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #ece7e1;
    color: #111111;
}

.blingetsy-chat-widget__bubble-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.4;
}

.blingetsy-chat-widget__bubble-author {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.blingetsy-chat-widget__bubble-date {
    opacity: 0.72;
}

.blingetsy-chat-widget__bubble-body {
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}

.blingetsy-chat-widget__form {
    padding: 18px 22px 22px;
    border-top: 1px solid #efedea;
    background: #ffffff;
}

.blingetsy-chat-widget__textarea {
    width: 100%;
    min-height: 118px;
    padding: 15px 16px;
    border: 1px solid #d6d3d1;
    border-radius: 18px;
    background: #fffdfa;
    color: #111111;
    font: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blingetsy-chat-widget__textarea:focus {
    outline: none;
    border-color: #111111;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.blingetsy-chat-widget__form-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.blingetsy-chat-widget__helper {
    margin: 0;
    max-width: 560px;
    font-size: 13px;
    line-height: 1.6;
    color: #78716c;
}

.blingetsy-chat-widget__submit,
.blingetsy-chat-widget__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.blingetsy-chat-widget__submit:hover,
.blingetsy-chat-widget__login:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
}

.blingetsy-chat-widget__submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

@media (max-width: 767px) {
    .blingetsy-chat-widget__header,
    .blingetsy-chat-widget__form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .blingetsy-chat-widget__bubble {
        max-width: 100%;
    }

    .blingetsy-chat-widget__submit,
    .blingetsy-chat-widget__login {
        width: 100%;
    }
}
