/* Tainacan Licensing Request */
.tlr-button-wrap {
    margin: 1.25rem 0;
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

.tlr-add-button,
.tlr-continue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1.2rem;
    border: 0;
    border-radius: 5px;
    background: #2189d9;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    cursor: pointer;
}

.tlr-add-button:hover,
.tlr-continue-button:hover {
    opacity: .9;
}

.tlr-add-button.is-added {
    background: #555;
}

.tlr-view-link {
    text-decoration: underline;
}

.tlr-request-page {
    max-width: 850px;
    margin: 2rem auto;
}

.tlr-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tlr-clear-button,
.tlr-remove {
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    text-decoration: underline;
}

.tlr-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid #ddd;
}

.tlr-item-thumb {
    width: 88px;
    height: 66px;
    flex: 0 0 88px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
    display: block;
}

.tlr-item-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1 1 auto;
    min-width: 0;
}

.tlr-empty {
    color: #777;
}

.tlr-admin-notice {
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
}


.tlr-proceed-button,
.tlr-remove-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
}

.tlr-proceed-button {
    border: 1px solid #2189d9;
    background: #2189d9;
    color: #fff !important;
}

.tlr-remove-current {
    border: 1px solid #bbb;
    background: #fff;
    color: #555;
}

.tlr-proceed-button:hover,
.tlr-remove-current:hover {
    opacity: .9;
}

/* Respect the JavaScript-controlled hidden state even when theme styles
   set display:inline-flex on these controls. */
.tlr-proceed-button[hidden],
.tlr-remove-current[hidden],
.tlr-continue-button[hidden],
.tlr-view-link[hidden] {
    display: none !important;
}


/* Let visitors verify a selected photo without losing their request page. */
.tlr-item-link {
    color: inherit;
    text-decoration: none;
}

.tlr-item-reference-link:hover,
.tlr-item-reference-link:focus-visible {
    text-decoration: underline;
}

.tlr-item-thumb-link {
    display: block;
    flex: 0 0 88px;
    line-height: 0;
}

.tlr-item-thumb-link .tlr-item-thumb {
    width: 88px;
}

[data-tlr-list-page][hidden] {
    display: none !important;
}


/* Compact pricing disclosure shown below the licensing controls. */
.tlr-pricing-widget {
    flex: 0 0 100%;
    width: 100%;
    margin-top: .1rem;
}

.tlr-pricing-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .4rem .8rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

.tlr-pricing-toggle:hover,
.tlr-pricing-toggle:focus-visible {
    background: rgba(127, 127, 127, .08);
}

.tlr-pricing-toggle .tlr-en {
    display: none;
}

html[data-archive-language="en"] .tlr-pricing-toggle .tlr-ja {
    display: none;
}

html[data-archive-language="en"] .tlr-pricing-toggle .tlr-en {
    display: inline;
}

.tlr-pricing-guide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 760px;
    margin: .75rem 0 1.5rem;
    color: inherit;
}

.tlr-pricing-guide h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.tlr-pricing-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tlr-pricing-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    background: transparent;
    font-size: .95rem;
    line-height: 1.5;
}

.tlr-pricing-table th,
.tlr-pricing-table td {
    padding: .55rem .65rem;
    border: 0;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.tlr-pricing-table th {
    font-weight: 700;
}

.tlr-pricing-table tbody tr:nth-child(odd) {
    background: transparent;
}

.tlr-pricing-guide .tlr-en {
    display: none;
}

html[data-archive-language="en"] .tlr-pricing-table .tlr-ja,
html[data-archive-language="en"] .tlr-pricing-guide h3 .tlr-ja {
    display: none;
}

html[data-archive-language="en"] .tlr-pricing-guide .tlr-en {
    display: inline;
}

@media (max-width: 600px) {
    .tlr-pricing-table {
        font-size: .82rem;
        min-width: 520px;
    }

    .tlr-pricing-table th,
    .tlr-pricing-table td {
        padding: .5rem .45rem;
    }
}


.tlr-pricing-guide[hidden] {
    display: none !important;
}

.tlr-pricing-widget .tlr-pricing-guide {
    margin-top: .75rem;
}


/* Compact count badge on the existing Blocksy licensing menu item. */
.tlr-menu-link {
    white-space: nowrap;
}

.tlr-menu-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    box-sizing: border-box;
    margin-inline-start: .3rem;
    padding: 0 .32rem;
    border-radius: 999px;
    background: #ff713b;
    color: #fff !important;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    text-align: center;
}

.tlr-menu-count[hidden] {
    display: none !important;
}

/* Keep the badge readable in Blocksy's white sticky header and dark header. */
.tlr-menu-link .tlr-menu-count {
    text-decoration: none;
}
