/*
|--------------------------------------------------------------------------
| ONLINEFOODIES - FOTOS APORTADAS POR CLIENTES
|--------------------------------------------------------------------------
*/

.of-dish-info-photo-request.of-contribution-button {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    min-height: 44px !important;
    padding: 9px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    background: rgba(20,20,20,.90) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.18) !important;
}

.of-dish-info-photo-request.of-contribution-button:hover:not(:disabled) {
    opacity: .92;
    transform: translateY(-1px);
}


.of-contribution-dialog,
.of-client-gallery-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

.of-contribution-dialog-overlay,
.of-client-gallery-dialog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.68);
}

.of-contribution-dialog-box,
.of-client-gallery-dialog-box {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    max-height: min(90dvh, 800px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px 24px 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    text-align: center;
    font-family: inherit;
}

.of-contribution-dialog-close,
.of-client-gallery-dialog-close {
    position: absolute;
    top: 9px;
    right: 11px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222222;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.of-contribution-dialog-title,
.of-client-gallery-dialog-title {
    margin: 0;
    color: #222222;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
}

.of-contribution-dialog-subtitle,
.of-client-gallery-dialog-subtitle {
    margin-top: 7px;
    color: #666666;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.of-contribution-dialog-icon {
    margin: 20px 0 12px;
    color: #222222;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
}

.of-contribution-dialog-message {
    margin: 12px auto;
    max-width: 410px;
    color: #333333;
    font-size: 15px;
    line-height: 1.55;
}

.of-contribution-form {
    margin-top: 16px;
}

.of-contribution-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px 15px;
    box-sizing: border-box;
    border: 2px dashed #bdbdbd;
    border-radius: 14px;
    background: #fafafa;
    color: #222222;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    cursor: pointer;
}

.of-contribution-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.of-contribution-preview {
    width: 100%;
    max-height: 300px;
    margin-top: 14px;
    object-fit: contain;
    border-radius: 14px;
    background: #f2f2f2;
}

.of-contribution-selected-file {
    margin-top: 8px;
    color: #777777;
    font-size: 11px;
    line-height: 1.4;
    word-break: break-word;
}

.of-contribution-name-label {
    display: block;
    margin-top: 16px;
    text-align: left;
    color: #333333;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
}

.of-contribution-name-input {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 11px 13px;
    box-sizing: border-box;
    border: 1px solid #c7c7c7;
    border-radius: 11px;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.3;
}

.of-contribution-name-input:focus {
    outline: 2px solid rgba(34,34,34,.15);
    outline-offset: 1px;
    border-color: #222222;
}

.of-contribution-compression-status {
    min-height: 20px;
    margin-top: 10px;
    color: #666666;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.of-contribution-dialog-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff3f3;
    color: #a12626;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.of-contribution-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
}

.of-contribution-button {
    min-height: 44px;
    padding: 10px 17px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid #222222;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.of-contribution-button-primary {
    background: #222222;
    color: #ffffff;
}

.of-contribution-button-secondary {
    background: #ffffff;
    color: #222222;
}

.of-contribution-button:disabled {
    opacity: .58;
    cursor: default;
}

.of-contribution-dialog-small {
    margin: 11px auto 0;
    max-width: 390px;
    color: #707070;
    font-size: 12px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| GALERÍA PÚBLICA
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| BOTÓN GALERÍA DE FOTOS DE CLIENTES
|--------------------------------------------------------------------------
*/

.of-client-photos-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 50px !important;
    padding: 12px 20px !important;
    box-sizing: border-box !important;
    border: 1px solid #f97316 !important;
    border-radius: 999px !important;
    background: #f97316 !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(249,115,22,.22) !important;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

.of-client-photos-button:hover:not(:disabled) {
    opacity: .92 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(249,115,22,.28) !important;
}

.of-client-photos-button:focus-visible {
    outline: 3px solid rgba(249,115,22,.28) !important;
    outline-offset: 2px !important;
}

.of-client-photos-button:disabled {
    opacity: .65 !important;
    cursor: default !important;
}

.of-client-gallery-status {
    margin-top: 16px;
    color: #666666;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.of-client-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.of-client-gallery-card {
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
    text-align: left;
}

.of-client-gallery-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #f2f2f2;
    cursor: pointer;
}

.of-client-gallery-image-button img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.of-client-gallery-card-meta {
    padding: 9px 10px 11px;
}

.of-client-gallery-card-name {
    color: #222222;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.of-client-gallery-card-date {
    margin-top: 3px;
    color: #777777;
    font-size: 10px;
    line-height: 1.3;
}

.of-client-gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.of-client-gallery-viewer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
}

.of-client-gallery-viewer-panel {
    position: relative;
    z-index: 1;
    width: min(94vw, 900px);
    max-height: 92dvh;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 70px rgba(0,0,0,.4);
}

.of-client-gallery-viewer-panel img {
    display: block;
    width: 100%;
    max-height: 78dvh;
    object-fit: contain;
    border-radius: 11px;
    background: #111111;
}

.of-client-gallery-viewer-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.of-client-gallery-viewer-caption {
    margin-top: 8px;
    color: #333333;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 600px) {

    .of-contribution-dialog,
    .of-client-gallery-dialog {
        padding: 12px;
    }

    .of-contribution-dialog-box,
    .of-client-gallery-dialog-box {
        width: min(96vw, 520px);
        max-height: 92dvh;
        padding: 24px 16px 18px;
        border-radius: 18px;
    }

    .of-contribution-dialog-title,
    .of-client-gallery-dialog-title {
        font-size: 22px;
    }

    .of-client-gallery-grid {
        gap: 9px;
    }
}
