// ****** Google custom search page style ****** //
@mixin rtp-google-custom-search-page() {
    .search-layout-wrapper > hr { margin-top: 0; }
    #content .gsc-control-cse { padding: 0; }
    #cse {
        table.gstl_0 { border-width: 0; margin: 0; }
        .gsc-result-info { margin: 0; }
        .gs-web-image-box, .gs-promotion-image-box { padding: rem-calc(3 0 0); }
        .gsc-webResult.gsc-result { border-width: 0 0 1px; border-color: $border-color; border-style: none none dotted; clear: both; margin: 0; padding: rem-calc(10 0); position: relative; }
        .gsc-result {
            .gs-title { height: auto; text-decoration: none; }
            .gsc-cursor-box {
                .gsc-cursor-page {
                    @include rtp-border(); color: $link-color; display: inline-block; float: none; font-weight: normal; margin: rem-calc(2); padding: rem-calc(5 10); text-decoration: none;
                    &:hover { border-color: darken($border-color, 30%); color: $link-hover-color; text-decoration: underline; }
                }
            }
            .gsc-cursor-current-page, .gsc-cursor-current-page:hover { border-color: darken($border-color, 30%); color: $title-link-color; font-weight: normal; text-decoration: none; }
            a.gs-title, a.gs-title b {
                color: $link-color; text-decoration: none;
                &:hover { color: $link-hover-color; }
            }
            img.gs-image, img.gs-promotion-image { margin: 0; }
        }
        input.gsc-input {
            @include rtp-border();
            &:hover { border-color: darken($border-color, 30%); }
        }
        .cse input.gsc-search-button,
        input.gsc-search-button { height: auto; margin: 0; min-width: rem-calc(50); padding: rem-calc(6 18); }
        .gsc-tabdActive .gsc-results .gsc-cursor { display: block; margin: rem-calc(15 0 5); overflow: hidden; text-align: center; }
    }
    .gsc-input-box {
        .gscb_a { line-height: 25px; }
        .gsst_a { line-height: 18px; padding-top: 0; }
        .gsib_b { line-height: 18px; padding-bottom: 0; padding-top: 0; }
    }
    table.gsc-search-box {
        td { border-width: 0; }
        td.gsc-input { padding-left: 0; }
        td.gsib_a { line-height: 18px; padding-top: 0; }
    }

    .gsc-table-result { 
		border-width: 0; margin: 0;
		td { border-width: 0; margin: 0; }
		.gsc-thumbnail { padding-left: 0; }
    }
    .gsc-above-wrapper-area-container { border-width: 0; }
    .gsc-result-info-container { border-width: 0; padding: 0; }
    td.gsc-clear-button { padding-right: 0; }
    input.gsc-input { margin-left: 0; }
    .gs-promotion-table, .gs-promotion-table td, .gsc-resultsHeader, .gsc-resultsHeader td { border-width: 0; margin: 0; }
}