/* Property sharing and a manual link fallback stay within the property copy. */
.property-share {
    --dh-property-share-styled: 1;
    max-width: 620px;
    min-width: 0;
    margin-top: 14px;
}

.property-share-details {
    min-width: 0;
    margin: 0;
}

.property-share-details[hidden],
.property-share-details > summary[hidden],
.property-share-button[hidden],
.property-share-copy[hidden] {
    display: none !important;
}

.dhost-public .property-share-button,
.dhost-public .property-share-copy {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    margin: 0;
    border: 1px solid #bc9a64;
    border-radius: 10px;
    background: #fffaf1;
    color: var(--dh-header, #081721);
    font: 600 14px/1.4 var(--font-body, Arial, sans-serif);
    text-align: center;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    overflow-wrap: anywhere;
}

.property-share-button::-webkit-details-marker {
    display: none;
}

.property-share-button::marker {
    content: "";
}

.property-share-button svg,
.property-share-copy svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #946a33;
    pointer-events: none;
}

.dhost-public .property-share-button:hover,
.dhost-public .property-share-copy:hover {
    border-color: #946a33;
    background: #f5ebd9;
    color: var(--dh-header, #081721);
    transform: none;
}

.dhost-public .property-share-button:focus-visible,
.dhost-public .property-share-copy:focus-visible,
.dhost-public .property-share-field input:focus-visible {
    outline: 3px solid var(--dh-gold, #b98a43);
    outline-offset: 3px;
}

.dhost-public .property-share-button:disabled,
.dhost-public .property-share-copy:disabled {
    opacity: .65;
    cursor: wait;
}

.property-share-panel {
    box-sizing: border-box;
    width: min(420px, 100%);
    min-width: 0;
    max-width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #d5bc92;
    border-radius: 12px;
    background: #fff;
    color: var(--dh-header, #081721);
}

.property-share-field {
    display: block;
    min-width: 0;
    margin: 0;
    color: #34434b;
    font-size: 14px;
    line-height: 1.5;
}

.property-share-field > span {
    display: block;
    margin-bottom: 7px;
    color: #34434b;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dhost-public .property-share-field input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid #e2d6c2;
    border-radius: 8px;
    background: #fffaf1;
    color: var(--dh-header, #081721);
    font: 400 14px/1.5 var(--font-body, Arial, sans-serif);
    box-shadow: none;
    cursor: text;
}

.dhost-public .property-share-copy {
    margin-top: 10px;
    padding: 9px 13px;
    font-size: 13px;
}

.property-share .property-share-status {
    min-height: 0;
    padding: 0;
    margin: 9px 0 0;
    border: 0;
    color: #765321;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.property-share .property-share-status:empty {
    margin: 0;
}

@media (max-width: 600px) {
    .property-share-panel {
        padding: 12px;
    }

    .dhost-public .property-share-field input {
        font-size: 16px;
    }
}
