/* ---------- Overlay ---------- */
.dwr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 19, 0.5);
    z-index: 9998;
}

.dwr-overlay--visible {
    display: block;
}


/* ---------- Drawer ---------- */
.dwr-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    box-shadow: -4px 0 24px rgba(10, 13, 19, 0.14);
}

.dwr-drawer--open {
    right: 0;
}

.dwr-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 2px solid #adc3c7;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.dwr-drawer__header h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0;
    color: #222722;
    font-family: "Avenir-book", Poppins, sans-serif;
    text-transform: uppercase;
}

.dwr-drawer__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #222722;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.dwr-drawer__close:hover {
    color: #adc3c7;
}

.dwr-drawer__body {
    padding: 28px;
}


/* ---------- Find Registry Drawer ---------- */
.dwr-search-result {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #adc3c7;
    background: #f5f9fa;
    border-radius: 2px;
}

.dwr-search-result h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #222722;
    font-family: "Avenir-book", Poppins, sans-serif;
}

.dwr-search-result p {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px;
    font-family: "Avenir-book", Poppins, sans-serif;
}

/* ==========================================================
   My Account — Registry Tab
   ========================================================== */
.dwr-account {
    font-family: "Avenir-book", Poppins, sans-serif;
}

/* Empty state */
.dwr-account__empty {
    text-align: center;
    padding: 60px 20px;
}

.dwr-account__empty svg {
    margin-bottom: 20px;
    color: #adc3c7;
}

.dwr-account__empty h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222722;
    font-family: "Avenir-book", Poppins, sans-serif;
}

.dwr-account__empty p {
    color: #666;
    margin-bottom: 24px;
    font-family: "Avenir-book", Poppins, sans-serif;
}

/* Header */
.dwr-account__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #adc3c7;
}

.dwr-account__info h2 {
    font-size: 26px;
    font-family: "Avenir-book", Poppins, sans-serif;
    font-weight: 400;
    margin: 0 0 6px;
    color: #222722;
    letter-spacing: 0.04em;
}

.dwr-account__meta {
    font-size: 13px;
    color: #666;
    font-family: "Avenir-book", Poppins, sans-serif;
}

.dwr-account__stats {
    display: flex;
    gap: 32px;
    border: 1px solid #adc3c7;
    padding: 16px 24px;
    min-width: 200px;
    background: #f5f9fa;
}

.dwr-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dwr-stat__num {
    font-size: 24px;
    font-weight: 700;
    color: #adc3c7;
    font-family: "Avenir-book", Poppins, sans-serif;
}

.dwr-stat__label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Avenir-book", Poppins, sans-serif;
}

.dwr-stat__link {
    font-size: 12px;
    color: #adc3c7;
    text-decoration: underline;
    cursor: pointer;
    font-family: "Avenir-book", Poppins, sans-serif;
}

/* Custom Code Row */
.dwr-custom-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d5dfe0;
}

.dwr-custom-code-row input[type="text"] {
    flex: 1 1 160px;
    min-width: 140px;
    border: 1px solid #adc3c7;
    padding: 7px 12px;
    font-size: 14px;
    font-family: "Avenir-book", Poppins, sans-serif;
    color: #222722;
    outline: none;
    background: #fff;
    letter-spacing: 0.05em;
    transition: border-color 0.2s;
}

.dwr-custom-code-row input[type="text"]:focus {
    border-color: #222722;
}

.dwr-custom-code-status {
    font-size: 12px;
    font-family: "Avenir-book", Poppins, sans-serif;
    font-weight: 600;
    min-width: 90px;
}

.dwr-custom-code-status--ok {
    color: #2e7d32;
}

.dwr-custom-code-status--error {
    color: #bb251a;
}

.dwr-custom-code-status--busy {
    color: #888;
}

/* Code Section */
.dwr-code-section {
    background: #f5f9fa;
    border: 1px solid #adc3c7;
    border-radius: 4px;
    padding: 14px 20px;
    margin-bottom: 24px;
}

.dwr-code-section__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.dwr-code-section__label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    font-family: "Avenir-book", Poppins, sans-serif;
}

.dwr-code-section__code {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #222722;
    font-family: monospace;
    background: #fff;
    border: 1px solid #adc3c7;
    padding: 4px 12px;
    border-radius: 2px;
    min-width: 80px;
    display: inline-block;
    text-align: center;
}


/* ---------- Registry Sidebar ---------- */
.dwr-reg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.dwr-reg-overlay--open {
    display: block;
    opacity: 1;
}

.dwr-reg-overlay--closing {
    display: block;
    opacity: 0;
}

.dwr-reg-sidebar {
    position: fixed;
    top: 0;
    right: -520px;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.dwr-reg-sidebar--open {
    right: 0;
}

.dwr-reg-sidebar--closing {
    right: -520px;
}

.dwr-reg-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.dwr-reg-sidebar__title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    font-family: "Avenir-book", Poppins, sans-serif;
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
}

.dwr-reg-sidebar__close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    line-height: 1;
    padding: 4px;
}

.dwr-reg-sidebar__close:hover {
    color: #000;
}

.dwr-reg-sidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.dwr-reg-sidebar__footer {
    padding: 16px 24px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.dwr-reg-sidebar__continue {
    display: block;
    width: 100%;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: "Avenir-book", Poppins, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
}

.dwr-reg-sidebar__continue:hover {
    background: #000;
    color: #fff;
}

.dwr-reg-sidebar__continue--link {
    display: block;
    margin-bottom: 10px;
}

.dwr-reg-sidebar__cancel {
    display: block;
    width: 100%;
    background: transparent;
    color: #111;
    border: 2px solid #111;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: "Avenir-book", Poppins, sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    text-decoration: none;
}

.dwr-reg-sidebar__cancel:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.dwr-reg-sidebar__cancel--link {
    display: block;
}

/* Registry list */
.dwr-reg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dwr-reg-item {
    border: 1px solid #ddd;
    margin-bottom: 12px;
}

.dwr-reg-item__label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
    font-family: "Avenir-book", Poppins, sans-serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.dwr-reg-item__radio {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #111;
    flex-shrink: 0;
    cursor: pointer;
}

.dwr-reg-item__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dwr-reg-item__name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.dwr-reg-item__meta {
    font-size: 13px;
    color: #adc3c7;
    font-weight: 400;
}

.dwr-reg-item__store {
    font-size: 12px;
    color: #888;
}

/* No registry / not logged in message */
.dwr-reg-msg {
    text-align: center;
    padding: 20px 0;
    font-family: "Avenir-book", Poppins, sans-serif;
}

.dwr-reg-msg p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.dwr-reg-success {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #adc3c7;
    background: #f5f9fa;
    color: #222722;
}

.dwr-reg-success strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.dwr-reg-success span {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.dwr-reg-error {
    color: #bb251a;
    font-size: 13px;
    margin-bottom: 12px;
    font-family: "Avenir-book", Poppins, sans-serif;
}

body.dwr-no-scroll {
    overflow: hidden;
}

@media (max-width: 520px) {
    .dwr-reg-sidebar {
        max-width: 100%;
        width: 100%;
        right: -100%;
    }

    .dwr-reg-sidebar--open {
        right: 0;
    }

    .dwr-reg-sidebar--closing {
        right: -100%;
    }

    .dwr-reg-sidebar__header {
        padding: 18px 18px;
    }

    .dwr-reg-sidebar__body {
        padding: 16px 18px;
    }

    .dwr-reg-sidebar__footer {
        padding: 14px 18px 18px;
    }

    .dwr-reg-item__label {
        padding: 14px;
    }

    .dwr-reg-item__name {
        font-size: 13px;
    }

    .dwr-reg-item__meta {
        font-size: 12px;
    }
}

