/**
 * PCM Search Plugin Styles
 * Extracted from PostcardMania theme
 */

/* Search Form Styles */
.search-form {
    position: relative;
}

.search-form .input--search {
    padding-right: 50px !important;
}

.search-form .button--search {
    color: #fff;
    width: 50px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}

/* Search Modal Styles */
#pcm-search-modal {
    background-color: transparent;
    color: #fff;
    display: none;
    padding: 30px;
    max-width: 100%;
}

/* Prevent duplicate icons in modal */
#pcm-search-modal #pcm-search-form-button::before,
#pcm-search-modal #pcm-search-form-button::after {
    display: none !important;
}

#pcm-search-modal .button--search::before,
#pcm-search-modal .button--search::after {
    display: none !important;
}

#pcm-search-modal-form {
    position: relative;
}

.bg-blue .pcm-search-modal-toggle {
    color: white;
}   

#pcm-search-modal-text {
    display: flex;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.2;
}

#pcm-search-modal .fancybox-close-small {
    color: inherit;
}

.pcm-search-modal-text-cta span {
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.pcm-search-modal-text-icon {
    background: linear-gradient(170deg, rgba(246, 151, 28, 1) 5%, rgba(244, 136, 53, 1) 30%, rgba(241, 107, 99, 1) 48%, rgba(241, 107, 99, 1) 52%, rgba(240, 80, 117, 1) 70%, rgba(236, 16, 129, 1) 95%);
    border-radius: 100%;
    padding: 10px;
    font-size: 22px;
    height: 40px;
    width: 40px;
    text-align: center;
    color: #000;
}

.pcm-search-modal-text-number {
    font-size: 30px;
    font-weight: 800;
    margin-left: 10px;
}

#pcm-search-modal #pcm-search-form-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 70px;
    width: 70px;
    font-size: 24px;
    border: 0;
    background-color: transparent;
}

#pcm-search-modal #pcm-search-form-input {
    background-color: rgba(0, 0, 0, .25);
    border-bottom: 2px solid #fff;
    font-size: 20px;
    height: 70px;
    line-height: 20px;
    padding-top: 20px !important;
    padding-right: 70px !important;
    padding-bottom: 20px !important;
    padding-left: 30px !important;
    color: inherit;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

#pcm-search-modal #pcm-search-form-input::placeholder {
    color: #fff;
    opacity: 1;
}

#pcm-search-modal #pcm-search-form-input:-ms-input-placeholder {
    color: #fff;
}

.search-results-heading {
    padding: 40px 0;
}

.pcm-search-modal-text-cta {
    margin-right: 20px;
}

.search-results-heading {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.search-term--highlight {
    background: #ff9f00;
    padding: 1px;
}

.search-result-title {
    margin-bottom: 0;
    text-transform: capitalize;
}

.search-result-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.search-result-link {
    color: #e20079;
}

.search-result-text {
    margin-bottom: 30px;
}

/* Pagination Styles */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination__page-count {
    margin-bottom: 20px;
}

.pagination__page-of {
    font-weight: bold;
}

.pagination__navigation a {
    margin: 0 5px;
}

.page-numbers {
    border: 1px solid #DDDDDD;
    background: #fff;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    display: inline-block;
    color: #333;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    margin: 0 2px;
    text-decoration: none;
}

.page-numbers.current {
    border: 3px solid #790989;
    color: #fff;
    background: #790989;
    font-weight: 700;
    line-height: 29px;
}

.page-numbers.current:hover {
    border-color: transparent;
}

.page-numbers.next,
.page-numbers.prev {
    color: #790989;
    font-weight: 700;
}

.page-numbers:hover {
    border-color: #790989;
    text-decoration: none;
    color: #fff;
    background: #790989;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    color: #333;
}

/* Basic Input Styles */
input[type='search'],
input[type='text'] {
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    max-width: 700px;
}

input[type='search']:focus,
input[type='text']:focus {
    border-color: #e20079;
    outline: none;
    box-shadow: 0 0 5px rgba(226, 0, 121, 0.3);
}

/* Button Styles */
.button--search,
a.button--search {
    background: none !important;
    color: #fff !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    box-shadow: none !important;
    transition: none !important;
    text-decoration: none !important;
    outline: none !important;
}

.button--search:hover,
.button--search:focus,
.button--search:active {
    background: none !important;
    color: #fff !important;
    box-shadow: none;
    outline: none;
}

/* Sticky header: change button color on white background */
.sticky-header .button--search,
.sticky-header a.button--search {
    color: #c50068 !important;
}


/* Remove all adaptive/complex search button styles */

/* Container and Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    #pcm-search-modal {
        padding: 20px;
    }
    
    #pcm-search-modal #pcm-search-form-input {
        font-size: 16px;
        height: 50px;
        padding-right: 50px !important;
    }
    
    #pcm-search-modal #pcm-search-form-button {
        height: 50px;
        width: 50px;
        font-size: 18px;
    }
    
    .pcm-search-modal-text-number {
        font-size: 24px;
    }
}

/* Form Input Classes for Compatibility */
.form-input {
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 16px;
}

.form-input--search {
    background-image: none;
}

.form-input--required {
    border-left: 3px solid #e20079;
}

.input--lg {
    padding: 15px 20px;
    font-size: 18px;
}

.input--round {
    border-radius: 25px;
}

.search-submit {
    background: #0070F0;
    color: white;
    border: 0;
    padding: 5px 15px;
    font-size: .8rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 50rem !important;
    margin-left: 50px;
}

.search-field {
    width: 120%;
}