@mixin messagedialog() {
  messagedialog {
    border-bottom-left-radius: $csd_radius;
    border-bottom-right-radius: $csd_radius;
    background-color: $osd_bg;
    
    .dialog-vbox {
      background-color: $osd_bg;
      color: $osd_fg;
      border-bottom-left-radius: $csd_radius;
      border-bottom-right-radius: $csd_radius;
    }
    
    .background.csd {
	    border-radius: $csd_radius;
	    color: $osd_fg;
      background-color: $osd_bg;
    }
  
    decoration {
      border-radius: $csd_radius;
      border-bottom-left-radius: $csd_radius;
      border-bottom-right-radius: $csd_radius;
      box-shadow: 0 0 0 3px $osd_fg, 0 3px 2px gtkalpha($dark_shadow, 0.2);
    }

    .titlebar.horizontal, .titlebar.horizontal:backdrop {
      border: none;
      background: $osd_bg, linear-gradient(to bottom, gtkalpha($osd_fg, 0.6), gtkalpha($osd_fg, 0.1) 65%, transparent 66%);
    }

    &.csd .dialog-action-area button {
      padding: 10px;
      border-radius: 0;
      border-bottom-style: none;
      
      -gtk-outline-radius: 0;
      
      color: $osd_fg;
      background-image: linear-gradient(to bottom, gtkshade($osd_bg, 1.1) 40%, gtkshade($osd_bg, 0.75) 60%);
      
      &:focus {
        background-image: linear-gradient(to bottom, gtkshade($osd_bg, 1.3) 40%, gtkshade($osd_bg, 0.95) 60%);
      }

      &:last-child {
        border-right-width: 0;
        border-radius: 0px;
        border-bottom-right-radius: $csd_radius;
        
        -gtk-outline-radius: 0 0 $csd_radius 0;
      }

      &:first-child {
        border-left-width: 0;
        border-radius: 0px;
        border-bottom-left-radius: $csd_radius;
        
        -gtk-outline-radius: 0 0 0 $csd_radius;
      }

      &:only-child {
        border-radius: 0px;
        border-bottom-left-radius: $csd_radius;
        border-bottom-right-radius: $csd_radius;
        
        -gtk-outline-radius: 0 0 $csd_radius $csd_radius;
      }
    }
  }
}
