/* Releva Product Flow public styles */
body.rpf-active form.cart {
    flex-wrap: wrap !important;
}

body.rpf-active .rpf-fields-wrap {
    display: block;
    flex: 0 0 100%;
}

body .rpf-public-note {
    display: block;
    padding: 8px 12px;
    background: #f0f6ff;
    border-radius: 4px;
}

body .rpf-gender-tabs-wrap {
    margin: 0 0 14px;
}

body .rpf-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

body .rpf-gender-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
}

body .rpf-gender-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body .rpf-gender-tab {
    border: 0;
    border-right: 1px solid #c3c4c7;
    padding: 8px 14px;
    line-height: 1;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    color: #1d2327;
    transition: all 0.2s ease;
    margin-bottom: 0 !important;
}

body .rpf-gender-tab:hover {
    background: #f6f7f7;
}

body .rpf-gender-input:checked + .rpf-gender-tab {
    background: var(--rpf-primary);
    color: #fff;
}

body .rpf-gender-tabs label:last-of-type {
    border-right: 0;
}

body .rpf-age-tabs-wrap {
    margin: 0 0 14px;
}

body .rpf-age-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
}

body .rpf-age-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body .rpf-age-tab {
    border: 0;
    border-right: 1px solid #c3c4c7;
    padding: 8px 14px;
    line-height: 1;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    color: #1d2327;
    transition: all 0.2s ease;
    margin-bottom: 0 !important;
}

body .rpf-age-tab:hover {
    background: #f6f7f7;
}

body .rpf-age-input:checked + .rpf-age-tab {
    background: var(--rpf-primary);
    color: #fff;
}

body .rpf-age-tabs label:last-of-type {
    border-right: 0;
}

body .rpf-genre-dropdown-wrap {
    margin: 0 0 14px;
}

body .rpf-genre-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
}

body .rpf-genre-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #1d2327;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease;
}

body .rpf-genre-dropdown__trigger:hover {
    border-color: #8c8f94;
    background: #f6f7f7;
    color: #1d2327;
}

body .rpf-genre-dropdown__trigger:focus {
    background: #f6f7f7;
}

body .rpf-genre-dropdown__trigger.is-open {
    border-color: var(--rpf-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

body .rpf-genre-dropdown__label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
    font-size: 13px;
}

body .rpf-genre-dropdown__trigger.is-open .rpf-genre-dropdown__label,
body .rpf-genre-dropdown__trigger[aria-expanded="true"] .rpf-genre-dropdown__label {
    color: #1d2327;
}

body .rpf-genre-dropdown__chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #8c8f94;
    transition: transform 0.2s ease;
}

body .rpf-genre-dropdown__trigger.is-open .rpf-genre-dropdown__chevron {
    transform: rotate(180deg);
}

body .rpf-genre-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--rpf-primary);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
}

body .rpf-genre-dropdown__panel[hidden] {
    display: none;
}

body .rpf-genre-dropdown__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #1d2327;
    transition: background 0.1s ease;
    margin-bottom: 0 !important;
}

body .rpf-genre-dropdown__item:hover {
    background: #f6f7f7;
}

body .rpf-genre-input {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--rpf-primary);
}

body .rpf-genre-tree__group {
    border-bottom: 1px solid #f0f0f0;
}

body .rpf-genre-tree__group:last-child {
    border-bottom: none;
}

body .rpf-genre-tree__header {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease;
}

body .rpf-genre-tree__header:hover {
    background: #f6f7f7;
    color: #1d2327;
}

body .rpf-genre-tree__chevron {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #8c8f94;
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
}

body .rpf-genre-tree__header.is-open .rpf-genre-tree__chevron {
    transform: rotate(0deg);
}

body .rpf-genre-tree__subgenres {
    padding: 2px 0 4px 24px;
}

body .rpf-youtube-wrap {
    margin: 0 0 14px;
}

body .rpf-youtube-input {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 36px;
    padding: 0 12px !important;
    background-color: #fff;
    border: 1px solid #c3c4c7 !important;
    border-radius: 10px !important;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px !important;
    font-weight: 300;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body .rpf-youtube-input:hover {
    border-color: #9ea3a8;
    background-color: #f6f7f7;
}

body .rpf-youtube-input:focus {
    border-color: var(--rpf-primary);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.18);
    outline: 0;
}

body .rpf-youtube-input::placeholder {
    color: #8c8f94;
}

body .rpf-language-select-wrap {
    margin: 0 0 14px;
}

body .rpf-language-select {
    width: 100%;
    max-width: 320px;
    height: 36px;
    border: 1px solid #c3c4c7;
    border-radius: 10px;
    padding: 0 42px 0 12px;
    background-color: #fff;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(to right, #e8eaed, #e8eaed);
    background-position:
        calc(100% - 11px) 50%,
        calc(100% - 34px) 50%;
    background-size: 16px 16px, 1px 20px;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px !important;
    font-weight: 300;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body .rpf-language-select:hover {
    border-color: #9ea3a8;
    background-color: #f6f7f7;
    cursor: pointer;
}

body .rpf-language-select:focus {
    border-color: var(--rpf-primary);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.18);
    outline: 0;
}

/* no remover, es para fines de pruebas */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: nowrap;
}

